Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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?
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.