Suppress delivery-notification/Read-receipt for spam?

Dino Edwards dino.edwards at mydirectmail.net
Mon Apr 24 11:30:51 CEST 2017


How about an SA meta rule like this?

header __DISPOSITION_NOTIFICATION_TO exists:Disposition-Notification-To 
header   __SUBJECT_CONTAINS_SPAM Subject =~ /\bSPAM\b/i
meta SPAM_WITH_READ_RECEIPT  (__DISPOSITION_NOTIFICATION_TO && __SUBJECT_CONTAINS_SPAM)
score  SPAM_WITH_READ_RECEIPT 15

Assuming you have a MYNETS policy in amavis, they should in effect get blocked

$policy_bank{'MYNETS'} = {  # mail originating from @mynetworks
   originating => [1],  # is true in MYNETS by deflt, but let's make it explicit
   terminate_dsn_on_notify_success => [0],
   spam_kill_level_maps => [6.9],
   spam_subject_tag2_maps => ["***SPAM ORIGINATED FROM LOCAL NETWORK*** "],
   virus_admin_maps => ["postmaster\@$mydomain"], # alert of internal viruses
   spam_admin_maps  => ["postmaster\@$mydomain"],  # alert of internal spam
   warnbadhsender => [1],  # warn local senders about their broken MUA
   spam_quarantine_cutoff_level_maps => [15],
};



-----Original Message-----
From: amavis-users [mailto:amavis-users-bounces+dino.edwards=mydirectmail.net at amavis.org] On Behalf Of Ralf Hildebrandt
Sent: Sunday, April 23, 2017 3:32 PM
To: amavis-users at amavis.org
Subject: Re: Suppress delivery-notification/Read-receipt for spam?

* Robert Schetterer <rs at sys4.de>:
> Am 23.04.2017 um 18:50 schrieb Ralf Hildebrandt:
> > * Benny Pedersen <me at junc.eu>:
> >> Ralf Hildebrandt skrev den 2017-04-22 11:52:
> >>
> >>> Can this be suppressed somehow?
> >>
> >> you know postfix very well imho :=)
> >>
> >> header_checks ignore.....
> > 
> > But WHICH headers to ignore? Primarily Outlook Read receipts are of 
> > my concern
> > 
> 
> on a postfix (spamassassin)  exchange gateway
> 
> /etc/postfix/header_checks
> 
> /^Subject: Abwesenheitsnotiz: .*.*.*.*SPAM*/ REJECT dont send 
> vaccation messages to senders allready marked as SPAM (2)
> /^Subject: Unzustellbar: .*.*.*.*SPAM*/ REJECT dont send ndrs to 
> senders allready marked as SPAM (3)

No, that's not what I'm looking for. That would suppress all Notices.

I want to suppress these ONLY for spammy mails (meaning: I have to deactivate the header telling Outlook "Send a read-receipt" whenever a mail is considered spammy)

-- 
Ralf Hildebrandt                   Charite Universitätsmedizin Berlin
ralf.hildebrandt at charite.de        Campus Benjamin Franklin
https://www.charite.de             Hindenburgdamm 30, 12203 Berlin
Geschäftsbereich IT, Abt. Netzwerk fon: +49-30-450.570.155


More information about the amavis-users mailing list