> We are hardly spammed by numerous sources , the FIRST line of each email
> is like the following
> Return-Path: <[hidden email]>
> The left part of the address is constantly changed but the right is
> always @google.com
> I would like to discard all that spam, help greatly appreciated
> Thanks by advance
The Return-Path: header is added by postfix during delivery, and is
equal to the envelope sender address.
It's not clear that all @google.com senders are spam, so there may
be legit mail caught in the trap. Use with caution.
You can probably reject most of the spam using a few common and
relatively safe rules. I would suggest something like this:
# next line is considered quite safe
# next line is safe for most sites
# zen is considered a very safe and effective RBL
# next line rejects all @google.com senders. May reject legit mail.
## sender.pcre file contents:
/@google\.com$/ REJECT suspicious @google.com sender address
# while you're at it, reject the current .pw tld spam storm
/\.pw$/ REJECT ".pw" domains not accepted here
If you're uncomfortable with any of the above suggestions, you can
safely try them out by prepending warn_if_reject, which will log a
reject_warning:, but not reject the message. Like this:
warn_if_reject reject_rbl_client zen.spamhaus.org
The above settings require postfix 2.6 or newer, with pcre support.
On 5/3/2013 9:34 AM, Wolfgang Zeikat wrote:
> In an older episode, on 2013-05-03 16:30, Noel Jones wrote:
>> ## sender.pcre file contents:
>> /@google\.com$/ REJECT suspicious @google.com sender address
> Shouldn't the @ be escaped: \@
No. This isn't perl.
-- Noel Jones
>> # while you're at it, reject the current .pw tld spam storm
>> /\.pw$/ REJECT ".pw" domains not accepted here