smtp the domain is not in my recipient list
taken from: http://cr.yp.to/qmail/faq/servers.html
How do I allow selected clients to send outgoing messages through my SMTP server? qmail-smtpd is giving the error ``sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)'' for messages to any domain not listed in /var/qmail/control/rcpthosts.
Answer: This answer assumes that you are running qmail-smtpd under tcpserver.
Create /etc/tcp.smtp containing
1.2.3.6:allow,RELAYCLIENT=""
127.:allow,RELAYCLIENT=""
to authorize relaying from clients with IP addresses 1.2.3.6 and 127.*. Run
tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
Insert
-x /etc/tcp.smtp.cdb
after tcpserver in your system boot scripts. The change will take effect at your next reboot.
If you make any changes to /etc/tcp.smtp, you must run
tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
again. You do not have to restart tcpserver.
How do I allow selected clients to send outgoing messages through my SMTP server? qmail-smtpd is giving the error ``sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)'' for messages to any domain not listed in /var/qmail/control/rcpthosts.
Answer: This answer assumes that you are running qmail-smtpd under tcpserver.
Create /etc/tcp.smtp containing
1.2.3.6:allow,RELAYCLIENT=""
127.:allow,RELAYCLIENT=""
to authorize relaying from clients with IP addresses 1.2.3.6 and 127.*. Run
tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
Insert
-x /etc/tcp.smtp.cdb
after tcpserver in your system boot scripts. The change will take effect at your next reboot.
If you make any changes to /etc/tcp.smtp, you must run
tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
again. You do not have to restart tcpserver.
0 Comments:
Post a Comment
<< Home