Qmail-LDAP
[Top] [All Lists]

Re: qmail-ldap problems

To: qmail-ldap@qmail-ldap.org
Subject: Re: qmail-ldap problems
From: "sato x" <gladiol4@gmail.com>
Date: Mon, 25 Jun 2007 14:28:07 +0700
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
In-reply-to: <707037.61958.qm@web52210.mail.re2.yahoo.com>
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
References: <707037.61958.qm@web52210.mail.re2.yahoo.com>
Hi Aman,

To see the directory name that you chose, I guess you used qmail-conf
to create that. As with the qmail-ldap, you can change the
RELAYCLIENT, etc, via the /var/qmail/control/qmail-smtpd.rules file,
instead of the tcp files (in my installation I don't even use tcp
files). What you have to do is

# cd /var/qmail/service/smtpd
# vi run

find the lines
        -xtcp.cdb \
       -- "${IP-0}" "${PORT-25}" \
        /var/qmail/bin/qmail-smtpd

then change it into

        -x/var/qmail/control/qmail-smtpd.cdb \
       -- "${IP-0}" "${PORT-25}" \
   /var/qmail/bin/qmail-smtpd auth_smtp

Open /var/qmail/control/qmail-smtpd.rules and put some lines

       127.:allow,RELAYCLIENT="",SMTPAUTH="",AUTHREQUIRED=""
        192.168.:allow,RELAYCLIENT="",SMTPAUTH="",AUTHREQUIRED=""
        :allow

Note. - 192.168. is your LAN's id network.
     - If you used simscan, add this too
                 QMAILQUEUE="/var/qmail/bin/simscan"

and run 'make' within /var/qmail/control directory. That assume you
want authentication
for sending emails. If you don't want one, get rid the SMTPAUTH and
AUTHREQUIRED (don't forget to run make each time you reconfigure
qmail-smtpd.rules), also the auth_smtp line in
/var/qmail/service/smtpd/run. Hope it can help.

Regards,

sato

PS. I can't answer

<Prev in Thread] Current Thread [Next in Thread>