Birta Levente via Postfix-users:
> Hello
>
> I have the following situation:
> default_transport=smtp
> -need to send to domain1 through smtpa, except if the sender is
> from_special then send through smtpb
>
>
> smtp.....smtp
> -o smtp_bind_address=ip1
> smtpa ..... smtp
> -o smtp_bind_address=ip1
> -o ......
> smtpb ..... smtp
> -o smtp_bind_address=ip2
> -o ....
>
> How can I achive this?
/etc/postfix/main.cf:
# Limitation: this setting is overruled with FILTER and transport_maps.
sender_dependent_default_transport_maps = inline:{
{ [email protected] = smtpb } }
If you have many such users, use a cdb:, hash:, btree: or lmdb: file.
Avoid SQL/LDAP here, because the lookup happens in the critical
path of the Postfix scheduler.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]