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

Exim seems to be very flexible and configurable. What would be the best approach for me to forward an incoming email to exim to another mail server running on a different port like lamson? I am running exim and lamson on the same ubuntu machine.

Thanks heaps.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You need a manualroute router to point to the appropriate transport, where you override the standard port. Something like (untested):

begin routers

    driver = manualroute
    route_list = * lamson.server.com byname
    transport = lamson_smtp

begin transports

    driver = smtp
    port = 666
share|improve this answer
it does not work. But maybe it's lamson –  jpartogi Apr 15 '10 at 14:45
What do exim logs say? –  Dan Andreatta Apr 15 '10 at 15:13
temporarily rejected RCPT ... remote host address is the local host –  jpartogi Apr 16 '10 at 0:03
Aaah. It's because lamson and exim is on the same server =( –  jpartogi Apr 16 '10 at 1:46

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.