Chris Robinson: > I use an Amazon SES relay that has a max message size of 10MB. I > have a small client base who sometimes send large documents as > attachments. Sometimes they will send to multiple recipients which > may include external and internal (local) addresses. > > When this happens postfwd will get a hit on the EOM rule that > detects size>9MB. The rule's action is "FILTER smtp:" in order to > bypass the relay. This rule also has a pcre item that is meant > to exclude local recipients from the hit but which was ignored (I > realise now it's because we are dealing with the whole message) > with the result that the external recipients got "mail loops back > to myself".
I would get rid of size-dependent routing, which is where the problem originates. > Wietse, unless you can come up with a lovely simple way of handling > multi-recipient routing, or unless Victor's solution does not > involve a second instance of postfix, I think I will have to follow > Noel's advice. Postfix has routing based on recipient address, routing based on something else, but not routing based on both. Wietse