Can't use password containing spaces in it's smtp-configuration

Bug #1097172 reported by Niklas Rosenqvist on 2013-01-08
This bug affects 6 people
Affects Status Importance Assigned to Milestone
ssmtp (Ubuntu)

Bug Description

I use ssmtp to send mail via my GMail-account. At first I didn't understand why it wasn't working but after some troubleshooting I understood that it was because I use a password containing spaces. It don't help to wrap the password in ', " or [ ]. Therefore I was forced to change my password to a string without passwords which is far less secure (

Ubuntu-server 12.04 x64
ssmtp 2.64

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ssmtp (Ubuntu):
status: New → Confirmed
fmf (effemmeffe) wrote :

I took a fast look at the source ( and it seems to me that the problem is in the function bool_t read_config(), in line 1094 there is a call to function firsttok that parses for spaces.
But I don't know how to test a patch or submit it, so I can't go any further.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers