Quoting Alon Altman, from the post of Mon, 16 Feb: > Hi, > How can I get qmail to allow relaying for emails sent from a given IP > range, while still allowing mail for my virtualdomains and locals from any > IP address?
in your hashed database for TCPrules, you set the variable RELAYCLIENT. this is what I use to relay for the LAN of private addresses behind my firewall: # cat /etc/tcp.smtp 127.0.0.1:allow,RELAYCLIENT="" 10.:allow,RELAYCLIENT="" you use tcprules to compile it into a CDB, and finally feed it to tcpserver with the -x parameter. this is ofcourse you are using qmail with daemontools, tcpserver and all the rest as recommended by DJB, but YMMV... basicly you set the flag in the environemnt for the qmail-smtpd based on the IP, whatever your mode of triggering it is. -- Paper millionaire Ira Abramov http://ira.abramov.org/email/ ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
