Hi there
hope someone can help me out here. I have a bunch of servers mailing to our postfix server to deliver mail to internet. now I want to relay email for a specific domain to an external smtp server. The rest of all domains delivered to this email server need to us MX. I want to use smtp port 25 unauthenticated.
I read few blogs specifying I have to set in Main.cf
transport_maps = hash:/etc/postfix/transport
but my main.cf uses
transport_maps = lmdb:/etc/postfix/transport
when using the command
postmap /etc/postfix/transport
the key value pair is added to this lmdb in plain text
not sure if it is meant to work this way.
anyway I cant get it to work and cant find how to do it. Hope its a easy question.
all other configuration I had to do on postfix was quite doable.
in the tranport file I tried to add:
exmaple.com smtp:[smtprelay.example.com]
and also tried
example.com smtp:smtprelay.example.com:25
after using postmap and reloading using hash I get the error: Temporary lookup failure
after using postmap and reloading using lmdb nothing is changed and email is sent normally without relay
Also I am not sure if trying it this way all other domain will still use MX.
I am not sure what to exactly post from my main.cf but below small part of it
mynetworks = 10.131.3.0/24, 127.0.0.0/8, 10.131.4.0/24
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
myhostname = m1.example.com
mynetworks_style = subnet
relayhost =
alias_maps = lmdb:/etc/aliases
canonical_maps = lmdb:/etc/postfix/canonical
relocated_maps = lmdb:/etc/postfix/relocated
sender_canonical_maps = lmdb:/etc/postfix/sender_canonical
transport_maps = lmdb:/etc/postfix/transport
Lots of questions
appreciate the help