Mlmmj

mlmmj
Kurzbeschreibung: mailing list managing made joyful
Offizielle Website: http://mlmmj.mmj.dk/
Offizielle Dokumentation:
Lizenz: GPL

Inhaltsverzeichnis

[Bearbeiten] Bewertung

  • (+) sehr einfache Konfiguration
  • (+) Beispiele in PHP
  • (-) Probleme mit HTML-Mails bei der Moderation

[Bearbeiten] Howto

[Bearbeiten] mlmmj Installation

1.) mlmmj emergen

emerge -v mlmmj

2.) Postfix einrichten

Make sure your mailserver accepts '+' as a recipient delimiter. In Postfix it's done by adding

recipient_delimiter = +

to /etc/postfix/main.cf.


3.) Create the mailinglist.

There's a script, mlmmj-make-ml.sh, that will make a mailinglist for mlmmj. It is highly recommended to use this script to make the lists! What is does is described here:

In the case of a list called mlmmj-test below /var/spool/mlmmj it makes the following directories:

   /var/spool/mlmmj/mlmmj-test/incoming
   /var/spool/mlmmj/mlmmj-test/queue
   /var/spool/mlmmj/mlmmj-test/queue/discarded
   /var/spool/mlmmj/mlmmj-test/archive
   /var/spool/mlmmj/mlmmj-test/text
   /var/spool/mlmmj/mlmmj-test/subconf
   /var/spool/mlmmj/mlmmj-test/unsubconf
   /var/spool/mlmmj/mlmmj-test/bounce
   /var/spool/mlmmj/mlmmj-test/control
   /var/spool/mlmmj/mlmmj-test/moderation
   /var/spool/mlmmj/mlmmj-test/subscribers.d
   /var/spool/mlmmj/mlmmj-test/digesters.d
   /var/spool/mlmmj/mlmmj-test/nomailsubs.d
   /var/spool/mlmmj/mlmmj-test/requeue

NOTE: The mailinglist directory (/var/spool/mlmmj/mlmmj-test in our example) have to be owned by the user the mailserver writes as. On some Postfix installations Postfix is run by the user postfix, but still writes files as nobody:nogroup or nobody:nobody

Anmerkung: Auf meinem System musste ich den Besitzer des Verzeichbises auf den Benutzer nobody:nobody ändern.

4.) /etc/alias anpassen

Make the changes to your mailserver aliases that came as output from mlmmj-make-ml.sh. Following the example above they will look like this:


meintest:  "|/usr/bin/mlmmj-recieve -L /var/spool/mlmmj/meintest/"


NOTE: Don't forget newaliases.

5.) Crontab eintragen

Start mlmmj-maintd (remember full path when starting it!) or add it to crontab with -F switch. The recommended way for now is to run it via cron:

0 */2 * * * "/usr/bin/mlmmj-maintd -F -d /var/spool/mlmmj"

It should be started as root, as mlmmj-maintd will become the user owning the listdir (/var/spool/mlmmj/mlmmj-test), and log it's last maintenance run to listdir/mlmmj-maintd.lastrun.log.


Quelle: http://mlmmj.mmj.dk/

[Bearbeiten] Empfänger hinzufügen

/usr/bin/mlmmj-sub -L /var/spool/mlmmj/meintest/ -a foo@bar.net


[Bearbeiten] custom headers

If you want custom headers like X-Mailinglist, Reply-To: etc. just add a file called 'customheaders' in the list control/ directory like this:

$ cat /var/spool/mlmmj/mlmmj-test/control/customheaders
X-Mailinglist: mlmmj-test
Reply-To: mlmmj-test@domain.tld

[Bearbeiten] custom footer

If you want every mail to have something like:

-- 
To unsubscribe send a mail to coollist+unsubscribe@lists.domain.net

Just add what you want to a file named "footer" in the same dir as "customheader" (listdir/control/).

[Bearbeiten] custom subject

If you want a prefix on the subject, to make it look like this:

 Subject: [mlmmj-test] 

how are we doing? Simply do 'echo "[mlmmj-test]" > control/prefix