Changes

Jump to navigation Jump to search
278 bytes added ,  09:14, 16 October 2009
added badmailfromto template fragment
Line 536: Line 536:  
Enable the check_badmailfromto plugin. Adapted from [http://forums.contribs.org/index.php/topic,35667.0.html this Forum post]
 
Enable the check_badmailfromto plugin. Adapted 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
+
This is based heavily on the similar check_badmailfrom, but this plugin references both the
 
FROM: and TO: lines, and if they both are present in the badmailfromto
 
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
 
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
 
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
 
to not give the impression that the sender is blocked (good for cases of
harassment). Based heavily on check_badmailfrom.
+
harassment).  
    
To control mail from external locations to internal locations do
 
To control mail from external locations to internal locations do
Line 563: Line 563:  
  signal-event email-update
 
  signal-event email-update
 
   
 
   
 
+
Create and configure the badmailfromto custom template fragment
Configure the badmailfromto config file
+
mkdir -p /etc/e-smith/templates-custom/var/qmail/control/badmailfromto
  pico -w /var/qmail/control/badmailfromto
+
  pico -w /etc/e-smith/templates-custom/var/qmail/control/badmailfromto/template-begin
    
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
 
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-domain.com tab user@yourdomain.com enter
 
  user@bad-domain2 tab user2@yourdomain enter
 
  user@bad-domain2 tab user2@yourdomain enter
 +
 +
Note also that wildcards or blank spaces are not supported
    
eg
 
eg
Line 579: Line 581:  
  Ctrl x
 
  Ctrl x
   −
Note also that wildcards or blank spaces do not appear to be supported.
+
Expand the template to update the /var/qmail/control/badmailfromto config file
 +
expand-template /var/qmail/control/badmailfromto
 +
 
 +
Restart mail services
 +
signal-event email-update
    
===External Access===
 
===External Access===
624

edits

Navigation menu