LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Sendmail rules.

[ILUG] Sendmail rules.

Lars Hecking lhecking at nmrc.ucc.ie
Tue Jun 1 17:46:41 IST 1999


> but can I add a rule to check for a 'Subject' line in an e-mail 
> header and if not present to add an empty 'Subject' line?
 
 a)

 If your local delivery agent is procmail, which is the default on many
 Linux systems, you can just add a recipe to the global procmailrc file,
 /etc/procmailrc. Something like

:0hfw
| /usr/bin/formail -a"Subject:"

 or, if you don't want to run formail on every mail (for performance
 reasons),

:0hfw
* ! ^Subject:
| /usr/bin/formail -a"Subject:"

 b)

 In sendmail.cf, you can add 

HSubject:

 "... to ensure that every mail message has at least an empty Subject: line."

 (quote from bat book). This probably translates to

LOCAL_RULESETS
HSubject:

 in your .mc file.

 But it can get a lot more complicated if you have other local rulesets which
 perform checks on the Subject: header.





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell