vanvh
10-17-2005, 09:40 AM
Hi Rimu forum readers,
I have a rimu linux VPS. It has sendmail accepting mail on 4 domains.
2 of those domains mx records point to a 3rd party, mail gets filtered with the 3rd party before getting sent onto my VPS.
The other 2 domains mx records point directly to the VPS.
I would like to do the following:
For the 2 filtered domains, configure sendmail to accept incoming mail only from the IP addresses of the 3rd party mail servers.
For the other 2 domains, configure sendmail to accept incoming mail from any IP address.
Any ideas on the best way to tackle this problem?
Iptables doesn't seem to be an option here.
Sendmail's access database seems to be designed for filtering relaying, so I think not an option.
On my sendmail server, I am running mimedefang. I think some custom rules could be inserted in the filtering to do the bits above.
Last option I can think of, but haven't tried is using 2 ip address, 1st ip address has iptables rules with the ipaddress of the 3rd party mail servers for the first 2 domains, and the 2nd ip address iptables rules allows all incoming smtp traffic for the last 2 domains (which would mean an mx ip address change).
Since I am a newb at this, any help would be appreciated!
Thanks, Vic
I have a rimu linux VPS. It has sendmail accepting mail on 4 domains.
2 of those domains mx records point to a 3rd party, mail gets filtered with the 3rd party before getting sent onto my VPS.
The other 2 domains mx records point directly to the VPS.
I would like to do the following:
For the 2 filtered domains, configure sendmail to accept incoming mail only from the IP addresses of the 3rd party mail servers.
For the other 2 domains, configure sendmail to accept incoming mail from any IP address.
Any ideas on the best way to tackle this problem?
Iptables doesn't seem to be an option here.
Sendmail's access database seems to be designed for filtering relaying, so I think not an option.
On my sendmail server, I am running mimedefang. I think some custom rules could be inserted in the filtering to do the bits above.
Last option I can think of, but haven't tried is using 2 ip address, 1st ip address has iptables rules with the ipaddress of the 3rd party mail servers for the first 2 domains, and the 2nd ip address iptables rules allows all incoming smtp traffic for the last 2 domains (which would mean an mx ip address change).
Since I am a newb at this, any help would be appreciated!
Thanks, Vic