From ab83789bd70d294623e62e0b366b6b649cb5b0af Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 14 Jan 2014 08:06:54 +0100 Subject: Mailing lists (using mlmmj). Right now the list server cannot be hosted with a MX, due to bug 51: http://mlmmj.org/bugs/bug.php?id=51 Web archive can be compiled with MHonArc, but the web server configuration is not there yet. --- roles/lists/files/etc/cron.d/mlmmj | 1 + roles/lists/files/etc/mhonarc.rc | 421 +++++++++++++++++++++ .../files/etc/postfix/virtual/mailbox_domains.cf | 1 + .../etc/postfix/virtual/transport_lists_maps.cf | 7 + 4 files changed, 430 insertions(+) create mode 100644 roles/lists/files/etc/cron.d/mlmmj create mode 100644 roles/lists/files/etc/mhonarc.rc create mode 120000 roles/lists/files/etc/postfix/virtual/mailbox_domains.cf create mode 100644 roles/lists/files/etc/postfix/virtual/transport_lists_maps.cf (limited to 'roles/lists/files/etc') diff --git a/roles/lists/files/etc/cron.d/mlmmj b/roles/lists/files/etc/cron.d/mlmmj new file mode 100644 index 0000000..2f34265 --- /dev/null +++ b/roles/lists/files/etc/cron.d/mlmmj @@ -0,0 +1 @@ +0 */2 * * * mlmmj /usr/bin/test -x /usr/bin/mlmmj-maintd && /usr/bin/mlmmj-maintd -F -d /var/spool/mlmmj diff --git a/roles/lists/files/etc/mhonarc.rc b/roles/lists/files/etc/mhonarc.rc new file mode 100644 index 0000000..bcb967e --- /dev/null +++ b/roles/lists/files/etc/mhonarc.rc @@ -0,0 +1,421 @@ + +/usr/share/doc/mhonarc/examples/utf-8-encode.mrc +/usr/share/doc/mhonarc/examples/secure.mrc +/usr/share/doc/mhonarc/examples/def-mime.mrc.gz + + + + + +from +to +subject +date + + + +-default- + + + +text/plain; fancyquote +text/html; disableflowed +text/x-html; disableflowed + + + +text +image +message +application/pgp-encrypted +application/pgp-signature + + + + +3:7:1 + + + + +%a %b %d %T %Z %Y + + + + + +s#\@(\w+)([.-]\w+)#'@'.('x' x length($1)).$2#e; + + + +mailto:$TOADDRNAME$.AT.$TOADDRDOMAIN$ + + + + + + +attachments + + + + +attachments + + + + + +ListHeader +

+ $ListName$'s archives + $DirDate$ + ($NUMOFMSG$ messages) +

+
+ + + + + + + + + $SUBJECTNA$ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +MsgNav +$BUTTON(PREV)$ Date $BUTTON(NEXT)$ $BUTTON(TPREVIN)$ Thread $BUTTON(TNEXTIN)$ + + + +
  • (possible follow-ups)
  • +
    + + +
  • $SUBJECTNA$ (continued)
  • +
    + + + +
    +
    + + + +

    $SUBJECTNA$

    +
    + + +
    + + + + + + + + + + + + + + +
    + + + + + + + +
    +
    + + + + +
    + + + +
    + + + + + + + + +5 + + + + +250 + + + + + + + + + + + + + + + + + + + + + + + + + +TNav +$PGLINK(TFIRST)$$PGLINK(TPREV)$ Page $PAGENUM$/$NUMOFPAGES$ $PGLINK(TNEXT)$$PGLINK(TLAST)$ +[Indexes: Date Thread] + + + +
    +
    +
      + + +
    +
    +
    + + + + + + + + $TIDXTITLE$ + + + + + + + + + + + + + + + + + + + + +
  • $SUBJECT$, +$FROMNAME$ +
  • +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Nav +$PGLINK(FIRST)$$PGLINK(PREV)$ Page $PAGENUM$/$NUMOFPAGES$ $PGLINK(NEXT)$$PGLINK(LAST)$ +[Indexes: Date Thread] + + + +
    +
    +
      + + +
    +
    +
    + + + + + + + + $IDXTITLE$ + + + + + + + + + + + + + + + + + diff --git a/roles/lists/files/etc/postfix/virtual/mailbox_domains.cf b/roles/lists/files/etc/postfix/virtual/mailbox_domains.cf new file mode 120000 index 0000000..05f7ed9 --- /dev/null +++ b/roles/lists/files/etc/postfix/virtual/mailbox_domains.cf @@ -0,0 +1 @@ +../../../../../MX/templates/etc/postfix/virtual/mailbox_domains.cf.j2 \ No newline at end of file diff --git a/roles/lists/files/etc/postfix/virtual/transport_lists_maps.cf b/roles/lists/files/etc/postfix/virtual/transport_lists_maps.cf new file mode 100644 index 0000000..50631e5 --- /dev/null +++ b/roles/lists/files/etc/postfix/virtual/transport_lists_maps.cf @@ -0,0 +1,7 @@ +server_host = ldapi://%2Fprivate%2Fldapi/ +version = 3 +search_base = fvl=%u,fvd=%d,ou=virtual,o=mailHosting,dc=fripost,dc=org +scope = base +bind = none +query_filter = (&(objectClass=FripostVirtualList)(fvl=%u)) +result_attribute = fripostListManager -- cgit v1.2.3