Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-28-2010, 03:09 PM
|
#1
|
LQ Newbie
Registered: Oct 2010
Location: Seattle
Posts: 7
Rep:
|
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 ?
|
|
|
10-28-2010, 03:20 PM
|
#2
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824
|
|
|
0 members found this post helpful.
|
10-28-2010, 03:27 PM
|
#3
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
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
|
|
|
10-28-2010, 03:29 PM
|
#4
|
LQ Newbie
Registered: Oct 2010
Location: Seattle
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 09:51 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|