LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-27-2004, 03:05 AM   #1
fuzzyash
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Fedora Core 4
Posts: 184

Rep: Reputation: 30
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 !)
 
Old 01-28-2004, 10:00 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
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
 
Old 01-28-2004, 05:16 PM   #3
fuzzyash
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Fedora Core 4
Posts: 184

Original Poster
Rep: Reputation: 30
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 !!
 
Old 05-19-2004, 01:14 PM   #4
casky
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
qmail smtp auth maxut Linux - Software 1 03-04-2004 08:24 AM
qmail: pop before smtp - HOW? Zingaro2002 Linux - Software 2 07-14-2003 03:46 AM
qmail and smtp ethanchic Linux - Networking 1 04-18-2003 11:36 PM
client side smtp problem f1uke Linux - Newbie 6 02-25-2003 01:04 PM
SMTP Error Qmail madhusurabi Linux - General 1 01-04-2002 02:03 AM


All times are GMT -5. The time now is 06:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration