Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238724 - mail-mta/ssmtp cannot parse AuthPass with '=' or ':' in it
Summary: mail-mta/ssmtp cannot parse AuthPass with '=' or ':' in it
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL: http://www.mail-archive.com/debian-bu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-26 08:27 UTC by Marshall McMullen
Modified: 2008-11-29 20:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Modifies ssmtp.c to properly parse AuthPass field with an equals sign in it (ssmtp-2.62-authpass.patch,389 bytes, patch)
2008-09-26 08:29 UTC, Marshall McMullen
Details | Diff
Applies new patch file (ssmtp-2.62-r3.ebuild,2.77 KB, text/plain)
2008-09-26 08:30 UTC, Marshall McMullen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marshall McMullen 2008-09-26 08:27:42 UTC
This bug has already been reported elsewhere under debian and others.  Essentially, if the AuthPass field of the config file contains an equals sign, it fails to parse it and emails cannot be sent due to failure to connect.  The fix is very easy as noted in the above link.  I will also attach a suggested patch file.

Reproducible: Always

Steps to Reproduce:
1. Set AuthPass in /etc/ssmtp/ssmtp.conf to a value with an equals sign in it
2. Try to send an email, as in: echo lol | mail -v user@domain.com -s "lol"
3. Observe failure to connect!

Actual Results:  
Fails to connect to an smtp server which requires a password with an equals sign in it. 

Expected Results:  
Should have allowed the equals sign in the password field...

Portage 2.1.4.4 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r8 x86_64 Intel(R) Core(TM)2 Quad CPU @ 2.66GHz
Timestamp of tree: Sat, 20 Sep 2008 10:04:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -fforce-addr -mmmx -msse2 -msse3 -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -fforce-addr -mmmx -msse2 -msse3 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://mirror.espri.arizona.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/desktop-effects /usr/portage/local/layman/sunrise /usr/portage/local/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi additions aim alsa amarok amazon amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli cpudetection cracklib crypt css cups dbus dga divx djvu dri dts dv dvd dvdnav dvdr dvdread eds emacs emboss encode evo exif fam ffmpeg firefox flac foomaticdb fortran frontendonly gdbm gif gimp gimpprint glitz gmail gmedia gnome gphoto2 gpm gs gstreamer gtk hal hdhomerun hou iconv imagemagick imap imlib imlib2 ipod irc isdnlog jabber java jikes jingle joystick jpeg jpeg2k kipi kqemu lcd ldap libnotify live lm_sensors mad maildir matroska mdnsresponder-compat meanwhile midi mikmod mmx mmxext mono mp3 mp4 mpeg mpeg2 mplayer msn mudflap multilib musepack music musicbrainz mysql nautilus ncurses net nfconntrack nfs nis nls nocd nowin nptl nptlonly nsplugin nvidia offensive ofx ogg openal openexr opengl openmp opensslcrypt pam pcre pda pdf perl php pidgin plugins png portage postgres ppds pppd python quicktime quotes rar raw rdesktop readline realmedia reflection reiserfs rtc scanner sdl server session slang slp smp sms sound speex spell spl sqlite sse sse2 ssl ssse3 startup-notification stream subtitles svg sysfs tcpd themes theora threads threadsafe thumbnail tiff tk transcode trayicon truetype unicode usb utempter vcd videos vim vim-pager vim-syntax vim-with-x visualization vnc vorbis wavpack wma wmf wmp wxwindows x264 xface xfs xine xinerama xml xorg xprint xscreensaver xulrunner xv xvid yahoo zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="imon" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Marshall McMullen 2008-09-26 08:29:49 UTC
Created attachment 166462 [details, diff]
Modifies ssmtp.c to properly parse AuthPass field with an equals sign in it
Comment 2 Marshall McMullen 2008-09-26 08:30:42 UTC
Created attachment 166463 [details]
Applies new patch file

Modified ebuild to apply the patch file I previously uploaded
Comment 3 Tobias Scherbaum (RETIRED) gentoo-dev 2008-11-29 20:28:37 UTC
Fixed in 2.62-r4.