Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get Sendmail to relay only to specific domains for a particular client IP

Status
Not open for further replies.

itayemi

ISP
Dec 18, 2002
12
Hi All,
I have Sendmail behind a firewall which port forwards port 25 (SMTP) to the mail server. Connections from the Internet acquire the "internal" IP address of the firewall, so in all respects they are "local"
My problem is that if I REJECT connections from the local IP of the firewall, then no incoming mail is delivered. But with my blanket RELAY for the local subnet, I have setup an open relay.
How do I fix this? I can put up some of my config files (relay-domains, access, etc).
I think the best solution would be to allow the IP of the firewall RELAY only to the two internal domains I have on the Sendmail server, but I don't know how to achieve this.

Sendmail version is 8.14.x

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top