LinuxQuestions.org
Help answer threads with 0 replies.
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-28-2010, 03:09 PM   #1
Joushu
LQ Newbie
 
Registered: Oct 2010
Location: Seattle
Posts: 7

Rep: Reputation: 0
Sendmail question


In my network I only have one machine that is configured to send email outside the network. How do I instruct my local copy of sendmail to use that server as a relay ?
 
Old 10-28-2010, 03:20 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
http://www.google.com/search?client=...utf-8&oe=utf-8

"DS" in sendmail.cf.
 
0 members found this post helpful.
Old 10-28-2010, 03:27 PM   #3
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
To tell your hosts to relay to the relay host (replace "<relayhost>" below wit the actual name of your relay host):

Uncomment the SMART HOST line (that is to say remove "dnl" from start of line) in sendmail.mc then add your relay host so it reads:
define(`SMART_HOST', `<relayhost>')dnl

After that run "make -C /etc/mail" This will add "DS<relayhost>" to sendmail.cf.
Note: The sendmail.cf package must be installed for this work. The default sendmail package on RHEL/CentOS doesn't include the make ability.

To allow relay through your relay host atlsnml1 (done on the relay host itself)
1) edit /etc/mail/access
Add the following lines:
From:<domain> RELAY
Note: You do this for each domain name that will be sending (e.g. example.com, example.net would have two separate lines). You can also add relay by hostname if you want to lock it down that way.

2) make -C /etc/mail
This recompiles mail and updates access.db from the access ascii file.

3) Stop and restart sendmail
Restarts sendmail to make the changes take effect

Note: Older sendmail installations used now deprecated untagged eentry instead:
<domain> RELAY
 
Old 10-28-2010, 03:29 PM   #4
Joushu
LQ Newbie
 
Registered: Oct 2010
Location: Seattle
Posts: 7

Original Poster
Rep: Reputation: 0
I think I found it in the access list under /etc/mail/access. I just added the ip address and then RELAY. Seems to be working.
 
  


Reply


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
sendmail question anon091 Linux - Newbie 2 10-15-2010 03:30 PM
Sendmail question.. ChriZathens Linux - General 1 01-31-2006 04:03 AM
sendmail question xedios Linux - Software 3 10-04-2004 04:51 PM
Sendmail question AMMullan Linux - Software 2 01-10-2004 07:03 PM
RH Sendmail Question monte Linux - Distributions 8 06-15-2003 12:17 PM

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

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