We have qmail 1.03 with SPAMCONTROL patch (1.4.2) patch install.
 
I have given the IP address list in RELAYCLIENTS & it is working fine. Now I want to restrict relaying based on domain name also. That means  though the IP address of the person relaying through my SMTP server is listed in my RELAYCLIENTS list, I want his domain should be checked. (Don't allow if his mail from domain is not my own domain)
In short we have problem in setting relaydomains
 
Suppose my domain is MYDOMAIN.COM & I am allowing 203.61.22.21 IP from RELAYCLIENT. The sender having the same IP but he is sending MAIL from OTHERDOMAIN.COM to SOMEOTHERDOMAIN.COM then it should not be allowed.
 
. If the IP addess listed in RELAYCLIENTS is allow the system is checking setting in RCPTHOSTS & if the domain is not listed in RCPTHOSTS then is gives '553 sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1)' error. It dose'nt checks RELAYDOMAINS setting at all. We tried verious options to set RELAYDOMAINS working but could't solve the problem.
 
Please help me in solving this.
 
Regards,
 
Milind

Reply via email to