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 10-22-2008, 11:34 PM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
sendmail relay to another host


I have a sendmail server that's acting as a mail relay. I want to re-configure it so that it relays mail to another server.

What do I need to do to achieve this?

Thanks.
 
Old 10-24-2008, 08:34 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by noir911 View Post
I have a sendmail server that's acting as a mail relay. I want to re-configure it so that it relays mail to another server.

What do I need to do to achieve this?

Thanks.
So you've got a relay server that you want to make act like a relay server? Sounds like you're all set.....

However, check out the docs on sendmail, specifically how to set up a smarthost. Once you define that, and set up your domain(s) correctly (if your mail server further upstream is picky, that is), you should just have to bounce sendmail, and any emails received by this one box, will just get shoveled along to the 'smart' host, which will actually do the work.
 
Old 10-28-2008, 04:45 AM   #3
noir911
Member
 
Registered: Apr 2004
Posts: 682

Original Poster
Rep: Reputation: Disabled
Here's how I solved this: since I don't have a sendmail.mc file, I just edited the /etc/mail/sendmail.cf file and for DS I added the relay host's name and restart sendmail. So it looks like "DSrelayhost.domain.com"
 
Old 10-28-2008, 08:46 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by noir911 View Post
Here's how I solved this: since I don't have a sendmail.mc file, I just edited the /etc/mail/sendmail.cf file and for DS I added the relay host's name and restart sendmail. So it looks like "DSrelayhost.domain.com"
VERY dangerous, and not recommended. Chances are you've got an mc file out there, but you may have to dig for it. Regardless, the DS option is the way to go, and I know I've done it for 'quick and dirty' things in the past, too.

That said, if your upstream server gets picky about who it accepts mail from, you'll have to look at the DH Dj and DM options, but those are all best modified via the MC file directives.
 
  


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
Postfix allow relay to a mail host within lan Niceman2005 Linux - Software 2 06-20-2007 01:43 AM
postfix and relay host mozilla Linux - Networking 1 11-23-2005 08:42 PM
Sending mail from linux using MS Exchange relay host a2k2 Linux - General 0 08-16-2004 01:55 PM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 04:54 PM
PostFix with a SendMail Relay Host & SSH Wrappers jgrafals Linux - Software 0 02-13-2004 10:24 AM

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

All times are GMT -5. The time now is 11:32 AM.

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