Thanks. Can you point me to docs or what to search for to set up the per-sender 
default transports? I might be able to make that work. Running multiple postfix 
instances isn't a show stopper for me for this exercise.

-----Original Message-----
From: owner-postfix-us...@postfix.org <owner-postfix-us...@postfix.org> On 
Behalf Of Viktor Dukhovni
Sent: Thursday, December 8, 2022 11:15 AM
To: postfix-users@postfix.org
Subject: Re: Is there an easy way to "warm up" a new sending IP w/ Postfix

On Thu, Dec 08, 2022 at 04:01:26PM +0000, Sean Hennessey wrote:

> As is sometimes the case, this has turned a bit into going down a 
> rabbit hole. I find the case now that it would be "really nice" to be 
> able to also throw from addresses in the loop here. So basically, if 
> the from address is a...@somewhere.com, then I want to relay X% of 
> traffic to one relay as I've got working below. I looked at the 
> pgsql_table man page, but it looks like it only takes in the to 
> address for the %s for the transport map. I'm assuming there is other 
> maps I can do for the from address, but I'm not sure if it's possible 
> to create something that chains them together. I'm going to dive into 
> the postfix.org docs to see if anything pops for me, but I figured I'd 
> throw this out there in the hopes that better minds then I might have 
> some ideas.

Sorry you can't chain lookups on sender *and* recipient addresses (more 
generally multiple input keys), and to avoid lots of possible mistakes, 
probably shouldn't anyway.

What you can do with sender addresses is configure per-sender *default* 
transports, but these only apply when the recipient is for a remote domain, and 
has no explicit recipient-specific transport setting.

The only way to chain these is multiple Postfix instances, where the default 
transport for some recipients sends mail to separate Postfix instances that are 
warming up some recipient domains, while all other senders are delivered 
normally (direct-to-MX with no transport overrides).

-- 
    Viktor.

Reply via email to