Jason Folkens wrote:

Hi. I'm kind of new to qmail, so my question probably sounds pretty elementary.

I have a qmail-ldap server setup. Right now it only relays off of my local subnet (which I refer to below as a.b.c.) as per the instructions in the /etc/tcp.smtp file

I want to implement SMTP AUTH so that I can roam outside my LAN. I changed my supervise/qmail-smtpd/run file from this:

If you want to relay mails while you roam outside your LAN, you cannot have last line in tcp.smtp as
:deny

It should be
:allow,SMTPAUTH=""


QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`head -1 /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`

#some irrevelant if statements removed from email

exec /usr/local/bin/softlimit -m 2000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 25 /var/qmail/bin/qmail-smtpd 2>&1

Try increasing LOGLEVEL to see whats happening.
You have to stop qmail-smtpd for that.
Then run smtpd like this.
# cd /path/to/qmail-smtpd
# env LOGLEVEL=255 ./run

Then try sending mail from anther terminal, see what you get here.



to this, because of the text written on life with qmail-ldap, section 13.2:

#everything unchanged except for this last line of code:

exec /usr/local/bin/softlimit -m 2000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 25 /var/qmail/bin/qmail-smtpd /var/qmail/bin/auth_smtp /usr/bin/true 2>&1

then I modified the /etc/tcp.smtp from this:

a.b.c.:allow,RELAYCLIENT=""
:deny

to this:

a.b.c.:deny

I've also tried variations of this, like

a.b.c.:allow,RELAYCLIENT="",SMTPAUTH=""
:deny

but whatever I do to attempt to solve this problem either leads me wide open for relaying, or doesn't even let me send the auth credentials to begin with. Can someone please tell me the proper way of going around this problem?

For detailed installation steps refer
http://www.proscrutiny.com/howtos/qmail-ldap.html

Regards,

--
Sameer N. Ingole
/*****************************************************/
Better to light one candle than to curse the darkness.
/*****************************************************/

Reply via email to