The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

mailinglist_simple Version 1.0 by Marc Sebastian Pelzer

DESCRIPTION

This plugin adds very simple mailinglist functionality to alias-file based distribution lists. It reads its config-file config/mailinglist_simple and checks if the RCPT is a defined mailinglist. If true, it adds a "Reply-to" header to the email before it gets queued. It also adds a "Precedence: bulk" and "X-Mailing-List" header to prevent mail-loops/bounces from auto-reply applications.

Its also possible to define a mailinglist as PUBLIC or PROTECTED - meaning if everyone can send an email to the list or just members of the list. You can also have a different signature for each list that will be added to the end of the mail.

This plugin needs to be called in the config file config/plugins and must be BEFORE the "rcpt_ok" plugin!

If you want PROTECTED maillinglist support, you must call the plugin with one parameter - the path and/or filename to your alias directory or alias file where your distribution lists are defined on the format:

localpart: email@email.com,email2@email.com,email3@email.com

Example config extries:

mailinglist_simple

mailinglist_simple /usr/local/exim/virtual-domains/

mailinglist_simple /etc/aliases

Maybe you need to change the sourcecode to fit it to your alias file schema. Should not be too hard if you know Perl :)