I have a postfix 2.5 server  with two transport files , one hash map and
another regex
I want the hash map to take preference over the regex which doesnt seem
to be happenning

----------------

[r...@50.133 postfix]# postconf  -n
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
transport_maps =
hash:/etc/postfix/transport,regexp:/etc/postfix/transport_regex


[r...@50.133 postfix]# postmap -q netcore.co.in /etc/postfix/transport
:[192.168.2.105]


[r...@50.133 postfix]# cat /etc/postfix/transport_regex
/netcore.co.in/ :[192.168.2.226]

--------------


When I send a mail to r...@netcore.co.in I expect the mail to be relayed
to 192.168.2.105 but instead it goes to 192.168.2.226 


---------------
Jan 21 16:39:29 chatserver-devel postfix/smtp[3207]: 9CFE918CF2B:
to=<r...@netcore.co.in>, relay=192.168.2.226[192.168.2.226]:25,
delay=0.06, delays=0.05/0/0/0.01, dsn=2.0.0, status=sent (250 2.0.0 Ok:
queued as C4A2D67C016)
-------------------








Reply via email to