LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-16-2005, 01:12 PM   #1
raba
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

tia

>Randy
 
Old 10-16-2005, 10:39 PM   #2
MensaWater
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/sendmail.cf you'll see something like:

# "Smart" relay host
DS

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

Rep: Reputation: 0
What if i only want to forward certain domains? For example:

abc.com, xyz.com are domains i wish to forward to my Exchange server, but hij.com, klm.com and nop.com 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 sendmail.mc, the mailertable line is: xyz.com <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, 04:46 AM   #4
scowles
Member
 
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, 05:05 AM   #5
morgolis
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: To:domain.com <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 domain.com 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, 05:07 AM   #6
morgolis
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?
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:30 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