LinuxQuestions.org
Visit Jeremy's Blog.
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 04-08-2004, 03:46 AM   #1
svartrev
LQ Newbie
 
Registered: Mar 2004
Location: Cape Town, South Africa
Posts: 21

Rep: Reputation: 15
qmail-smtp-auth patch and vpopmail / vchkpw ?


Howdy all,

I have qmail installed, and the vpopmail package.
I can log in fine from the office, as I enable relaying for the LAN, but logging in from home won't work like that unless I want to be an open relay server, which is a VERY BAD THING.

One solution is to use the --enable-roaming-users=y option in vpopmail, but I would prefer to use the qmail-smtp-auth patch.

http://members.elysium.pl/brush/qmail-smtpd-auth/

It seems a cleaner solution to the problem. I have applied the patch, and get it working using the recommended cmd5checkpw program, using the /etc/poppasswd file to list the username/password pairs for smtp authentication.

But I'd like to replace cmd5checkpw with vchkpw so that the smtp authentication will use the same username/password pair as the pop authentication.

I have tried simply replacing the cmd5checkpw program with the vchkpw one in the supervise/qmail-smtpd/run file, but it doesn't seem to work. Surely it should be a trivial matter?

Perhaps anyone out there has already figured this out?

The relevant line from the /supervise/qmail-pop3d/run file:

exec /usr/local/bin/softlimit -m 2000000 \
/usr/local/bin/tcpserver -x \
/etc/tcp.smtp.cdb -v -R -H -l 0 -g 89 -u 89 0 110 \
/var/qmail/bin/qmail-popup \
"$LOCAL" /home/vpopmail/bin/vchkpw \
/var/qmail/bin/qmail-pop3d Maildir 2>&1

the relevant line from the /supervise/qmail-smtpd/run file:

exec /usr/local/bin/softlimit -m 2000000 \
/usr/local/bin/tcpserver -x \
/etc/tcp.smtp.cdb -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb \
# No idea why I type the -x option twice...
-c "$MAXSMTPD" -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
/var/qmail/bin/qmail-smtpd \
# "$LOCAL" /bin/cmd5checkpw /bin/true \
#above line replaced with this one
"$LOCAL" /home/vpopmail/bin/vchkpwd /bin/true \
2>&1
 
Old 05-19-2004, 12:51 PM   #2
casky
LQ Newbie
 
Registered: May 2004
Posts: 2

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

------------------------------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.

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
Adding SMTP AUTH to qmail Apollo77 Linux - Software 2 11-29-2004 04:59 PM
qmail smtp auth maxut Linux - Software 1 03-04-2004 08:24 AM
SMTP Auth with qmail?! Psykoral Linux - Software 1 12-17-2003 03:33 PM
qmail smtp-auth anyone? bueller? wayloud *BSD 3 02-01-2003 05:08 AM
qmail smtp-auth help wayloud General 0 01-31-2003 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:43 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration