Solved

Mail relay on Centos

Posted on 2016-09-15
1
53 Views
Last Modified: 2016-09-18
Can we configure a centos to accept all incoming emails, and then route to different next hops based on the incoming email domain ?

Thx
0
Comment
Question by:AXISHK
1 Comment
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 41801049
Yes,
I'd suggest you use postfix.
The process is you setup a mail server. Sendmail, postfix, qmail, exim, etc.
You configure the IP segment from which the clients will be connecting as allowed to relay. Different mail server have slightly different terminology for this functionality.
Now handling the outgoing based on the recipient domain, several have a transport routing setup
Commonly the format is
Recipient domain:nexthop
The default next hop might vary among the mail servers, before placing in production, test while looking at the maillog of the mail server ...
*:default next hop
:default next hop

The transport rule is only needed when the mail server does not have a direct path to the net. If it has a path to the net, you can allow it to use DNS to identify the servers responsible for each recipients domain and have it deliver the messages ....
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

810 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