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
|