>> 
>> Hi All,
>> 
>> I'm wondering if some know is this is possible to stop using SA. Look.
>> 
>> [r...@cyrus postfix]# telnet localhost 25
>> Trying 127.0.0.1...                      
>> Connected to cyrus.sat.gob.mx (127.0.0.1).
>> Escape character is '^]'.                 
>> 220 mx2.sat.gob.mx ESMTP Postfix          
>> EHLO brandmauer.insys-corp.com.mx         
>> 250-mx2.sat.gob.mx                        
>> 250-PIPELINING                            
...
As you see, MAIL FROM (SMTP protocol) and From (DATA) are different, and 
Amavis+SA+Postfix is acceptiont this.  Is this a SA task or Amavis or Postfix,

Hi Luis,

I am running a custom filter in qmail to do exactly that. To be honest, it took 
me about
3 months to get that working right.
Basically the rules are:
a) If the To address matches one of my possible email addresses (the filter is 
applied
after collecting mails from a few pop mailboxes), and I am the only recipient, 
let
the mail through
b) if the (mailfrom or from) sender is in a whitelist (populated from mailing 
list senders,
and very few colleagues that send BCC), let the mail through
c) If I do not appear in To or Cc at all, quarantine the mail
d) If there are more than 3 or so recipients (in particular from @t-online.de, 
which is
a big ISP for private users), and not at least one of them also appears in that 
whitelist,
quarantine
e) Potential addition: detect display names that do not match those you use for 
sending

I still look at a quarantine summary - some mailing list could have changed or 
so, or
maybe there is an annual mailing list reminder that does not match the 
whitelist entry

As you can see, this is solution for a single recipient, not for a mailserver,
and as such it could perhaps be done in a procmail recipe.

Wolfgang

Reply via email to