On Tue, Feb 02, 2021 at 12:27:40PM +0200, George Papas wrote:
> # Do not indent the patterns between "if" and "endif".
> if /^[> ]*Received:/
> /^[> ]*Received: +from +ip53\.ip-139-99-176\.net /
> reject forged sender name in Received: header: $1
> endif
The above syntax is wrong. The "reject ..." action needs to be on the
same line as the pattern:
if /^[> ]*Received:/
/^[> ]*Received: +from +ip53\.ip-139-99-176\.net / reject forged sender
name in Received: header: $1
endif
> and I get this in the logsĀ but the messages bounce back :
>
> warning: body_checks lookup of Received: from ip53.ip-139-99-176.net
> (ip53.ip-139-99-176.net [139.99.176.53]) returns an empty string result
> FebĀ 2 02:59:13 postfix/cleanup[25450]: warning: body_checks should
> return NO RESULT in case of NOT FOUND
On Tue, Feb 02, 2021 at 12:46:07PM -0500, Wietse Venema wrote:
> > Can somebody help me ? I,m getting over a thousand reports per hour in
> > my postmaster mailbox
>
> Did you notice the warnings for "no replacement text: using empty string"
> and "ignoring unrecognized request"?
Wiete's reply is directing you to look more closely at the the table
syntax.
--
Viktor.