On 28/10/2024 21:46, Wietse Venema via Postfix-users wrote:
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:{
{ u...@example.com = smtpb } }
Indeed, my problem is this limitation.
I forgot to mention that I have transport map:
/domain1/ smtpa:
My problem is that I have to slow down the sending rate to domain1, but
in the same time I need to segregate (send out on different IP address)
based on sender address.
So, as I understand this is possible only with multi-instance?
Thanks
Levi
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 -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org