[pfx] Re: destination based rate limiting

2023-03-27 Thread Viktor Dukhovni via Postfix-users
On Mon, Mar 27, 2023 at 11:21:15AM +, Gino Ferguson via Postfix-users wrote: > How can one set up outbound rate limiting for a certain mail service > provider? Postfix rate limiting is implemented in the queue manager, which does not (and cannot without a major redesign) know the MX hosts

[pfx] Re: destination based rate limiting

2023-03-27 Thread Wietse Venema via Postfix-users
Gino Ferguson via Postfix-users: > Hi, > > How can one set up outbound rate limiting for a certain mail service > provider? Did you mean concurrency limit (number of parallal deliveries) or rate limit (for example, number of deliveries per minute)? > Can postfix 'recognise' that

[pfx] Re: Blocked Sender

2023-03-27 Thread natan via Postfix-users
Hi Yes, my pasting error smtpd_sender_restrictions =     permit_mynetworks     check_sender_access pcre:/etc/postfix/sender_checks.pcre     reject_unknown_sender_domain     ... cat /etc/postfix/sender_checks.pcre /@domain\.ltd/ OK Of course, if required, use $ at the end For me better is

[pfx] Re: destination based rate limiting

2023-03-27 Thread natan via Postfix-users
Hi Try postfwd for postfix http://postfwd.org/ratelimits.html W dniu 27.03.2023 o 13:21, Gino Ferguson via Postfix-users pisze: Hi, How can one set up outbound rate limiting for a certain mail service provider? Can postfix 'recognise' that recipientdomainA, recipientdomainB and

[pfx] Re: Blocked Sender

2023-03-27 Thread Viktor Dukhovni via Postfix-users
On Mon, Mar 27, 2023 at 02:16:06PM +0200, Matus UHLAR - fantomas via Postfix-users wrote: > On 27.03.23 12:39, natan via Postfix-users wrote: > >/etc/postfix/sender_checks.pcre > >/@scripkabox\.com/ > > >/@domain\.ltd/ OK > > > In any case I recommend using

[pfx] Re: Blocked Sender

2023-03-27 Thread Matus UHLAR - fantomas via Postfix-users
On 27.03.23 12:39, natan via Postfix-users wrote: /etc/postfix/sender_checks.pcre /@scripkabox\.com/ /etc/postfix/recipient_checks.pcre smtpd_sender_restrictions =     permit_mynetworks     check_sender_access pcre:/etc/postfix/sender_checks.pcre    

[pfx] Re: question on relay_domains

2023-03-27 Thread fh--- via Postfix-users
On 2023-03-27 19:23, Matus UHLAR - fantomas via Postfix-users wrote: On 27.03.23 18:08, fh--- via Postfix-users wrote: I plan to add a backup mx for the domain. When I checked the doc for "relay_domains" which says, Note: Postfix will not automatically forward mail for domains that list this

[pfx] Re: destination based rate limiting

2023-03-27 Thread fh--- via Postfix-users
On 2023-03-27 19:21, Gino Ferguson via Postfix-users wrote: Hi, How can one set up outbound rate limiting for a certain mail service provider? Can postfix 'recognise' that recipientdomainA, recipientdomainB and recipientdomainC are hosted at the same mail service provider

[pfx] Re: question on relay_domains

2023-03-27 Thread Matus UHLAR - fantomas via Postfix-users
On 27.03.23 18:08, fh--- via Postfix-users wrote: I plan to add a backup mx for the domain. When I checked the doc for "relay_domains" which says, Note: Postfix will not automatically forward mail for domains that list this system as their primary or backup MX host. See the permit_mx_backup

[pfx] destination based rate limiting

2023-03-27 Thread Gino Ferguson via Postfix-users
Hi, How can one set up outbound rate limiting for a certain mail service provider? Can postfix 'recognise' that recipientdomainA, recipientdomainB and recipientdomainC are hosted at the same mail service provider (bigmxprovider.com) so this limiting must be applied automatically? The

[pfx] Re: Blocked Sender

2023-03-27 Thread natan via Postfix-users
Hi Mayby this help you: /etc/postfix/sender_checks.pcre /@scripkabox\.com/ /etc/postfix/recipient_checks.pcre smtpd_sender_restrictions =     permit_mynetworks     check_sender_access pcre:/etc/postfix/sender_checks.pcre     reject_unknown_sender_domain     ... cat

[pfx] question on relay_domains

2023-03-27 Thread fh--- via Postfix-users
Hi I plan to add a backup mx for the domain. When I checked the doc for "relay_domains" which says, Note: Postfix will not automatically forward mail for domains that list this system as their primary or backup MX host. See the permit_mx_backup restriction in the postconf(5) manual page.

[pfx] Re: Blocked Sender

2023-03-27 Thread Jaroslaw Rafa via Postfix-users
Dnia 27.03.2023 o godz. 00:10:08 Doug Hardie via Postfix-users pisze: > > The first thing I noticed is that smtpd accesses some of the tables. That > I didn't expect based on the README. I don't think it is using those > tables to rewrite addresses, but it is not obvious why it accesses them.

[pfx] Re: Requesting A Sanity Check, Please, + A Couple Of Qs

2023-03-27 Thread raf via Postfix-users
On Thu, Mar 23, 2023 at 05:58:13PM +1100, duluxoz via Postfix-users wrote: > Hi All, > > TL:DR: Could someone(s) please have a look-see at our config as a sanity > check for us, and also answer the questions at the end of this post - > thanks. Hi, I probably can't help with everything but

[pfx] Re: Blocked Sender

2023-03-27 Thread Doug Hardie via Postfix-users
> On Mar 26, 2023, at 16:23, Viktor Dukhovni via Postfix-users > wrote: > >> ... > > Well, this does not have the "inline:{{...}}" guard. > >>> incoming_smtpd_restrictions = >>> check_policy_service inet:127.0.0.1:10040, >>> reject_invalid_hostname, >>>