HowTo : add custom transport routes (maps) in postfix.

In postfix, when you need your e-mails for some specific domains to relay through another server ( your ip is blocked or for some other reason ) you can specify custom transport maps in the postfix config.

You have to setup postfix to use custom transport maps :

inĀ  main.cf enable the transport_maps directive :

transport_maps = hash:/etc/postfix/transport

then edit the file /etc/postfix/transport and add to it :

example.com smtp:your.second.mailserver.com

close it and then rebuild the transport database file by entering the following command :

postmap /etc/postfix/transport

restart postfix and now every e-mail sent to example.com will relay through your specified e-mail server.

Leave a Comment

What’s ItHowTo ? What’s the point of it ?

Blogging about I.T. ! Here you’ll find various solutions to IT related issues or just interesting things that we come across in our daily work. We thought they might be useful to others too, so we decided to publish them here. Even though we all are native speakers of Romanian we’ll write this blog in English so that people around the world can benefit from the information we publish here. All IT professionals know English very well so there won’t be any problem for anyone. I’m talking about IT Professionals because this blog is for such persons ;)

ItHowTo Team

Leave a Comment

Web Brands