Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

CentOS 5.x | SendMail

Hi,

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 foo.com to MTA 123.123.123.123 on port 2525.

-M

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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

domain_name    smtp[123.123.123.123:2525]

Then run

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

Your Answer

 
discard

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.