System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

forward to specific e-mail server

SOLVED
Go to solution
Kenan Erdey
Honored Contributor

forward to specific e-mail server

hi,

i want to explain the problem simply. we have an mail server running postfix. when i want to send a mail to a spesific domain, i want postfix to use the ip of this domain's mail server. i don't want it to use dns. what is the configuration line for postfix ?

thanks.
Computers have lots of memory but no imagination
4 REPLIES
Ivan Ferreira
Honored Contributor
Solution

Re: forward to specific e-mail server

You need to configure a transport table:

http://www.postfix.org/transport.5.html

For example:

domain.com smtp:[mail.domain.com]

Have a nice day and keep asigning points!!
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Kenan Erdey
Honored Contributor

Re: forward to specific e-mail server

after configuring it, shall i add line in main.cf ?

transport_maps=/usr/local/etc/postfix/transport

Computers have lots of memory but no imagination
Ivan Ferreira
Honored Contributor

Re: forward to specific e-mail server

Add a line like this:

transport_maps = hash:/etc/postfix/transport

Then run:

postmap /etc/postfix/transport
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Kenan Erdey
Honored Contributor

Re: forward to specific e-mail server

at main.cf file i add a line like this;
transport_maps=hash:/usr/local/etc/postfix/transport [postfix running on free bsd]

and edit the transport file /usr/local/etc/postfix/transport as following;
domain smtp:[remote server's IP]

don't forget to postmap transport table and reload the postfix.

regards,
kenan
Computers have lots of memory but no imagination