Mailman with Postfix Configuration


4 Responses to Mailman with Postfix Configuration

  1. Configuring Postfix with Mailman, has some simple steps to be followed up.

    * Install mailman:

    # apt-get install mailman

    * When done type:

    # newlist mailman

    * Start mailman

    # /etc/init.d/mailman start

    * You should be able to see mailman running now. Visit: [WWW] http://www.yourwebsite.com/cgi-bin/mailman/admin

    or

    [WWW] http://localhost/cgi-bin/mailman/admin

    * Because postfix is secendary choice for Debian we need to add few more stuff:

    * Edit /etc/postfix/main.cf, and where you see “relay_domains” add lists.yourdomain.com. You would get something like this:

    relay_domains = example.com, lists.example.com

    * In same file add ,hash:/var/lib/mailman/data/aliases after alias_maps

    alias_maps = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases

    * Now type:

    # postconf -e “transport_maps = hash:/etc/postfix/transport”
    # postconf -e “mailman_destination_recipient_limit = 1”

    * In /etc/postfix/master.cf add:

    mailman unix – n n – – pipe
    flags=FR user=list
    argv=/var/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}

    * Edit or create /etc/postfix/transport. Add this line:

    lists.example.com mailman:

    * Then postmap it:

    postmap /etc/postfix/transport

    * Now edit /etc/mailman/mm_cfg.py and add:

    MTA = ‘Postfix’
    DEB_LISTMASTER = ‘postmaster@example.com’
    POSTFIX_STYLE_VIRTUAL_DOMAIN = [‘lists.example.com’]

    * Done. Now restart postfix, mailman

    /etc/init.d/postfix reload
    /etc/init.d/mailman restart

    * Create a mailing list:

    newlist list_name

    * If you want archives add this to /etc/apache2/apache2.conf

    Alias /pipermail/ /var/lib/mailman/archives/public/
    Alias /images/mailman/ /usr/share/images/mailman/

    * Done. Go to

    http://lists.yourwebsite.com/cgi-bin/mailman/listinfo/list_name/

    Your Mailman with Postfix is configured.

  2. Danlo Ringess says:

    On my debian box, the step:

    —————————
    * In /etc/postfix/master.cf add:

    mailman unix – n n – – pipe
    flags=FR user=list
    argv=/var/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
    —————————

    broke postfix so it wouldn’t start. I commented out those lines and restarted and reloaded postfix and everything worked.

    Thanks for the nice guide.

  3. eros says:

    you´re my hero!! thank you very, very much!

  4. Shaitaan says:

    Hey,
    I have followed all mentioned points. But in that case i am not able to send any post to new created list. Subscribed users in list are also not getting mail.

    Thanks

Leave a comment