LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help with smtp side of qmail !! (https://www.linuxquestions.org/questions/linux-software-2/help-with-smtp-side-of-qmail-139110/)

fuzzyash 01-27-2004 03:05 AM

Help with smtp side of qmail !!
 
I am trying to set up qmail at work to replace our windose servers. I followed the instructions at qmailrocks which almost went perfectly. I can send mail all round our internal network, I can receive mail from the outside and route it to the correct user but when I try to send one from a client, through the new Linux server & out into the real world, qmail says
"Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)" I believe I have everything set correctly but mail just won't get to the outside. I've telneted a message from the same box thats running qmail and that works fine. When I tell the client boxes to go straight to our smtp server at optus that also works fine.

This is what the /var/qmail/supervise/qmail-smtpd/run file look like:

#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
if [ ! -f /var/qmail/control/rcpthosts ]; then
echo "No /var/qmail/control/rcpthosts!"
echo "Refusing to start SMTP listener because it'll create an open relay"
exit 1
fi

exec /usr/local/bin/softlimit -m 9000000 /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x \/etc/tcp.smtp.cdb -c "$MAXSMTPD" -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd mail.optusnet.com.au /home/vpopmail/bin/vchkpw /usr/bin/true 2>&1

Can anyone out there please help me !! (Befor I loose all my hair !)

maxut 01-28-2004 10:00 AM

actually i dont know the solution of your problem, but
i know a isntall script for qmail. it's qinstall-1.1. i tried it on redhat 8.0. it works great. i think it supports some other distors. u may try it. u can find it at http://freshmeat.net

fuzzyash 01-28-2004 05:16 PM

Thanks for the suggestion but i've figured it out. The one thing that every tutorial I read failed to mention is a file called /var/qmail/control/smtproutes which requires just a single line, ":your.smtp.server". (Without the " " of course) I discovered this while fiddling with Webmin's qmail module. The fact that it's not mentioned in any tutorials must mean it's usually not necessary, but it's all I needed. qmail now works flawlessly !!

casky 05-19-2004 01:14 PM

i have the same problem,

I got an error -- 454 oops, unable to write pipe and I can't auth (#4.3.0)
Anyone can help me please?

my linux box : fedora core 1
qmail : http://www.qmail.org/netqmail-1.05.tar.gz

TLS + SMTP Auth patch :

http://shupp.org/patches/netqmail-1....20040207.patch

vpopmail : http://www.inter7.com/vpopmail/vpopmail-5.4.0.tar.gz


the qmail-smtpd run script:
---------------------------------start------------
#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ];
then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
if [ ! -f /var/qmail/control/rcpthosts ]; then
echo "No /var/qmail/control/rcpthosts!"
echo "Refusing to start SMTP listener because it'll create an open
relay"
exit 1
fi
exec /usr/local/bin/softlimit -m 30000000 \
/usr/local/bin/tcpserver -H -R -l "$LOCAL" -x /etc/tcp.smtp.cdb \
-c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd
"$LOCAL" /home/vpopmail/bin/vchkpw /bin/true 2>&1

------------------------------end------------------------

if I close the smtp auth in my MTA, I can send and receive the email. The
qmail and the vpopmail all work well.

But if I open the smtp auth for my MTA, I will get the error message :
454 oops, unable to write pipe and I can't auth (#4.3.0). And the pop work
well.


and i add one smtproutes file in /var/qmail/control, but the problem still there--(454 oops, unable to write pipe and I can't auth (#4.3.0))

anyone could help me, please.

Thanks,


Jason


All times are GMT -5. The time now is 09:56 AM.