Re: R: third-level domains

2022-07-28 Thread Matus UHLAR - fantomas
On 27.07.22 21:41, Scappatura Rocco wrote: relay_domains = proxy:mysql:/etc/postfix/mysql-relay-domains.cf /etc/postfix/mysql-relay-domains.cf: query = select domain from domain where domain='%s' and active='1' And, obliviously, while the query returns '2domain.tld' for the domain 2domain.tld,

different milters for different SMTP clients

2022-07-28 Thread Ivars Strazdiņš
Hi, I have three separate milters - dkim signing, antivirus and spam check. I’d like dkim and antivirus milter to be applied to all clients, but spam check only to non-local clients. Is it possible to devise a map for that? The example for smtpd_milter_maps setting seems to be all or none approac

Re: different milters for different SMTP clients

2022-07-28 Thread Matus UHLAR - fantomas
On 28.07.22 14:17, Ivars Strazdiņš wrote: I have three separate milters - dkim signing, antivirus and spam check. I’d like dkim and antivirus milter to be applied to all clients, but spam check only to non-local clients. some milters can exclude IP ranges and/or authenticated users themselve

Re: different milters for different SMTP clients

2022-07-28 Thread Jesper Dybdal
On 2022-07-28 13:17, Ivars Strazdiņš wrote: The example for smtpd_milter_maps setting seems to be all or none approach - it seems not possible to configure postfix to apply only some milters based on client’s IP address. If I've understood what you want, then smtpd_milter_maps can do just th

Re: different milters for different SMTP clients

2022-07-28 Thread Matus UHLAR - fantomas
On 2022-07-28 13:17, Ivars Strazdiņš wrote: The example for smtpd_milter_maps setting seems to be all or none approach - it seems not possible to configure postfix to apply only some milters based on client’s IP address. hmmm you have misunderstood it? for every host/IP/eange (depending on map

Re: different milters for different SMTP clients

2022-07-28 Thread Ivars Strazdins
Many thanks guys! It was very useful. I did not understand what a Postfix cidr map can contain, I though it can be only OK, REJECT, DISABLE keywords. Given that I have three local nets - netA, netB, netC - and three milters of which one applies to all nets, my postfix config would look like: smt