On Tue, 8 Nov 2011 09:19:50 -0200, Fernando Maior wrote:
Hi,

Just when I pressed "send" I realize that may be the sender dependent
relayhost maps should be useful too. Have a look at it, if you please.


http://www.postfix.org/postconf.5.html#sender_dependent_relayhost_maps


Atenciosamente,
---
Fernando Maciel Souto Maior
LPIC/1(31908), LinuxCounter(391325)



I don't know if this is the best way, but I am trying the transport_maps mechanism mentioned earlier.

I also don't know if what I'm about to ask _should_ be done but when I sent a test and followed the flow, it made me wonder; When sending an email FROM user@10.2.2.12 to failedu...@mydomain2.tld, is there a way to control NDR's going directly back to 10.2.2.12 instead of through the transport defined in smtp:[x.x.x.152] ?

Here is the config I have so far, will this work?

root@myhost:/etc/postfix# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
disable_vrfy_command = yes
inet_interfaces = all
mailbox_size_limit = 0
message_size_limit = 0
mydestination = outbound.mydomain1.tld
myhostname = outbound.mydomain1.tld
mynetworks = 127.0.0.0/8
 10.2.2.12
 10.2.2.60
 10.2.2.65
 10.2.2.87
 10.100.21.56
 10.100.21.57
myorigin = outbound.mydomain1.tld
readme_directory = no
recipient_delimiter = +
relay_domains =
relayhost =
show_user_unknown_table_name = no
smtpd_banner = $myhostname ESMTP Postfix ready
smtpd_delay_reject = yes
transport_maps = hash:/etc/postfix/transport


root@myhost:/etc/postfix# cat transport
#these domains route to smarthosts in the DMZ which then route direct to Internet
mydomain1.tld   smtp:[x.x.x.152]
mydomain2.tld   smtp:[x.x.x.157]
#all other domains route direct to Internet







On Tue, Nov 8, 2011 at 3:53 AM, vr  wrote:

We have Exchange 2010 with a few domains and have run across the
need to split outgoing mail direct to the Internet and also to smart
hosts depending on their @domain.tld. Exchange 2010 does not support
this "by design" so if Postfix does, is this functionality a relay?
Looking at the BASIC_CONFIGURATION_README doesn't quite look like a
match to my untrained eyes so any clues or configuration pointers
are greatly appreciated.




Reply via email to