Solved

Mail relay on Centos

Posted on 2016-09-15
1
49 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

920 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