Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 47562
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Net-Mail Packages <net-mail@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sascha Silbe <sascha-gentoo-bugzilla@silbe.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
bug47562-ssmtp-2.48.ebuild-hostname.patch patch against net-mail/ssmtp/ssmtp-2.48.ebuild to fix default config file patch Sascha Silbe 2004-04-11 17:00 0000 593 bytes Details | Diff
bug47562-ssmtp-2.60.4-r1.ebuild-hostname.patch patch against net-mail/ssmtp/ssmtp-2.60.4-r1.ebuild to fix default config file patch Sascha Silbe 2004-04-11 17:09 0000 623 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 47562 depends on: Show dependency tree
Bug 47562 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-04-11 16:53 0000
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 From Sascha Silbe 2004-04-11 17:00:37 0000 -------
Created an attachment (id=29118) [details]
patch against net-mail/ssmtp/ssmtp-2.48.ebuild to fix default config file

------- Comment #2 From Sascha Silbe 2004-04-11 17:09:43 0000 -------
Created an attachment (id=29119) [details]
patch against net-mail/ssmtp/ssmtp-2.60.4-r1.ebuild to fix default config file

------- Comment #3 From Charlton Harrison 2004-06-01 08:26:55 0000 -------
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 From Charlton Harrison 2004-06-01 08:37:55 0000 -------
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 From Tom Martin (RETIRED) 2004-12-25 12:39:20 0000 -------
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 From David Durrleman 2007-03-12 17:51:40 0000 -------
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_

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug