Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 45518

Summary: qmail ebuilds leave variable out of qmail-pop3 run script
Product: Gentoo Linux Reporter: John Caswell <john>
Component: [OLD] ServerAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED FIXED    
Severity: minor CC: nakano
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description John Caswell 2004-03-23 10:18:32 UTC
The environment variable QMAIL_TCPSERVER_PRE was missing from the pop3 run script, causing selecting relaying via pop-before-smtp to fail.

Reproducible: Always
Steps to Reproduce:
1.emerge qmail
2.emerge relay-ctrl
3.fix conf-smtp and conf-pop3 to allow for pop-before-smtp

Actual Results:  
Instead of selective relaying, server still refused to relay.

Expected Results:  
Should have allowed the IP of the authenticated pop user to relay messages for
30 minutes.

This is a really easy bug to fix.. also probably was easy to overlook.  Just change

exec /usr/bin/softlimit ${SOFTLIMIT_OPTS} \
     /usr/bin/tcpserver ....

to

exec /usr/bin/softlimit ${SOFTLIMIT_OPTS} \
     ${QMAIL_TCPSERVER_PRE} \
     /usr/bin/tcpserver ....
Comment 1 Alex V. Koval 2004-07-01 03:44:25 UTC
I think it was aleady fixed. check:

/service/qmail-smtpd
# Now run it all
exec /usr/bin/softlimit ${SOFTLIMIT_OPTS} \
    ${QMAIL_TCPSERVER_PRE} \
    /usr/bin/tcpserver ${TCPSERVER_OPTS} -x /etc/tcp.${SERVICE}.cdb \

also, good instructions are found in:
/var/qmail/control/conf-smtpd

Maintainers, pls close this bug as fixed/worksforme.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-07-04 17:11:32 UTC
fixed in cvs now.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-07-04 17:15:56 UTC
*** Bug 50093 has been marked as a duplicate of this bug. ***