Current Issue


Table of contents

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 12.0

Version 12.0 delivers every issue of Sys Admin from 1992 through 2006 and every
issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!

Sys Admin Magazine > Archives > 2004 > October 2004

Questions and Answers

Amy Rich

Q We use majordomo to manage a large number of mailing lists. One of the nice features is that it checks the message body and bounces the message to the moderator if the message looks like something that should have gone to majordomo instead of to the list (e.g., unsubscribe, subscribe, remove me, etc.). Normally, this is great, since it prevents a lot of garbage traffic on the lists, but in some cases it tends to bounce valid mail. Is there a way to fine-tune this behavior so that we don't get valid list mail bounced to the moderator?

A Majordomo uses a set of regular expression matches for the Subject: header and the first ten lines of the body. If you take a look at majordomo.cf, you'll see the following near the end:

# List of perl regular expressions that, if found in the headers 
# of a message, will cause the message to be bounced to the list 
# approver. Put each regular expression on a separate line before 
# the "END" mark, with no trailing ";"
   
# Administrative checks. These used to be buried in the resend code
$admin_headers = <<'END';
(regular expressions deleted)
END
   
# Common things that people send to the wrong address.
# These are caught in the first 10 lines of the message body 
# if 'administrivia' is turned on and the message isn't marked 
# approved.
$admin_body = <<'END';
(regular expressions deleted)
END
   
# taboo headers to catch
$global_taboo_headers = <<'END';
(regular expressions deleted)
END
   
# Taboo body contents to catch and forward to the approval address
$global_taboo_body = <<'END';
END
You can modify any of these regular expressions to suit your needs, but having majordomo magically know that one message should be passed and another with the same regex match should be bounced to the moderator isn't possible.



MarketPlace

Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.

Villanova University Six Sigma & IT Certificate Programs
100% Online programs in Six Sigma, IS Security, CISSP Prep, Business Analysis, Proj. Mgmt. and more!

WinDev 11 - Powerful IDE
Develop 10 times faster ! ALM, IDE, .Net, RAD, 5GL, Database, 5GL, 64-bit, etc. Free Express version

Domain Name Registrations, Web Hosting, Email
Pay less for Domain Names, Increase your company's bottom line - get a raise. Accredited domain name registrar, ZippyNames.us : Discount bulk transfers, email, webhosting, dedicated servers. Earn money as a domain name reseller - better discounts!

Wanna see your ad here?