Discussion:
Relaying for specific Domains - Fazendo relay para Dominios especificos
(too old to reply)
m***@multisites.com.br
2016-11-02 10:10:12 UTC
Permalink
Hi,

At my Linux email Server, for some internal reasons, I relay all my Domains' outgoing emails through another Server, by using this line at /etc/postfix/main.cf file:

relayhost = name.of.the.second.server

But there is some specific Domains I want to relay through a third Server. I tried to do this by setting this at my /etc/postfix/transport file:

specificdomain1.com smtp:name.of.the.third.server
specificdomain2.com smtp:name.of.the.third.server
specificdomain3.com smtp:name.of.the.third.server

I postmap and reload Postfix. But it didn't work, the outgoing emails from those specific Domains are still relaying through the second Server, not the third, as it was set.

Could I have forgot anything? Please, help.

Mario./
_____________________________________________________________

Ola,

No meu Servidor Linux, por algumas razões internas, eu faço relay atraves de um segundo Servidor, usando esta linha no meu arquivo /etc/postfix/main.cf:

relayhost = name.of.the.second.server

Mas, ha alguns Dominios especificos, cujos emails eu quero que saiam por um terceiro Servidor. Eu tentei conseguir isso colocando essas linhas no meu /etc/postfix/transport:

specificdomain1.com smtp:name.of.the.third.server
specificdomain2.com smtp:name.of.the.third.server
specificdomain3.com smtp:name.of.the.third.server

Fiz o postmap e reiniciei o Postfix. Mas nao funcionou, os emails continuaram saindo pelo segundo Servidor, e nao pelo terceiro, como especificado.

Sera que esqueci alguma coisa? Agradeco pela ajuda.

Mario./
d***@gmail.com
2016-11-03 17:57:57 UTC
Permalink
Post by m***@multisites.com.br
Hi,
relayhost = name.of.the.second.server
specificdomain1.com smtp:name.of.the.third.server
specificdomain2.com smtp:name.of.the.third.server
specificdomain3.com smtp:name.of.the.third.server
I postmap and reload Postfix. But it didn't work, the outgoing emails from those specific Domains are still relaying through the second Server, not the third, as it was set.
Could I have forgot anything? Please, help.
Mario./
_____________________________________________________________
Ola,
relayhost = name.of.the.second.server
specificdomain1.com smtp:name.of.the.third.server
specificdomain2.com smtp:name.of.the.third.server
specificdomain3.com smtp:name.of.the.third.server
Fiz o postmap e reiniciei o Postfix. Mas nao funcionou, os emails continuaram saindo pelo segundo Servidor, e nao pelo terceiro, como especificado.
Sera que esqueci alguma coisa? Agradeco pela ajuda.
Mario./
Hi Mario

Please provide your full main.cf file and the command you use to do the postmap.

You may have forgotten the filetype in the the postmap transport syntax.
http://www.postfix.org/postmap.1.html
ie : postmap hash:/etc/postfix/transport should create the /etc/postfix/transport.db binary file.

Regards

Victor
m***@multisites.com.br
2016-11-03 21:13:11 UTC
Permalink
Post by d***@gmail.com
Post by m***@multisites.com.br
Hi,
relayhost = name.of.the.second.server
specificdomain1.com smtp:name.of.the.third.server
specificdomain2.com smtp:name.of.the.third.server
specificdomain3.com smtp:name.of.the.third.server
I postmap and reload Postfix. But it didn't work, the outgoing emails from those specific Domains are still relaying through the second Server, not the third, as it was set.
Could I have forgot anything? Please, help.
Mario./
_____________________________________________________________
Ola,
relayhost = name.of.the.second.server
specificdomain1.com smtp:name.of.the.third.server
specificdomain2.com smtp:name.of.the.third.server
specificdomain3.com smtp:name.of.the.third.server
Fiz o postmap e reiniciei o Postfix. Mas nao funcionou, os emails continuaram saindo pelo segundo Servidor, e nao pelo terceiro, como especificado.
Sera que esqueci alguma coisa? Agradeco pela ajuda.
Mario./
Hi Mario
Please provide your full main.cf file and the command you use to do the postmap.
You may have forgotten the filetype in the the postmap transport syntax.
http://www.postfix.org/postmap.1.html
ie : postmap hash:/etc/postfix/transport should create the /etc/postfix/transport.db binary file.
Regards
Victor
My main.cf has:

relay_domains = $mydestination, $mynetworks, hash:/etc/postfix/transport

My /etc/postfix/transport file had:

corretoresdeseguros.com.br relay:multisites-com-br-01.unodata.com.br

My commands:

postmap /etc/postfix/transport
service postfix restart

It created the file /etc/postfix/transport.db

In spite of this, the emails for corretoresdeseguros.com.br is not being sent to multisites-com-br-01.unodata.com.br, but to the server set at /etc/postfix/main.cf relayhost.
d***@gmail.com
2016-11-04 22:41:57 UTC
Permalink
Post by m***@multisites.com.br
Post by d***@gmail.com
Post by m***@multisites.com.br
Hi,
relayhost = name.of.the.second.server
specificdomain1.com smtp:name.of.the.third.server
specificdomain2.com smtp:name.of.the.third.server
specificdomain3.com smtp:name.of.the.third.server
I postmap and reload Postfix. But it didn't work, the outgoing emails from those specific Domains are still relaying through the second Server, not the third, as it was set.
Could I have forgot anything? Please, help.
Mario./
_____________________________________________________________
Ola,
relayhost = name.of.the.second.server
specificdomain1.com smtp:name.of.the.third.server
specificdomain2.com smtp:name.of.the.third.server
specificdomain3.com smtp:name.of.the.third.server
Fiz o postmap e reiniciei o Postfix. Mas nao funcionou, os emails continuaram saindo pelo segundo Servidor, e nao pelo terceiro, como especificado.
Sera que esqueci alguma coisa? Agradeco pela ajuda.
Mario./
Hi Mario
Please provide your full main.cf file and the command you use to do the postmap.
You may have forgotten the filetype in the the postmap transport syntax.
http://www.postfix.org/postmap.1.html
ie : postmap hash:/etc/postfix/transport should create the /etc/postfix/transport.db binary file.
Regards
Victor
relay_domains = $mydestination, $mynetworks, hash:/etc/postfix/transport
corretoresdeseguros.com.br relay:multisites-com-br-01.unodata.com.br
postmap /etc/postfix/transport
service postfix restart
It created the file /etc/postfix/transport.db
In spite of this, the emails for corretoresdeseguros.com.br is not being sent to multisites-com-br-01.unodata.com.br, but to the server set at /etc/postfix/main.cf relayhost.
Hi

Do not use
postmap /etc/postfix/transport

But
postmap hash:/etc/postfix/transport

And it will work.

Regards

Victor

Loading...