LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-22-2015, 04:45 AM   #1
rabjac
LQ Newbie
 
Registered: Oct 2005
Posts: 18

Rep: Reputation: 0
Question How Do I Setup Sendmail To Relay Outbound Emails


Currently my setup is as follows:

Windows client desktop with outlook sends email to smarthost. The smarthost then forwards email via internet to recipient.

The smarthost in question is a Windows 2003 server (obviously running IIS) and this is only outbound - there is no inbound email. What I want to do is change the smarthost to a RHEL 6.4 server running sendmail.

Can this be done, and if so what configuration steps are required on the RHEL server to get this to work?
 
Old 05-23-2015, 05:45 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Yes, this is trivially easy to do. The only issue is that you may have to alter sendmail.cf, a configuration file so cryptic, the recommended method to perform alterations is to use a separate macro file.

However, you probably won't have to touch sendmail.cf at all. If the "access" feature is enabled (and it usually is), you should find a file called simply access in your /etc/mail directory. By creating entries in this file, you can allow relaying on a per-domain or per-network basis, as well as allowing relaying from specific IP addresses.

For instance, ff your internal network is 192.168.10.0/24, the following line should be added to /etc/mail/access:
Code:
Connect:192.168.10              RELAY
This file is not parsed directly by sendmail. Instead, it's converted into a database file called access.db, which has a format sendmail can relate to. To do this, simply run the make command from within the /etc/mail directory:
Code:
$ cd /etc/mail
$ sudo make
The changes will take effect immediately, and the PCs on your internal network should now be able to use your sendmail server as an outgoing e-mail relay.
 
  


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
sendmail AUTH/SASL2 both an outbound relay and an inbound mail server wingman007 Linux - Newbie 0 04-20-2012 02:27 PM
Using sendmail to relay emails from two separate gmail accounts? Tarikc Linux - Software 0 03-24-2012 11:22 AM
Sendmail Relay Setup? your_shadow03 Linux - Newbie 3 02-18-2010 12:16 PM
Trying out Sendmail relay setup? your_shadow03 Linux - Server 3 10-31-2009 06:56 PM
Sendmail Relay Setup Question Supergibbs Linux - Software 1 11-02-2004 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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