Le 10/05/2011 15:39, Hubeli Daniel a écrit : > Hi all, I'm pretty new to postfix and I'm trying to configure a mail relay on > a "internal" network that should relay mails outside (Internet) based on > different rules. > > As a first step I configure Postfix to allow some servers to send mail for > certain domain and specifically to certain addresses. To do this I've used > some of the most used directives: > > "relay_domains" > "mynetworks_style" > "mynetworks" > "relayhost" > "transport_maps" > "relay_recipient_maps" > "smtpd_recipient_restrictions" > > My problem is that now I have to enable another group of server to use this > mail server as relay but I have to apply other rules to this new group of > servers. Is there a way to have different rules (for istance > "relay_recipient_maps") based on source hosts/addresses ? ... maybe something > like acl for squid proxy ... >
not that way. if you want per origin rules, you'll need to use smtpd_*_restrictions or use multiple postfix instances (one per origin). > Thanks very much in advance for any help, kind regards, > Daniel > >