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

Bug #1097172 reported by Niklas Rosenqvist
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
ssmtp (Ubuntu)
Confirmed
Undecided
Unassigned

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 (http://lifehacker.com/5796816/why-multiword-phrases-make-more-secure-passwords-than-incomprehensible-gibberish).

Ubuntu-server 12.04 x64
ssmtp 2.64

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in ssmtp (Ubuntu):
status: New → Confirmed
Revision history for this message
fmf (effemmeffe) wrote :

I took a fast look at the source (https://github.com/ajwans/sSMTP/blob/master/ssmtp.c) 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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.