Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47562 - net-mail/ssmtp-2.48: default config file broken
Summary: net-mail/ssmtp-2.48: default config file broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High minor
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-11 16:53 UTC by Sascha Silbe
Modified: 2007-03-12 17:51 UTC (History)
0 users

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


Attachments
patch against net-mail/ssmtp/ssmtp-2.48.ebuild to fix default config file (bug47562-ssmtp-2.48.ebuild-hostname.patch,593 bytes, patch)
2004-04-11 17:00 UTC, Sascha Silbe
Details | Diff
patch against net-mail/ssmtp/ssmtp-2.60.4-r1.ebuild to fix default config file (bug47562-ssmtp-2.60.4-r1.ebuild-hostname.patch,623 bytes, patch)
2004-04-11 17:09 UTC, Sascha Silbe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Silbe 2004-04-11 16:53:17 UTC
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"
Comment 1 Sascha Silbe 2004-04-11 17:00:37 UTC
Created attachment 29118 [details, diff]
patch against net-mail/ssmtp/ssmtp-2.48.ebuild to fix default config file
Comment 2 Sascha Silbe 2004-04-11 17:09:43 UTC
Created attachment 29119 [details, diff]
patch against net-mail/ssmtp/ssmtp-2.60.4-r1.ebuild to fix default config file
Comment 3 Charlton Harrison 2004-06-01 08:26:55 UTC
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).
Comment 4 Charlton Harrison 2004-06-01 08:37:55 UTC
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!
Comment 5 Tom Martin (RETIRED) gentoo-dev 2004-12-25 12:39:20 UTC
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
Comment 6 David Durrleman 2007-03-12 17:51:40 UTC
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_