How to configure smtp relay on Redhat enterpise server version 5?

Posted on 2007-10-21
Last Modified: 2013-12-18
I need to configure smtp relaying on redhat enterprise linux server version 5.I have two servers with redhat installed at one location and other two servers installed at other location. At one location servers have public IP and at the other side servers have private IP . These servers are behind firewall.I have information about existing mail servers hosted on exchange.The servers with redhat installed on them should be able to relay mail to each other.Please let me know if I have to :
1) Configure sendmail on both the sides on one of these servers installed with redhat linux.
2) Can I use existing exhcange servers to relay mail between these servers.
3) Do I need to open the firewall port on both the sides for smtp relay based on source and destination.
If I can use existing exchange servers for relaying between these servers how do I set it up.
Machine installed with Redhat are configured with hearbeat configuration to have virtual IP.
Thanking you.
Question by:naseer6679
    1 Comment
    LVL 14

    Accepted Solution

    It doesn't sound like "relay" is the right word.  Relay implies that you are sending mail from computer a to computer c through computer b, so b is relaying.  In this case it sounds like you just want mail to go from computer a to b - that isn't relaying, and sendmail is already set up to handle this on redhat.  You do, however, need to tell sendmail to listen for incoming mail on your network interface, and allow it through  your firewall (if you have one).

    By default sendmail just listens on your loopback adapter.  You need to edit /etc/mail/ and change
    O DaemonPortOptions=Port=smtp,Addr=, Name=MTA
    O DaemonPortOptions=Port=smtp, Name=MTA

    Then restart sendmail.  This takes off the loopback restriction on the mail listener.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    New-MailboxSearch Powershell Command and step by step approach to Search and Extract Emails form Exchange 2013 Journaling server.
    Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
    Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
    In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now