Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-16-2005, 02:12 PM   #1
LQ Newbie
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
sendmail forwards

Hi all,

i just installed to FC4.
but I have problems with Sendmail.
I want sendmail to forward all mail to my MS Exchange server.
I'm fetching mail from various pop/imap-boxes.

I have abs any idea left how to configure this


Old 10-16-2005, 11:39 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
For most installations just putting the hostname of your MS-Exchange server as the "Smart relay host". (If you have clustered Exchange servers make sure you use the cluster name rather than one of the node names.)

Typically in /etc/mail/ you'll see something like:

# "Smart" relay host

You just change the "DS" to "DSexchangehost" where exchangehost is the hostname of the MS-Exchange server.
Old 03-15-2006, 01:18 AM   #3
LQ Newbie
Registered: Mar 2005
Posts: 11

Rep: Reputation: 0
What if i only want to forward certain domains? For example:, are domains i wish to forward to my Exchange server, but, and are domains i wish to have sendmail handle the mail for.

I have been fighting with mailertable and having no luck. I've checked that the FEATURE for mailertable exists in, the mailertable line is: <tab> smtp:[internalIPaddress]

It seems that a smart relay host will send ALL email to my exchange server which isn't what i want to do.

Anyone able to help out?
Old 03-15-2006, 05:46 AM   #4
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Based on my understanding of your post, using the mailertable feature of sendmail is what you want to implement.

In addition to the mailertable entries (your posted syntax is correct), you would also need to add the domain names you want relayed to /etc/mail/relay-domains -and- make sure these domain names are NOT listed in /etc/mail/local-host-names.

If you are still having problems, post the actual /var/log/maillog entries that correspond to a single delivery failure.
Old 03-15-2006, 06:05 AM   #5
LQ Newbie
Registered: Mar 2005
Posts: 11

Rep: Reputation: 0
Made a little progress, thanks scowles. Before i was getting relaying denied until i added a line in my access file. syntax: <tab> RELAY
Now i'm showing the mail being queued for delivery in my maillog, but it doesn't appear to be getting through to the exchange server.

Also, will sendmail still run all the emails to through it's RBL lists? That's really my end goal, i want my sendmail server to "filter" the incoming mail through it's RBL's, spamassassin and ClamAV to clean up the mail before it hits my Exchange server. Is the only way to get sendmail to do that is by setting up .forward rules for each user?
Old 03-15-2006, 06:07 AM   #6
LQ Newbie
Registered: Mar 2005
Posts: 11

Rep: Reputation: 0
Well, the email i sent myself just got through to my Outlook client. But the last question still remains, will sendmail still filter the mail for my domain?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
wget / forwards nutnut Linux - Software 8 09-14-2005 06:33 AM
Xmms Fast forwards for no reason kaega2 Linux - Software 0 07-23-2004 02:39 PM
.forwards file with procmail problem kzar Linux - General 1 06-09-2004 12:17 PM
GUI email client which forwards mail inline ptrbee Linux - Newbie 2 05-11-2004 10:41 AM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 12:47 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:46 AM.

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