Re: protecting internal email distribution lists

2022-08-24 Thread Viktor Dukhovni
On Wed, Aug 24, 2022 at 09:32:10PM +0300, Ivars Strazdins wrote: > Sorry if I replied to the list twice, but Noel’s advice nailed it. > "check_recipient_access=hash:/etc/postfix/protected_destinations" must > be added to master.cf smtps and submission, then sending is not > allowed. More precisel

Re: protecting internal email distribution lists

2022-08-24 Thread Ivars Strazdins
Sorry if I replied to the list twice, but Noel’s advice nailed it. "check_recipient_access=hash:/etc/postfix/protected_destinations" must be added to master.cf smtps and submission, then sending is not allowed. Thanks! Kind regards, Ivars > On 24 Aug 2022, at 20:15, Noel Jones wrote: > > Since

Re: protecting internal email distribution lists

2022-08-24 Thread Noel Jones
Since this is done with smtp_recipient_restrictions, it will only work with mail submitted via SMTP and not with mail sent through the sendmail(1) command. Also, you may have put overrides for smtp_recipient_restrictions in master.cf for the submission or submissions (smtps) ports that will n

Re: protecting internal email distribution lists

2022-08-24 Thread Ivars Strazdiņš
> On 24 Aug 2022, at 19:38, julio covolato wrote: > > > Em 24/08/2022 13:06, Jaroslaw Rafa escreveu: >> Dnia 24.08.2022 o godz. 19:03:37 Ivars Strazdiņš pisze: >>> I tested and it did not work for local users, access is denied (sending not >>> possible) only for external ones. >>> Mail is se

Re: protecting internal email distribution lists

2022-08-24 Thread julio covolato
Em 24/08/2022 13:06, Jaroslaw Rafa escreveu: Dnia 24.08.2022 o godz. 19:03:37 Ivars Strazdiņš pisze: I tested and it did not work for local users, access is denied (sending not possible) only for external ones. Mail is sent to l...@domain.com regardless if local send

Re: protecting internal email distribution lists

2022-08-24 Thread Jaroslaw Rafa
Dnia 24.08.2022 o godz. 19:03:37 Ivars Strazdiņš pisze: > > I tested and it did not work for local users, access is denied (sending not > possible) only for external ones. > Mail is sent to l...@domain.com regardless if local > sender address is in the insiders map or no

Re: protecting internal email distribution lists

2022-08-24 Thread Ivars Strazdiņš
Hi Julio, I tested and it did not work for local users, access is denied (sending not possible) only for external ones. Mail is sent to l...@domain.com regardless if local sender address is in the insiders map or not. I use lmtp for local mail delivery, could that be a p

Re: protecting internal email distribution lists

2022-08-24 Thread Viktor Dukhovni
On Wed, Aug 24, 2022 at 04:08:29PM +0300, Ivars Strazdins wrote: > I know that it is possible to protect l...@domain.com from external > senders, as per https://www.postfix.org/RESTRICTION_CLASS_README.html > > But is it possible to limit users from the same domain who can send > mails to an inte

Re: protecting internal email distribution lists

2022-08-24 Thread julio covolato
Em 24/08/2022 10:08, Ivars Strazdins escreveu: Hello Postfix Experts, let’s say that domain.com is Postfix $mydomain. I know that it is possible to protect /etc/postfix/protected_destinations from external senders, as per https://www.postfix.org/RESTRICTION_CLASS_README.htm

Re: protecting internal email distribution lists

2022-08-24 Thread Jaroslaw Rafa
Dnia 24.08.2022 o godz. 16:08:29 Ivars Strazdins pisze: > Hello Postfix Experts, > let’s say that domain.com is Postfix $mydomain. > I know that it is possible to protect l...@domain.com > from external senders, as per > https://www.postfix.org/RESTRICTION_CLASS_README.ht

protecting internal email distribution lists

2022-08-24 Thread Ivars Strazdins
Hello Postfix Experts, let’s say that domain.com is Postfix $mydomain. I know that it is possible to protect l...@domain.com from external senders, as per https://www.postfix.org/RESTRICTION_CLASS_README.html But i