Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

CentOS 5.x | SendMail


I need to route email for specific domains to a custom port on a downstream server. Is there an easy way of doing this? I came across various instructions describing how to do this if I set my local sendmail listening interface to a different port but I don't want to do this.

In short, I want my local sendmail MTA to still listen on port 25 but to send mail for to MTA on port 2525.


share|improve this question
up vote 1 down vote accepted

use the mailertable add to your /etc/mail/mailertable

domain_name    smtp[]

Then run

make -C /etc/mail
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.