net-mail/ssmtp-2.48 is installed with a broken config file: aero / # grep hostname= /etc/ssmtp/ssmtp.conf hostname=_HOSTNAME_ aero / # With this config, ssmtp changes the hostname in the From: header to "_HOSTNAME_". If you comment out the line above, it will do The Right Thing (tm), i.e. use the hostname of the machine. That way ssmtp works fine out of the box (at least if your smarthost has a DNS alias "mail"). Reproducible: Always Steps to Reproduce: 1. grep hostname= /etc/ssmtp/ssmtp.conf Actual Results: aero / # grep hostname= /etc/ssmtp/ssmtp.conf hostname=_HOSTNAME_ aero / # Expected Results: aero / # grep hostname= /etc/ssmtp/ssmtp.conf #hostname=_HOSTNAME_ aero / # Portage 2.0.50-r3 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-aero-2) ================================================================= System uname: 2.4.25-aero-2 i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=k6 -O2 -pipe" CHOST="i586-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=k6 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox strict userpriv usersandbox" GENTOO_MIRRORS="http://192.168.1.2/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ " MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://hybrid.sascha.silbe.org/gentoo-portage" USE="acl berkdb crypt doc gdbm ipv6 jpeg linguas_de linguas_de_DE linguas_en linguas_en_GB linguas_en_US maildir mbox ncurses nls oggvorbis pam png python readline ssl unicode x86 xml xml2 zlib"
Created attachment 29118 [details, diff] patch against net-mail/ssmtp/ssmtp-2.48.ebuild to fix default config file
Created attachment 29119 [details, diff] patch against net-mail/ssmtp/ssmtp-2.60.4-r1.ebuild to fix default config file
This is a MAJOR defect and needs to be FIXED. As this appeared just recently in the x86 _stable_ portage tree and broke my mail server (and I didn't immediately realize it was broken since e-mail still worked, it just didn't work for user-to-user (on the same system) e-mail).
Err, I forgot to mention that another thing that broke my server specifically (other than having to manually set these values that I wasn't aware of before) is the fact that my userspace is in the 500s, and therefore since my user_ids are below 1000, all user-to-user gets routed to root!
This is fixed in CVS. Thanks for reporting and commenting. Charlton, I may have got the wrong end of the stick with your last comment, but if there is another bug you have discovered with ssmtp, please file another bug and assign it to net-mail@gentoo.org. Thanks all, Tom
i think that the following lines in /etc/ssmtp/ssmtp.conf are useless, and thus confusing, and should be removed. They only are here because of this bug, but shouldn't even have gotten in the config file in the first place ! # The full hostname # Gentoo bug #47562 # Commenting the following line will force ssmtp to figure # out the hostname itself. # hostname=_HOSTNAME_