Re: check rcpt to, from and destination in one session - nested smtpd_restriction_classes?

2018-05-15 Thread Stefan Bauer
That works. thank you very much guys for your help! 2018-05-15 18:10 GMT+02:00 Viktor Dukhovni : > > > > On May 15, 2018, at 11:38 AM, Stefan Bauer > wrote: > > > > I can not think of a way to achieve this. > > It is unclear what combination

Re: check rcpt to, from and destination in one session - nested smtpd_restriction_classes?

2018-05-15 Thread Stefan Bauer
Sorry for beeing unclear: my criterias are if (from 10.8.1.1-3 and mail from: benachrichtigung@) then only allow rcpt to: example.org, example.net, example.edu) If from 10.8.1.1-3 and mail from anything else, no limitation should take place. 2018-05-16 0:14 GMT+02:00 Jan P. Kessler <

Re: check rcpt to, from and destination in one session - nested smtpd_restriction_classes?

2018-05-15 Thread Jan P. Kessler
postfix is configured as relay server. Other systems relay with postfix. Here i want to allow for a specific group of hosts, when they use a specific mail from address only a few specific destination domains. Other hosts should not be bothered. This is only a need to limit a group of hosts

Re: check rcpt to, from and destination in one session - nested smtpd_restriction_classes?

2018-05-15 Thread Viktor Dukhovni
> On May 15, 2018, at 11:38 AM, Stefan Bauer wrote: > > I can not think of a way to achieve this. It is unclear what combination of criteria you want to use. What naïvely makes sense to me is that the client hosts in question are to be restricted to a particular

RE: check rcpt to, from and destination in one session - nested smtpd_restriction_classes?

2018-05-15 Thread Fazzina, Angelo
Hi, sounds like you want If from ( benachrichtig...@cubewerk.de) and from (10.8.1.1-3) Then allow Else REJECT Sounds like you would need a regex expression to catch two conditions and then act on it. Not sure postfix can store result of first check and