Re: [exim] error code on redirect router for exceeding max m…

Pàgina inicial
Delete this message
Reply to this message
Autor: Graeme Fowler
Data:  
A: Exim-Users
Assumpte: Re: [exim] error code on redirect router for exceeding max msg size
On 4 Oct 2018, at 22:50, Nicola Tiling via Exim-users <exim-users@???> wrote:
> Yes. It’s the only item that proofs the message size and I’ve testet with a restriction of 1KB thats rejected the mail correct. And I proof it with exim in non daemon debugging mode.
>
> I’ve seen my error code in my own exim (intern) log. But sending a bigger mail with an extern address to this exim server sends me a rejection with a "550 - recipient unknow“ in the info message from the external mailserver. There I also want the correct code because a „recipient unknown“ is confusing the sending people


Your router is:

 driver              = redirect
 condition           = ${if >{$message_size}{${lookup pgsql{MAX_MSG}{${value}K}fail}} {true}{false}}
 data                = :fail: 552 Your message is too big.\n \


(that trailing backslash looks a bit suspicious to me; I don’t think that should be there).

When your ACLs are doing recipient verification - more than likely before the DATA phase, so $message_size is empty *unless* the SIZE command has been passed - if the router fails, the address won’t verify and a 550 will be the result from the ACL.

You should be doing your message size check in ACLs rather than in a router, or you should set ‘no_verify’ on the router so that it’s not used before DATA.

Graeme