Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Mail relay on Centos

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

791 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