MM-HANDLER v3.2 - equivalence to postfix-to-mailman.py (1/2019) (tested for mailman2, not mailman3) There were two programs to shortcut the aliases interface for Postfix and Sendmail: mm-handler and postfix-to-mailman.py. They performed substantially the same function. The main difference between mm-handler and postfixto-mailman.py was the number of comamnd-line arguments. The v3.0 version of mm-handler took 4 arguments including a return address. It never used the return address. By removing the "r" flag in the sendmail config file two arguments: "-r" and return address are eliminated. The instruction here are for v3.2. As of 2018 the contrib direcotry of mailman contained two version of mm-handler. One dated 2002 and the other 2008. This version of mm-handler is labelled "v3" and is derived from the 2008 version. This mm-handler is a simplification of the older version (v2). It should drop in where the previous version was used by removing the "r" mailer flag. The difference from v2 is that this version optionally (default) forwards non-list mail to local mail addresses. Also, it supports forwarding all bounce messages to a specified destination. I assume working knowledge of sendmail and an already functioning mailhost. In general mm-handler simulates the realtime use of aliases like: testlist, testlist-admin, testlist-bounces,.... Normally those aliases would have been added to the aliases file of the host but the mm-handler perl script looks for an address which matches existing Mailman lists and executes the "mailman" program appropriately. First add the following to the end of your sendmail.mc: ------ MAILER_DEFINITIONS ## See ## http://www.sendmail.org/~ca/email/doc8.10/op-sh-5.html#sh-5.4 ## Consider adding 'A' flag if you set FWD2LOCAL=0 in mm-handler Mmailman, P=/etc/mail/mm-handler, F=DFMhlqSu, U=mailman:mailman, S=EnvFromL, R=EnvToL/HdrToL, A=mm-handler $h $u ------ ****First Method: Used to handle lists in a separate domain. Assume mailhost is now serving "example.com" and mailing lists will be under by "example-lists.com" hosted on the mailhost. Under /etc/mail/mailertable add line: example-lists.com mailman:example-lists.com Assume you know how to setup MX records to point example-lists.com to the mailhost. Do *not* add example-lists.com to /etc/mail/local-host-names! ****Second Method Adding lists to the main domain. This is for the experienced sendmail admins! Use this if you want to create mailman lists directly in the domain example.com. Reconfigure the current mail of example.com to be something like corp.example.com. This may be non-trivial. It will involve renaming example.com to be corp.example.com in the local-host-names and the rest of your mail infrastructure. Then under /etc/mail/mailertable add line: example.com mailman:example.com In "mm-handler" set $FWD2LOCAL = 1. This will make all mail not destined to a mailman list forward to a (presumed) local addresses. **** Note this hack is only useful because it is easy to install but an interface through aliases has significant advantages. Enjoy! Jim Ziobro, james@ziobro.rochester.ny.us 1/2019 P.S. you need Perl module Unix::Syslog so try: yum install cpan gcc cpan Unix::Syslog