Mail Service Overview

This document is actually about our mailing lists, but here are a few other links:


Mailing Lists

  1. SmartList Lists:
  2. MailMan Lists:

    On May 16, 2014 all mailman lists were moved from mail.phas.ubc.ca to listserver.phas.ubc.ca

    Mailman lists web interface: https://listserver.phas.ubc.ca/mailman/listinfo
    For unadvertised lists, add the list name, for example: https://listserver.phas.ubc.ca/mailman/listinfo/arpes

    Mailman lists are implemented as regular mail aliases ( /etc/aliases) pointing to the program /usr/lib/mailman/mail/mailman/ with 2 arguements: the particular task, & the name of the list. A related set of aliases give access to all the available tasks.

    On mail.phas.ubc.ca we need the following aliases setup:
    rexs:              rexs@listserver.phas.ubc.ca
    rexs-admin:        rexs-admin@listserver.phas.ubc.ca
    rexs-bounces:      rexs-bounces@listserver.phas.ubc.ca
    rexs-confirm:      rexs-confirm@listserver.phas.ubc.ca
    rexs-join:         rexs-join@listserver.phas.ubc.ca
    rexs-leave:        rexs-leave@listserver.phas.ubc.ca
    rexs-owner:        rexs-owner@listserver.phas.ubc.ca
    rexs-request:      rexs-request@listserver.phas.ubc.ca
    rexs-subscribe:    rexs-subscribe@listserver.phas.ubc.ca
    rexs-unsubscribe:  rexs-unsubscribe@listserver.phas.ubc.ca
    On listserver.phas.ubc.ca we need the real aliases setup:
    ## rexs mailing list (Giorgio Levy)
    rexs:              "|/usr/lib/mailman/mail/mailman post rexs"
    rexs-admin:        "|/usr/lib/mailman/mail/mailman admin rexs"
    rexs-bounces:      "|/usr/lib/mailman/mail/mailman bounces rexs"
    rexs-confirm:      "|/usr/lib/mailman/mail/mailman confirm rexs"
    rexs-join:         "|/usr/lib/mailman/mail/mailman join rexs"
    rexs-leave:        "|/usr/lib/mailman/mail/mailman leave rexs"
    rexs-owner:        "|/usr/lib/mailman/mail/mailman owner rexs"
    rexs-request:      "|/usr/lib/mailman/mail/mailman request rexs"
    rexs-subscribe:    "|/usr/lib/mailman/mail/mailman subscribe rexs"
    rexs-unsubscribe:  "|/usr/lib/mailman/mail/mailman unsubscribe rexs"
    An appropriate snippet for inclusion into /opt/sysadmin/aliases/realaliases can be made with a perl script /opt/sysadmin/aliases/mk-mm-list-aliases as:
    /opt/sysadmin/aliases/mk-mm-list-aliases listname "List Owner"
    
  3. Alias Include Files:
  4. Alias Files:
    aliases can also be a file name. This came up as a solution to a request from Matthews regarding a uncoming conference that he was hosting. Part of the request was a mailing list for the conference participants: an include file in his lists file space. But also he wanted a reply email which was not his -- so forwarding a reply alias to a file avoids the creation of a psuedo-user.

    In the alias file create the alias as
    testfile: /mail/home/grieve/TestAliasFile
    (see Alias Setup Notes below) then create the with group ownership of "mail" & group write permission
    [grieve@mail ~]$ ls -l TestAliasFile -rw-rw---- 1 grieve mail 3061 Jul 25 16:59 TestAliasFile
    . Then this "file" can be subscribed to in Thunderbird, for example, & then the mail client can manage the mail. Thunderbird also has the provision for multiple identities, so it simple to reply with the correct "from" address.


Notes on setting up an Alias
Procedure for handling /etc/aliases files on our email server:

All system-wide aliases and email lists are defined on mail.

To add a new alias (eg. nickname or email list):
- edit: mail:/opt/sysadmin/aliases/realaliases
- run: mail:/opt/sysadmin/aliases/validaliases.pl
(or wait for the cronjob that runs it every 15 min. 6am-6pm)

mail:/opt/sysadmin/aliases/validaliases.pl:
- builds new alias files for all servers and if different from previous
one will write/copy to appropriate server and run newaliases.

Reasons for maintaining /etc/aliases via a script:
(1) mail,beta: need to know all valid usernames (ie. combination of /etc/passwd and /etc/aliases)
(2) server-specific aliases required for certain accounts (eg. root)