LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail as a relay gateway (https://www.linuxquestions.org/questions/linux-server-73/sendmail-as-a-relay-gateway-636875/)

Beamzz 04-21-2008 05:00 PM

Sendmail as a relay gateway
 
Hi,

I am quite new to Linux and have a question about setting up relay rules in Sendmail:

We have an external SMTP gateway with postfix that forwards all our incoming mail to our Exchange server.
Now we have installed a Spam gateway with Mailscanner, Fedora 7 and sendmail that filters out spam before it reaches the Exchange server.
So the external gateway is now sending all incoming mails to this gateway.

All of that works fine with the relay to our Exchange server.
Now I want to activate the Watermark function in Mailscanner to get rid of all those NDR mails. To be able to do that I must relay all outgoing mail from the Exchange server through the Mailscanner-Fedora-Sendmail gateway.

So I must create a relay rule in sendmail that says: relay all mails for domain [mydomain.com] to the internal Exchange server and all other domains to our external gateway.
I have only accomplished the first part and have had no luck with the outgoing mail flow.

I'm sure the solution is easy so I hope for a quick answer!

Best Regards:
/Peter

datopdog 04-22-2008 03:06 AM

Use the mailertable for your internal mail then make the external server a smarthost for the machine. YMMV


All times are GMT -5. The time now is 02:33 AM.