[pfx] Re: check_policy_service for customizing routing & load balancing

2024-03-26 Thread Colin McKinnon via Postfix-users
Hi Viktor, Wietse also replied to say I wasn't able to solve this with Postfix. > > What kind of "load balancing"? Why won't MX records do? For uneven > weights, you can even use SRV records: > I'm trying to setup load balancing across a cluster of relays for a SAAS application. There's several

[pfx] Re: check_policy_service for customizing routing & load balancing

2024-03-26 Thread Colin McKinnon via Postfix-users
Hi, Stuck again. Using smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:8822 smtpd_policy_service_default_action = DUNNO I get: Mar 26 15:49:03 test106 postfix/smtpd[163532]: warning: access table inet:127.0.0.1:8822 has entry with lookup table: smtp:[test105.southwo

[pfx] Re: check_policy_service for customizing routing & load balancing

2024-03-26 Thread Colin McKinnon via Postfix-users
Hi all, I found that check_policy_service works (maybe*) in `smtpd_end_of_data_restrictions =`. So I'm guessing it might work in any *_restrictions configuration. (*still having some issues getting this to work as expected, but I'll come back here if I get stuck) Colin On Tue, 26 Mar 2024 at 13

[pfx] check_policy_service for customizing routing & load balancing

2024-03-26 Thread Colin McKinnon via Postfix-users
Hi, I want to provision load balancing for my relays. The catch is that there is already some customized routing in place based on recipient domain and large block lists. These are currently handled by a transport map. I would prefer not to implement 2 layers of relays. If this were implemented a

[pfx] Re: Dynamic transport?

2024-03-14 Thread Colin McKinnon via Postfix-users
On Wed, 13 Mar 2024 at 17:00, Viktor Dukhovni via Postfix-users wrote: > > http://www.postfix.org/SMTPD_POLICY_README.html > Thank you Victor. "The policy server replies with any action that is allowed in a Postfix SMTPD access(5) table." is exactly what I needed. > Or deferring, with 4X

[pfx] Re: Dumb question about logging

2024-03-13 Thread Colin McKinnon via Postfix-users
On Fri, 8 Mar 2024 at 05:52, Stephen Satchell via Postfix-users wrote: > > Assuming that one's configuration has open relay, what does a log entry > for relayed mail look like? I think you really need to look at multiple log entries to discover that, e.g. Mar 13 16:21:06 mail-4 postfix/smtpd[186

[pfx] Dynamic transport?

2024-03-13 Thread Colin McKinnon via Postfix-users
Hi, In my previous question [1] Viktor Dukhovni suggested > you could use a policy service to impose rate limits per SASL login, or sender address as a means of preventing active queue congestion. This took me down a bit of a rabbit hole looking at SMTP Access Policy delegation and tcp_tables

[pfx] Re: Active queue congestion

2024-03-07 Thread Colin McKinnon via Postfix-users
7 Mar 2024 at 13:46, Viktor Dukhovni via Postfix-users < postfix-users@postfix.org> wrote: > On Thu, Mar 07, 2024 at 12:26:06PM +0000, Colin McKinnon via Postfix-users > wrote: > > > I look after a SAAS site where customers can send emails to their own > > domains. At ti

[pfx] Active queue congestion

2024-03-07 Thread Colin McKinnon via Postfix-users
Hi, I look after a SAAS site where customers can send emails to their own domains. At times some of our customers can initiate sending of large mail volumes - which can swamp the active queue. >From [1]: "The only way to reduce congestion is to either reduce the input rate or increase the through