Changes

Jump to navigation Jump to search
1,765 bytes added ,  14:39, 15 October 2009
added how to enable badmailfromto plugin
Line 530: Line 530:  
   spamassassin whitelist_from - Any envelope sender of a mail (*@host or user@host) matching an  
 
   spamassassin whitelist_from - Any envelope sender of a mail (*@host or user@host) matching an  
 
                                 entry in whitelist_from will be exempted from spamassassin rejection.
 
                                 entry in whitelist_from will be exempted from spamassassin rejection.
 +
 +
 +
====How to block email from one address to another address with check_badmailfromto plugin====
 +
 +
Enable the check_badmailfromto plugin. From [http://forums.contribs.org/index.php/topic,35667.0.html this Forum post]
 +
 +
This is much like the similar check_badmailfrom, but this plugin references both the
 +
FROM: and TO: lines, and if they both are present in the badmailfromto
 +
config file (a tab delimited list of FROM/TO pairs), then the message is
 +
blocked as if the recipient (TO) didn't exist.  This is specifically designed
 +
to not give the impression that the sender is blocked (good for cases of
 +
harassment). Based heavily on check_badmailfrom.
 +
 +
 +
mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0
 +
mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins
 +
pico -w /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins/31check_badmailfromto
 +
 +
Type in the following followed by Enter
 +
check_badmailfromto
 +
Then save the file and exit
 +
Ctrl o
 +
Ctrl x
 +
 +
Then do
 +
ln -s /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins/31check_badmailfromto /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/31check_badmailfromto
 +
signal-event email-update
 +
 +
Configure the badmailfromto config file
 +
pico -w /var/qmail/control/badmailfromto
 +
 +
Type in the From and To pairs that you want to stop email delivery for, with a tab between them and a carriage return at the end of the line, with additional pairs on a new line ie
 +
user@bad-domain.com tab user@yourdomain.com enter
 +
user@bad-domain2 tab user2@yourdomain enter
 +
 +
eg
 +
john@aol.com      mary@yourdomain
 +
bill@yahoo.com      paul@yourdomain.com
 +
 +
then save using
 +
Ctrl o
 +
Ctrl x
 +
 +
Note also that wildcards or blank spaces do not appear to be supported.
    
===External Access===
 
===External Access===
624

edits

Navigation menu