LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-21-2008, 05:00 PM   #1
Beamzz
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
Question 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
 
Old 04-22-2008, 03:06 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail relay sachin1361 Linux - Enterprise 4 04-22-2008 06:32 PM
Sendmail Relay mahmoud Linux - General 1 04-02-2008 06:44 AM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 04:54 PM
sendmail relay atomicx Linux - General 2 01-04-2004 01:46 AM
Sendmail relay kurgan70 Linux - Newbie 1 03-20-2002 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration