Sendmail::M4::Utils

Sendmail::M4::Utils module can create and test sendmail M4 hack macro files.
Download

Sendmail::M4::Utils Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ian McNulty
  • Publisher web site:
  • http://search.cpan.org/~cml/Sendmail_M4.0.29a/M4/Utils.pm

Sendmail::M4::Utils Tags


Sendmail::M4::Utils Description

Sendmail::M4::Utils module can create and test sendmail M4 hack macro files. Sendmail::M4::Utils module can create and test sendmail M4 hack macro files.SYNOPSISSendmail is arguably the most powerfull and configurable e-mailing system in the world, however it does tend to be intimidating to System Adminstrators without a good foundation in programming. It is a very good idea to look at the "O'Reilly" publications "sendmail 3rd edition +" and their "Sendmail Cookbook", most tasks that need to be done can be solved by having a look at the "CookbooK".Where a solution can not be found in the "Cookbook" or an existing "Hack" you will need to create your own.Creating and testing sendmail hack macros can be a tiresome and error prone business, this script has been developed to help, however you will still need to understand sendmail macros to use this. Testing methods are desgined to be used by both the commamd line and via HTML using a web browser.Please note that you will have to hand edit your sendmail m4 #.mc file, to include the reference to the hack being generated, below is an example taken from our own linux.mc file. The line you must include, begins with HACK the hack file follows, the current development version can be found as Sendmail::M4::Mail8 and Sendmail::M4::mail8, mail8 is the program, Mail8 is its module, see their documetation for more. dnl We use the generic m4 macro definition. This defines dnl an extented .forward and redirect mechanism. dnl DOMAIN(`generic')dnl dnl HACK(`mail8-stop-fake-mx')dnl dnl These mailers are available. per default only smtp is used. You have dnl to add entries to /etc/mail/mailertable to enable one of the other dnl mailers. dnl MAILER(`local')dnl MAILER(`smtp')dnl MAILER(`procmail')dnl MAILER(`uucp')dnl MAILER(`bsmtp')dnl MAILER(`fido')dnl dnl dnl Just an other (open)ldap feature is the usage of maill500 as mailer dnl for a given (open)ldap domain (see manual page mail500). dnl dnl MAILER(`mail500', `place_here_your_openldap_domain')dnl dnl dnl This line is required for formating the /etc/sendmail.cf dnl LOCAL_CONFIGThe most notable help are.MACRO{When constructing "macros" is the ability to "nest" called macros within the text block of the calling "macro", below is an example of the development version of our ANTI-SPAM hack. rule ScreenMail8blocker ${mail3tt} }MACRO }MACRO RULEWithout the "nested" macro structure this could be difficult to keep track of, and indeed it was, thats why we have developed this.Inline MACROThe above MACRO{ also handles INLINE MACROS which enable much used logical statements to be included without the cost of another rule-set, this module includes a selection of these.Packed Macro {MashFound#}Most of the included INLINE MACROS use the packed macro {MashFound#}, which are designed to hold 9 long-names each, which of the {MashFound#} macros being refered to is invisable to the developer|user. And during testing the normal macro statement {####} where #### is a macro contained by {MashFound#} may be used, the testing program does all the required conversions.This is required due to the limited number of free to use long-names, sendmail assigns long-names for it-self at run-time. And so working OK during testing does not mean that sendmail will not fail at run-time. It is recommended to keep develeoper long-names to under 16.TESTAutomated testing, the inclusion of test data within the source program, some of which is highly automated. It is very easy to generate 4000 lines of test results, the TEST setup has expected replys, so will only stop on the unexpected, so any changes to a script can be checked with ease.After using this to generate your HACK M4 files you will never want to it by hand again!This module is non OO, and exports the methods descriped under EXPORTS.Requirements:· Perl Requirements: · Perl


Sendmail::M4::Utils Related Software