FAQ
Hi,

I created a list from the admin interface, not from CLI. I administator of
that list do not get the list creation notification & I found these messages
in /var/log/mailman/smtp-failure

Dec 16 13:49:13 2010 (26989) All recipients refused:
{'umarzuki at mydomain.com.my': (550, '5.1.0 <test02-bounces at mydomain.com.my>:
Sender
address rejected: User unknown in virtual mailbox table')}, msgid:
<mailman.0.1292478551.30057.test02 at mydomain.com.my>
Dec 16 13:49:13 2010 (26989) delivery to umarzuki at mydomain.com.my failed
with
code 550: 5.1.0 <test02-bounces at mydomain.com.my>: Sender address rejected:
User
unknown in virtual mailbox table

# cat /var/log/maillog | grep test02
Dec 16 13:49:13 hpj-mail postfix/smtpd[30059]: NOQUEUE: reject: RCPT from
localhost.localdomain[127.0.0.1]: 550 5.1.0 <test02-bounces at mydomain.com.my
:
Sender address rejected: User unknown in virtual mailbox table;
from=<test02-bounces at mydomain.com.my> to=<umarzuki at mydomain.com.my>
proto=ESMTP
helo=<mail.mydomain.com.my>

This installation in on centos 5.5

What should I do next so I can send and receive email to this list (test02)?

Search Discussions

  • Mark Sapiro at Dec 18, 2010 at 3:13 am

    On 12/16/2010 7:16 AM, Umarzuki Mochlis wrote:
    I created a list from the admin interface, not from CLI. I administator of
    that list do not get the list creation notification & I found these messages
    in /var/log/mailman/smtp-failure

    Dec 16 13:49:13 2010 (26989) All recipients refused:
    {'umarzuki at mydomain.com.my': (550, '5.1.0 <test02-bounces at mydomain.com.my>:
    Sender
    address rejected: User unknown in virtual mailbox table')}, msgid:
    <mailman.0.1292478551.30057.test02 at mydomain.com.my>
    Dec 16 13:49:13 2010 (26989) delivery to umarzuki at mydomain.com.my failed
    with
    code 550: 5.1.0 <test02-bounces at mydomain.com.my>: Sender address rejected:
    User
    unknown in virtual mailbox table

    # cat /var/log/maillog | grep test02
    Dec 16 13:49:13 hpj-mail postfix/smtpd[30059]: NOQUEUE: reject: RCPT from
    localhost.localdomain[127.0.0.1]: 550 5.1.0 <test02-bounces at mydomain.com.my
    :
    Sender address rejected: User unknown in virtual mailbox table;
    from=<test02-bounces at mydomain.com.my> to=<umarzuki at mydomain.com.my>
    proto=ESMTP
    helo=<mail.mydomain.com.my>

    This installation in on centos 5.5

    What should I do next so I can send and receive email to this list (test02)?

    You did not receive the list created notice because your Postfix is
    doing sender verification and You have not (properly) configured
    Mailman/Postfix configuration for automatic generation of list aliases
    and virtual alias maps at list creation time, so the virtual_alias_maps
    entry for test02-bounces at mydomain.com.my did not exist at the time the
    mail was sent.

    See <http://www.list.org/mailman-install/node12.html>, in particular
    subsections 6.1.1 and 6.1.2.

    Also see the first several posts in the thread at
    <http://mail.python.org/pipermail/mailman-users/2010-December/070671.html>
    for a discussion of another aspect of this issue.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Umarzuki Mochlis at Dec 29, 2010 at 4:59 pm
    2010/12/18 Mark Sapiro <mark at msapiro.net>
    On 12/16/2010 7:16 AM, Umarzuki Mochlis wrote:


    You did not receive the list created notice because your Postfix is
    doing sender verification and You have not (properly) configured
    Mailman/Postfix configuration for automatic generation of list aliases
    and virtual alias maps at list creation time, so the virtual_alias_maps
    entry for test02-bounces at mydomain.com.my did not exist at the time the
    mail was sent.

    See <http://www.list.org/mailman-install/node12.html>, in particular
    subsections 6.1.1 and 6.1.2.
    i did a bit of reading from those links and did a few modification in

    /etc/postfix/main.cf
    -----------------------------
    local_recipient_maps =
    alias_maps = hash:/etc/postfix/aliases, hash:/etc/mailman/aliases

    although i suspect the the reasons could be caused by my openldap settings
    (using ldap users)

    virtual_alias_maps = proxy:ldap:/etc/postfix/ldap_virtual_alias_maps.cf,
    proxy:ldap:/etc/postfix/ldap_virtual_group_maps.cf, proxy:ldap:/etc/postfix/
    ldap_sender_login_maps.cf, proxy:ldap:/etc/postfix/ldap_catch_all_maps.cf

    i can see that in /etc/mailman/aliases that there are those mail lists
    aliases but i could not find any virtual_mailman file



    --
    Regards,

    Umarzuki Mochlis
    http://debmal.my
  • Mark Sapiro at Dec 30, 2010 at 1:42 am

    Umarzuki Mochlis wrote:
    i can see that in /etc/mailman/aliases that there are those mail lists
    aliases but i could not find any virtual_mailman file

    If your list mail domain is local in Postfix, all you need is
    alias_maps. If it is not local in Postfix, as indicated by the "User
    unknown in virtual mailbox table" error, you need to add

    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mydomain.com.my']

    to Mailman's mm_cfg.py where mydomain.com.my is your actual list mail
    domain. Then run Mailman's bin/genaliases and it should create
    virtual-mailman and virtual-mailman.db.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Umarzuki Mochlis at Dec 30, 2010 at 7:25 am
    2010/12/30 Mark Sapiro <mark at msapiro.net>
    If your list mail domain is local in Postfix, all you need is
    alias_maps. If it is not local in Postfix, as indicated by the "User
    unknown in virtual mailbox table" error, you need to add

    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mydomain.com.my']

    to Mailman's mm_cfg.py where mydomain.com.my is your actual list mail
    domain. Then run Mailman's bin/genaliases and it should create
    virtual-mailman and virtual-mailman.db.
    i changed my mm_cfg.py setting to:

    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mydomain.my']

    DEFAULT_URL_HOST = fqdn
    DEFAULT_EMAIL_HOST = fqdn

    i ran genaliases, restarted postfix & mailman but still having the same
    problem where my email is umarzuki at mydomain.my & the mailserver's hostname
    is mail-server.mydomain.my

    this is what i got from /var/log/maillog

    Dec 30 23:03:38 hpj-mail postfix/pipe[4468]: DA5B419C8818:
    to=<umarzuki at mydomain.my>, relay=dovecot, delay=0.41,
    delays=0.02/0.02/0/0.37, dsn=2.0.0, status=sent (delivered via dovecot
    service)
    Dec 30 23:03:38 hpj-mail postfix/qmgr[3556]: DA5B419C8818: removed
    Dec 30 23:10:08 hpj-mail postfix/postfix-script[5013]: stopping the Postfix
    mail system
    Dec 30 23:10:08 hpj-mail postfix/master[3551]: terminating on signal 15
    Dec 30 23:10:09 hpj-mail postfix/postfix-script[5067]: warning:
    /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ
    Dec 30 23:10:09 hpj-mail postfix/postfix-script[5070]: warning:
    /var/spool/postfix/etc/hosts and /etc/hosts differ
    Dec 30 23:10:09 hpj-mail postfix/postfix-script[5074]: starting the Postfix
    mail system
    Dec 30 23:10:09 hpj-mail postfix/master[5075]: daemon started -- version
    0.6.1, configuration /etc/postfix
    Dec 30 23:10:38 hpj-mail postfix/pickup[5077]: 2208619C8817: uidH
    from=<umarzuki at mydomain.my>
    Dec 30 23:10:38 hpj-mail postfix/cleanup[5089]: 2208619C8817: message-id=<
    72bd3b85fcef6d005cf3146776d74361 at 127.0.0.1>
    Dec 30 23:10:38 hpj-mail postfix/qmgr[5078]: 2208619C8817:
    from=<umarzuki at mydomain.my>, sizew8, nrcpt=1 (queue active)
    Dec 30 23:10:38 hpj-mail postfix/pipe[5095]: 2208619C8817:
    to=<test02 at mydomain.my>, relay=dovecot, delay=0.65, delays=0.56/0.04/0/0.05,
    dsn=5.1.1, status=bounced (user unknown)
    Dec 30 23:10:38 hpj-mail postfix/cleanup[5089]: A321319C8818: message-id=<
    20101230151038.A321319C8818 at mail-server.mydomain.my>
    Dec 30 23:10:38 hpj-mail postfix/qmgr[5078]: A321319C8818: from=<>,
    size%54, nrcpt=1 (queue active)
    Dec 30 23:10:38 hpj-mail postfix/bounce[5097]: 2208619C8817: sender
    non-delivery notification: A321319C8818
    Dec 30 23:10:38 hpj-mail postfix/qmgr[5078]: 2208619C8817: removed
    Dec 30 23:10:39 hpj-mail postfix/pipe[5095]: A321319C8818:
    to=<umarzuki at mydomain.my>, relay=dovecot, delay=0.35,
    delays=0.02/0.02/0/0.3, dsn=2.0.0, status=sent (delivered via dovecot
    service)
    Dec 30 23:10:39 hpj-mail postfix/qmgr[5078]: A321319C8818: removed

    this email server is set to use openldap, not unix users
    what i want to achieve is to be able to use mailman mailing list even
    though i'm using openldap for user creation

    --
    Regards,

    Umarzuki Mochlis
    http://debmal.my
  • Mark Sapiro at Dec 30, 2010 at 5:26 pm

    Umarzuki Mochlis wrote:
    i changed my mm_cfg.py setting to:

    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mydomain.my']



    i ran genaliases, restarted postfix & mailman but still having the same
    problem where my email is umarzuki at mydomain.my & the mailserver's hostname
    is mail-server.mydomain.my

    You should have the following in mm_cfg.py


    DEFAULT_URL_HOST = 'hosts.web.domain'
    DEFAULT_EMAIL_HOST = 'hosts.email.domain'
    VIRTUAL_HOSTS.clear()
    add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
    MTA = 'Postfix'
    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['hosts.email.domain']

    Then run

    /path/to/bin/withlist -l -a -r fix_url
    /path/to/bin/genaliases

    If that doesn't fix the problem, post the output from

    postconf -n

    this is what i got from /var/log/maillog [...]
    Dec 30 23:10:38 hpj-mail postfix/qmgr[5078]: 2208619C8817:
    from=<umarzuki at mydomain.my>, sizew8, nrcpt=1 (queue active)
    Dec 30 23:10:38 hpj-mail postfix/pipe[5095]: 2208619C8817:
    to=<test02 at mydomain.my>, relay=dovecot, delay=0.65, delays=0.56/0.04/0/0.05,
    dsn=5.1.1, status=bounced (user unknown)

    I don't think you can use the Dovecot LDA for list mail.

    See the FAQ at <http://wiki.list.org/x/ZoCj> for a way to automate
    generation of a transport_maps table to use the Postfix local delivery
    agent for list mail.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Umarzuki Mochlis at Jan 2, 2011 at 2:09 pm
    i set in mm_cfg.py like below

    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mail-server.mydomain.my']

    from socket import *
    try:
    fqdn = getfqdn()
    except:
    fqdn = 'mm_cfg_has_unknown_host_domains'

    DEFAULT_URL_HOST = "mail-server.mydomain.my"
    DEFAULT_EMAIL_HOST = "mail-server.mydomain.my"
    VIRTUAL_HOSTS.clear()
    add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST, )
    MTA = 'Postfix'

    and ran

    # /usr/lib/mailman/bin/withlist -l -a -r fix_url
    # /usr/lib/mailman/bin/genaliases

    with the same result as before

    postconf -n output:

    alias_database = hash:/etc/postfix/aliases
    alias_maps = hash:/etc/postfix/aliases, hash:/etc/mailman/aliases
    allow_min_user = no
    biff = no
    bounce_queue_lifetime = 1d
    broken_sasl_auth_clients = yes
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/libexec/postfix
    data_directory = /var/lib/postfix
    debug_peer_level = 2
    delay_warning_time = 0h
    disable_vrfy_command = yes
    enable_original_recipient = no
    home_mailbox = Maildir/
    html_directory = no
    inet_interfaces = all
    inet_protocols = ipv4
    local_recipient_maps =
    mail_name = iRedMail
    mail_owner = postfix
    mail_version = 0.6.1
    mailbox_command = /usr/libexec/dovecot/deliver
    mailbox_size_limit = 15728640
    mailq_path = /usr/bin/mailq.postfix
    manpage_directory = /usr/share/man
    maximal_backoff_time = 4000s
    maximal_queue_lifetime = 1d
    minimal_backoff_time = 300s
    mydestination = $myhostname, localhost, localhost.localdomain,
    localhost.$myhostname
    mydomain = mydomain.my
    myhostname = mail-server.mydomain.my
    mynetworks = 127.0.0.0/8
    mynetworks_style = subnet
    myorigin = mail-server.mydomain.my
    newaliases_path = /usr/bin/newaliases.postfix
    proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps
    $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps
    $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps
    $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps
    $transport_maps $virtual_alias_domains $virtual_alias_maps
    $virtual_mailbox_domains $virtual_mailbox_maps
    queue_directory = /var/spool/postfix
    queue_run_delay = 300s
    readme_directory = /usr/share/doc/postfix-2.5.9/README_FILES
    recipient_bcc_maps = proxy:ldap:/etc/postfix/
    ldap_recipient_bcc_maps_domain.cf, proxy:ldap:/etc/postfix/
    ldap_recipient_bcc_maps_user.cf
    recipient_delimiter = +
    relay_domains = $mydestination, proxy:ldap:/etc/postfix/
    ldap_relay_domains.cf
    relay_recipient_maps = proxy:mysql:/etc/postfix/
    mysql_virtual_mailbox_maps.cf
    sample_directory = /usr/share/doc/postfix-2.5.9/samples
    sender_bcc_maps = proxy:ldap:/etc/postfix/ldap_sender_bcc_maps_domain.cf,
    proxy:ldap:/etc/postfix/ldap_sender_bcc_maps_user.cf
    sendmail_path = /usr/sbin/sendmail.postfix
    setgid_group = postdrop
    smtpd_data_restrictions = reject_unauth_pipelining
    smtpd_enforce_tls = no
    smtpd_helo_required = yes
    smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated,
    check_helo_access pcre:/etc/postfix/helo_access.pcre
    smtpd_recipient_restrictions = reject_unknown_recipient_domain,
    reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service
    inet:127.0.0.1:7777, permit_mynetworks, permit_sasl_authenticated,
    reject_unauth_destination, check_policy_service inet:127.0.0.1:10031
    smtpd_reject_unlisted_recipient = no
    smtpd_reject_unlisted_sender = yes
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_authenticated_header = no
    smtpd_sasl_local_domain =
    smtpd_sasl_path = dovecot-auth
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_type = dovecot
    smtpd_sender_login_maps = proxy:ldap:/etc/postfix/ldap_sender_login_maps.cf
    smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch,
    permit_sasl_authenticated
    smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail_CA.pem
    smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
    smtpd_tls_loglevel = 0
    smtpd_tls_security_level = may
    tls_random_source = dev:/dev/urandom
    transport_maps = proxy:ldap:/etc/postfix/ldap_transport_maps_user.cf,
    proxy:ldap:/etc/postfix/ldap_transport_maps_domain.cf
    unknown_local_recipient_reject_code = 550
    virtual_alias_maps = proxy:ldap:/etc/postfix/ldap_virtual_alias_maps.cf,
    proxy:ldap:/etc/postfix/ldap_virtual_group_maps.cf, proxy:ldap:/etc/postfix/
    ldap_sender_login_maps.cf, proxy:ldap:/etc/postfix/ldap_catch_all_maps.cf
    virtual_gid_maps = static:502
    virtual_mailbox_base = /var/vmail
    virtual_mailbox_domains = proxy:ldap:/etc/postfix/
    ldap_virtual_mailbox_domains.cf
    virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap_virtual_mailbox_maps.cf
    virtual_minimum_uid = 502
    virtual_transport = dovecot
    virtual_uid_maps = static:502

    after i read
    http://wiki.list.org/display/DOC/Mailman+-+Postfix+integration+with+Mailman+generated+transport+or+other+maps

    <http://wiki.list.org/display/DOC/Mailman+-+Postfix+integration+with+Mailman+generated+transport+or+other+maps>i
    changed & added a few options in mm_cfg.py

    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mydomain.my']
    POSTFIX_MAP_CMD = '/etc/mailman/virtual_to_transport'

    in /etc/mailman

    # ls -l /etc/mailman/
    total 140
    -rw-r----- 1 root mailman 41 Dec 8 18:25 adm.pw
    -rw-rw---- 1 mailman mailman 33942 Jan 3 04:37 aliases
    -rw-rw---- 1 mailman mailman 77824 Jan 3 04:37 aliases.db
    -rw-r----- 1 root mailman 41 Dec 8 18:26 creator.pw
    lrwxrwxrwx 1 root mailman 34 Dec 8 18:12 mm_cfg.py ->
    /usr/lib/mailman/Mailman/mm_cfg.py
    -rw-r--r-- 1 root mailman 14114 Jan 23 2008 sitelist.cfg
    -rw-rw---- 1 mailman mailman 0 Jan 3 04:37 transport-mailman
    -rw-rw---- 1 mailman mailman 12288 Jan 3 04:37 transport-mailman.db
    -rw-rw---- 1 root mailman 0 Jan 3 04:37 virtual-mailman
    -rw-r----- 1 root mailman 12288 Jan 3 04:32 virtual-mailman.db
    -rwxr-x--- 1 root mailman 141 Jan 3 04:26 virtual_to_transport

    in /etc/mailman/virtual_to_transport
    #!/bin/sh
    sed -r -e 's/(^[^#][^ ]+[ ]+).+$/\1local/' $1 \
    /etc/mailman/transport-mailman
    /usr/sbin/postmap /etc/mailman/transport-mailman

    # postconf transport_maps
    transport_maps = proxy:ldap:/etc/postfix/ldap_transport_maps_user.cf,
    proxy:ldap:/etc/postfix/ldap_transport_maps_domain.cf,
    hash:/etc/mailman/transport-mailman

    did i missed anything?

    --
    Regards,

    Umarzuki Mochlis
    http://debmal.my
  • Umarzuki Mochlis at Jan 2, 2011 at 4:50 pm
    after a check on /usr/lib/mailman/Mailman/Defaults.py

    VAR_PREFIX = '/var/lib/mailman'
    DATA_DIR = os.path.join(VAR_PREFIX, 'data')

    so the /path/to/data must be /var/lib/mailman/data which led me to

    1. change main.cf
    -----------
    alias_maps = hash:/etc/postfix/aliases, hash:/var/lib/mailman/data/aliases
    transport_maps = proxy:ldap:/etc/postfix/ldap_transport_maps_user.cf,
    proxy:ldap:/etc/postfix/ldap_transport_maps_domain.cf,
    hash:/var/lib//mailman/data/transport-mailman

    2. move virtual_to_transport to /var/lib/mailman/data

    3. virtual_to_transport
    #!/bin/sh
    sed -r -e 's/(^[^#][^ ]+[ ]+).+$/\1local/' $1 \
    /var/lib/mailman/data/transport-mailman
    /usr/sbin/postmap /var/lib/mailman/data/transport-mailman

    4. ran
    # postalias /var/lib/mailman/data/aliases
    # postalias /etc/postfix/aliases
    # service postfix reload
    # /usr/lib/mailman/bin/genaliases

    but virtual-mailman and transport-mailman does not appear in data folder

    # ls -l /var/lib/mailman/data/
    total 20
    -rw-r--r-- 1 mailman mailman 1503 Dec 17 11:28 aliases
    -rw-r--r-- 1 mailman mailman 12288 Jan 3 08:40 aliases.db
    lrwxrwxrwx 1 root mailman 25 Dec 8 18:12 sitelist.cfg ->
    /etc/mailman/sitelist.cfg
    -rwxr-x--- 1 mailman mailman 159 Jan 3 08:26 virtual_to_transport


    any hints or advises?

    Regards,

    Umarzuki Mochlis
    http://debmal.my
  • Mark Sapiro at Jan 2, 2011 at 8:30 pm

    Umarzuki Mochlis wrote:
    i set in mm_cfg.py like below

    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mail-server.mydomain.my']

    from socket import *
    try:
    fqdn = getfqdn()
    except:
    fqdn = 'mm_cfg_has_unknown_host_domains'

    DEFAULT_URL_HOST = "mail-server.mydomain.my"
    DEFAULT_EMAIL_HOST = "mail-server.mydomain.my"
    VIRTUAL_HOSTS.clear()
    add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST, )
    MTA = 'Postfix'

    and ran

    # /usr/lib/mailman/bin/withlist -l -a -r fix_url
    # /usr/lib/mailman/bin/genaliases

    with the same result as before

    This should have ensured that all lists had host_name
    "mail-server.mydomain.my" and since this name is in
    POSTFIX_STYLE_VIRTUAL_DOMAINS, genaliases should have created aliases
    and virtual-mailman for all lists.

    postconf -n output:

    alias_database = hash:/etc/postfix/aliases
    alias_maps = hash:/etc/postfix/aliases, hash:/etc/mailman/aliases

    Good.

    [...]

    You probably should have

    recipient_delimiter = +

    for Mailman's VERP like senders.


    [...]
    virtual_alias_maps = proxy:ldap:/etc/postfix/ldap_virtual_alias_maps.cf,
    proxy:ldap:/etc/postfix/ldap_virtual_group_maps.cf, proxy:ldap:/etc/postfix/
    ldap_sender_login_maps.cf, proxy:ldap:/etc/postfix/ldap_catch_all_maps.cf

    If you are using virtual-mailman, you want to add
    "hash:/etc/mailman/virtual-mailman" to virtual_alias_maps. However,
    because of your dovecot LDA, you may need to do the transport_maps
    thing instead. See below.


    [...]

    Why did you change this? You must have your list's email domain in
    POSTFIX_STYLE_VIRTUAL_DOMAINS. According to what you did above, your
    list's email domain is 'mail-server.mydomain.my', not 'mydomain.my'.

    POSTFIX_MAP_CMD = '/etc/mailman/virtual_to_transport'

    in /etc/mailman

    # ls -l /etc/mailman/
    total 140
    -rw-r----- 1 root mailman 41 Dec 8 18:25 adm.pw
    -rw-rw---- 1 mailman mailman 33942 Jan 3 04:37 aliases
    -rw-rw---- 1 mailman mailman 77824 Jan 3 04:37 aliases.db
    -rw-r----- 1 root mailman 41 Dec 8 18:26 creator.pw
    lrwxrwxrwx 1 root mailman 34 Dec 8 18:12 mm_cfg.py ->
    /usr/lib/mailman/Mailman/mm_cfg.py
    -rw-r--r-- 1 root mailman 14114 Jan 23 2008 sitelist.cfg
    -rw-rw---- 1 mailman mailman 0 Jan 3 04:37 transport-mailman
    -rw-rw---- 1 mailman mailman 12288 Jan 3 04:37 transport-mailman.db
    -rw-rw---- 1 root mailman 0 Jan 3 04:37 virtual-mailman
    -rw-r----- 1 root mailman 12288 Jan 3 04:32 virtual-mailman.db
    -rwxr-x--- 1 root mailman 141 Jan 3 04:26 virtual_to_transport

    This all looks correct.

    in /etc/mailman/virtual_to_transport
    #!/bin/sh
    sed -r -e 's/(^[^#][^ ]+[ ]+).+$/\1local/' $1 \
    /etc/mailman/transport-mailman
    /usr/sbin/postmap /etc/mailman/transport-mailman

    # postconf transport_maps
    transport_maps = proxy:ldap:/etc/postfix/ldap_transport_maps_user.cf,
    proxy:ldap:/etc/postfix/ldap_transport_maps_domain.cf,
    hash:/etc/mailman/transport-mailman

    did i missed anything?

    The above seems correct for the transport_maps method, but you
    shouldn't have changed POSTFIX_STYLE_VIRTUAL_DOMAINS.


    And Umarzuki Mochlis added in a follow-up:
    after a check on /usr/lib/mailman/Mailman/Defaults.py

    VAR_PREFIX = '/var/lib/mailman'
    DATA_DIR = os.path.join(VAR_PREFIX, 'data')

    so the /path/to/data must be /var/lib/mailman/data which led me to

    Except it clearly isn't because your "ls -l /etc/mailman/" above
    clearly shows all the files in that directory. Perhaps there is
    something in mm_cfg.py that overrides VAR_PREFIX and DATA_DIR.

    You might find the FAQ at <http://wiki.list.org/x/KYCB> of interest.

    1. change main.cf
    -----------
    alias_maps = hash:/etc/postfix/aliases, hash:/var/lib/mailman/data/aliases
    transport_maps = proxy:ldap:/etc/postfix/ldap_transport_maps_user.cf,
    proxy:ldap:/etc/postfix/ldap_transport_maps_domain.cf,
    hash:/var/lib//mailman/data/transport-mailman

    2. move virtual_to_transport to /var/lib/mailman/data

    3. virtual_to_transport
    #!/bin/sh
    sed -r -e 's/(^[^#][^ ]+[ ]+).+$/\1local/' $1 \
    /var/lib/mailman/data/transport-mailman
    /usr/sbin/postmap /var/lib/mailman/data/transport-mailman

    4. ran
    # postalias /var/lib/mailman/data/aliases
    # postalias /etc/postfix/aliases
    # service postfix reload
    # /usr/lib/mailman/bin/genaliases

    but virtual-mailman and transport-mailman does not appear in data folder

    # ls -l /var/lib/mailman/data/
    total 20
    -rw-r--r-- 1 mailman mailman 1503 Dec 17 11:28 aliases
    -rw-r--r-- 1 mailman mailman 12288 Jan 3 08:40 aliases.db
    lrwxrwxrwx 1 root mailman 25 Dec 8 18:12 sitelist.cfg ->
    /etc/mailman/sitelist.cfg
    -rwxr-x--- 1 mailman mailman 159 Jan 3 08:26 virtual_to_transport


    any hints or advises?

    Yes. Undo the 4 steps above. Fix POSTFIX_STYLE_VIRTUAL_DOMAINS in
    mm_cfg.py and run /usr/lib/mailman/bin/genaliases again.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Umarzuki Mochlis at Jan 10, 2011 at 3:17 pm
    2011/1/3 Mark Sapiro <mark at msapiro.net>

    Yes. Undo the 4 steps above. Fix POSTFIX_STYLE_VIRTUAL_DOMAINS in
    mm_cfg.py and run /usr/lib/mailman/bin/genaliases again.

    even after that i'm having
    Jan 11 06:01:55 mail-server postfix/pipe[3864]: 3CE0419C8835:
    to=<www at mydomain.my>, relay=dovecot, delay!649, delays!633/13/0/2.4,
    dsn=4.3.0, statusÞferred (temporary failure)

    any more idea?
    i don't know where else to look.

    --
    Regards,

    Umarzuki Mochlis
    http://debmal.my
  • Mark Sapiro at Jan 10, 2011 at 9:13 pm

    Umarzuki Mochlis wrote:
    2011/1/3 Mark Sapiro <mark at msapiro.net>

    Yes. Undo the 4 steps above. Fix POSTFIX_STYLE_VIRTUAL_DOMAINS in
    mm_cfg.py and run /usr/lib/mailman/bin/genaliases again.

    even after that i'm having
    Jan 11 06:01:55 mail-server postfix/pipe[3864]: 3CE0419C8835:
    to=<www at mydomain.my>, relay=dovecot, delay!649, delays!633/13/0/2.4,
    dsn=4.3.0, statusÞferred (temporary failure)

    any more idea?
    i don't know where else to look.

    I have totally lost track of what you currently have. If you go back to
    what you reported at
    <http://mail.python.org/pipermail/mailman-users/2011-January/070890.html>,
    the changes at the bottom of that post were almost there. The only
    thing wrong was

    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mydomain.my']

    This should be

    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mail-server.mydomain.my']

    If you go back to the configuration that follows "after i read ... i
    changed & added a few options in mm_cfg.py", correct
    POSTFIX_STYLE_VIRTUAL_DOMAINS and run bin/genaliases, I think it will
    work. If it doesn't, post:

    output from postconf -n
    output from ls -l /etc/mailman
    entire contents of mm_cfg.py

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Umarzuki Mochlis at Jan 11, 2011 at 2:45 pm
    2011/1/11 Mark Sapiro <mark at msapiro.net>
    If you go back to the configuration that follows "after i read ... i
    changed & added a few options in mm_cfg.py", correct
    POSTFIX_STYLE_VIRTUAL_DOMAINS and run bin/genaliases, I think it will
    work. If it doesn't, post:
    i had done that although i may had messed somewhere else

    output from postconf -n
    output from ls -l /etc/mailman
    entire contents of mm_cfg.py
    # postconf -n
    alias_database = hash:/etc/postfix/aliases
    alias_maps = hash:/etc/postfix/aliases, hash:/var/lib/mailman/data/aliases
    allow_min_user = no
    biff = no
    bounce_queue_lifetime = 1d
    broken_sasl_auth_clients = yes
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/libexec/postfix
    data_directory = /var/lib/postfix
    debug_peer_level = 2
    delay_warning_time = 0h
    disable_vrfy_command = yes
    enable_original_recipient = no
    home_mailbox = Maildir/
    html_directory = no
    inet_interfaces = all
    inet_protocols = ipv4
    local_recipient_maps =
    mail_name = iRedMail
    mail_owner = postfix
    mail_version = 0.6.1
    mailbox_command = /usr/libexec/dovecot/deliver
    mailbox_size_limit = 15728640
    mailq_path = /usr/bin/mailq.postfix
    manpage_directory = /usr/share/man
    maximal_backoff_time = 4000s
    maximal_queue_lifetime = 1d
    minimal_backoff_time = 300s
    mydestination = $myhostname, localhost, localhost.localdomain,
    localhost.$myhostname
    mydomain = mydomain.my
    myhostname = mail-server.mydomain.my
    mynetworks = 127.0.0.0/8
    mynetworks_style = subnet
    myorigin = mail-server.mydomain.my
    newaliases_path = /usr/bin/newaliases.postfix
    proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps
    $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps
    $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps
    $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps
    $transport_maps $virtual_alias_domains $virtual_alias_maps
    $virtual_mailbox_domains $virtual_mailbox_maps
    queue_directory = /var/spool/postfix
    queue_run_delay = 300s
    readme_directory = /usr/share/doc/postfix-2.5.9/README_FILES
    recipient_bcc_maps = proxy:ldap:/etc/postfix/
    ldap_recipient_bcc_maps_domain.cf, proxy:ldap:/etc/postfix/
    ldap_recipient_bcc_maps_user.cf
    recipient_delimiter = +
    relay_domains = $mydestination, proxy:ldap:/etc/postfix/
    ldap_relay_domains.cf
    relay_recipient_maps = proxy:mysql:/etc/postfix/
    mysql_virtual_mailbox_maps.cf
    sample_directory = /usr/share/doc/postfix-2.5.9/samples
    sender_bcc_maps = proxy:ldap:/etc/postfix/ldap_sender_bcc_maps_domain.cf,
    proxy:ldap:/etc/postfix/ldap_sender_bcc_maps_user.cf
    sendmail_path = /usr/sbin/sendmail.postfix
    setgid_group = postdrop
    smtpd_data_restrictions = reject_unauth_pipelining
    smtpd_enforce_tls = no
    smtpd_helo_required = yes
    smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated,
    check_helo_access pcre:/etc/postfix/helo_access.pcre
    smtpd_recipient_restrictions = reject_unknown_recipient_domain,
    reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service
    inet:127.0.0.1:7777, permit_mynetworks, permit_sasl_authenticated,
    reject_unauth_destination, check_policy_service inet:127.0.0.1:10031
    smtpd_reject_unlisted_recipient = no
    smtpd_reject_unlisted_sender = yes
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_authenticated_header = no
    smtpd_sasl_local_domain =
    smtpd_sasl_path = dovecot-auth
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_type = dovecot
    smtpd_sender_login_maps = proxy:ldap:/etc/postfix/ldap_sender_login_maps.cf
    smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch,
    permit_sasl_authenticated
    smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail_CA.pem
    smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
    smtpd_tls_loglevel = 0
    smtpd_tls_security_level = may
    tls_random_source = dev:/dev/urandom
    transport_maps = proxy:ldap:/etc/postfix/ldap_transport_maps_user.cf,
    proxy:ldap:/etc/postfix/ldap_transport_maps_domain.cf,
    hash:/etc/mailman/transport-mailman
    unknown_local_recipient_reject_code = 550
    virtual_alias_maps = proxy:ldap:/etc/postfix/ldap_virtual_alias_maps.cf,
    proxy:ldap:/etc/postfix/ldap_virtual_group_maps.cf, proxy:ldap:/etc/postfix/
    ldap_sender_login_maps.cf, proxy:ldap:/etc/postfix/ldap_catch_all_maps.cf
    virtual_gid_maps = static:502
    virtual_mailbox_base = /var/vmail
    virtual_mailbox_domains = proxy:ldap:/etc/postfix/
    ldap_virtual_mailbox_domains.cf
    virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap_virtual_mailbox_maps.cf
    virtual_minimum_uid = 502
    virtual_transport = dovecot
    virtual_uid_maps = static:502

    # ls -l /etc/mailman/
    total 220
    -rw-r----- 1 root mailman 41 Dec 8 18:25 adm.pw
    -rw-rw---- 1 root mailman 33942 Jan 3 16:55 aliases
    -rw-r----- 1 root mailman 77824 Jan 3 16:55 aliases.db
    -rw-r----- 1 root mailman 41 Dec 8 18:26 creator.pw
    lrwxrwxrwx 1 root mailman 34 Dec 8 18:12 mm_cfg.py ->
    /usr/lib/mailman/Mailman/mm_cfg.py
    -rw-r--r-- 1 root mailman 14114 Jan 23 2008 sitelist.cfg
    -rw-rw-r-- 1 root mailman 24376 Jan 3 16:55 transport-mailman
    -rw-r--r-- 1 root mailman 45056 Jan 3 16:55 transport-mailman.db
    -rw-rw---- 1 root mailman 28283 Jan 3 16:55 virtual-mailman
    -rwxr-x--- 1 root mailman 141 Jan 3 16:48 virtual_to_transport

    # cat /etc/mailman/mm_cfg.py
    # -*- python -*-

    # Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation,
    Inc.
    #
    # This program is free software; you can redistribute it and/or
    # modify it under the terms of the GNU General Public License
    # as published by the Free Software Foundation; either version 2
    # of the License, or (at your option) any later version.
    #
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with this program; if not, write to the Free Software
    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

    """This module contains your site-specific settings.
    From a brand new distribution it should be copied to mm_cfg.py. If you
    already have an mm_cfg.py, be careful to add in only the new settings you
    want. Mailman's installation procedure will never overwrite your mm_cfg.py
    file.

    The complete set of distributed defaults, with documentation, are in the
    file
    Defaults.py. In mm_cfg.py, override only those you want to change, after
    the

    from Defaults import *

    line (see below).

    Note that these are just default settings; many can be overridden via the
    administrator and user interfaces on a per-list or per-user basis.

    """

    ###############################################
    # Here's where we get the distributed defaults.

    from Defaults import *
    import pwd, grp

    ##################################################
    # Put YOUR site-specific settings below this line.

    ##############################################################
    # Here's where we override shipped defaults with settings #
    # suitable for the RPM package. #
    MAILMAN_UID = pwd.getpwnam('mailman')[2]
    MAILMAN_GID = grp.getgrnam('mailman')[2]

    ##############################################################
    # Set URL and email domain names #
    #
    # Mailman needs to know about (at least) two fully-qualified domain
    # names (fqdn)
    #
    # 1) the hostname used in your urls (DEFAULT_URL_HOST)
    # 2) the hostname used in email addresses for your domain
    (DEFAULT_EMAIL_HOST)
    #
    # For example, if people visit your Mailman system with
    # "http://www.dom.ain/mailman" then your url fqdn is "www.dom.ain",
    # and if people send mail to your system via "yourlist at dom.ain" then
    # your email fqdn is "dom.ain". DEFAULT_URL_HOST controls the former,
    # and DEFAULT_EMAIL_HOST controls the latter. Mailman also needs to
    # know how to map from one to the other (this is especially important
    # if you're running with virtual domains). You use
    # "add_virtualhost(urlfqdn, emailfqdn)" to add new mappings.

    # Default to using the FQDN of machine mailman is running on.
    # If this is not correct for your installation delete the following 5
    # lines that acquire the FQDN and manually edit the hosts instead.
    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mail-server.mydomain.my']

    from socket import *
    try:
    fqdn = getfqdn()
    except:
    fqdn = 'mm_cfg_has_unknown_host_domains'

    #DEFAULT_URL_HOST = fqdn
    DEFAULT_URL_HOST = "mail-server.mydomain.my"
    #DEFAULT_EMAIL_HOST = fqdn
    DEFAULT_EMAIL_HOST = "mail-server.mydomain.my"
    #VIRTUAL_HOSTS.clear()
    # Because we've overriden the virtual hosts above add_virtualhost
    # MUST be called after they have been defined.

    add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST, )


    ##############################################################
    # Put YOUR site-specific configuration below, in mm_cfg.py . #
    # See Defaults.py for explanations of the values. #

    # Note - if you're looking for something that is imported from mm_cfg, but
    you
    # didn't find it above, it's probably in Defaults.py.

    MTA = 'Postfix'
    POSTFIX_MAP_CMD = '/etc/mailman/virtual_to_transport'


    --
    Regards,

    Umarzuki Mochlis
    http://debmal.my
  • Mark Sapiro at Jan 12, 2011 at 1:32 am

    Umarzuki Mochlis wrote:
    # postconf -n
    alias_database = hash:/etc/postfix/aliases
    alias_maps = hash:/etc/postfix/aliases, hash:/var/lib/mailman/data/aliases

    Good.


    [...]
    mydestination = $myhostname, localhost, localhost.localdomain,
    localhost.$myhostname
    mydomain = mydomain.my
    myhostname = mail-server.mydomain.my

    So mail-server.mydomain.my is in mydestination and is thus a postfix
    local domain, yet it seems to use the dovecot LDA rather than Postfix
    local delivery.

    [...]
    relay_domains = $mydestination, proxy:ldap:/etc/postfix/
    ldap_relay_domains.cf
    relay_recipient_maps = proxy:mysql:/etc/postfix/
    mysql_virtual_mailbox_maps.cf

    But here, $mydestination is a relay domain so possibly
    relay_recipient_maps is overriding transport_maps and that is why list
    addresses are relayed to dovecot rather than local


    [...]
    transport_maps = proxy:ldap:/etc/postfix/ldap_transport_maps_user.cf,
    proxy:ldap:/etc/postfix/ldap_transport_maps_domain.cf,
    hash:/etc/mailman/transport-mailman

    OK

    # ls -l /etc/mailman/
    total 220
    -rw-r----- 1 root mailman 41 Dec 8 18:25 adm.pw
    -rw-rw---- 1 root mailman 33942 Jan 3 16:55 aliases
    -rw-r----- 1 root mailman 77824 Jan 3 16:55 aliases.db
    -rw-r----- 1 root mailman 41 Dec 8 18:26 creator.pw
    lrwxrwxrwx 1 root mailman 34 Dec 8 18:12 mm_cfg.py ->
    /usr/lib/mailman/Mailman/mm_cfg.py
    -rw-r--r-- 1 root mailman 14114 Jan 23 2008 sitelist.cfg
    -rw-rw-r-- 1 root mailman 24376 Jan 3 16:55 transport-mailman
    -rw-r--r-- 1 root mailman 45056 Jan 3 16:55 transport-mailman.db
    -rw-rw---- 1 root mailman 28283 Jan 3 16:55 virtual-mailman
    -rwxr-x--- 1 root mailman 141 Jan 3 16:48 virtual_to_transport

    OK

    # cat /etc/mailman/mm_cfg.py
    # -*- python -*- [...]
    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mail-server.mydomain.my']

    Good.


    [...]
    #DEFAULT_URL_HOST = fqdn
    DEFAULT_URL_HOST = "mail-server.mydomain.my"
    #DEFAULT_EMAIL_HOST = fqdn
    DEFAULT_EMAIL_HOST = "mail-server.mydomain.my"
    #VIRTUAL_HOSTS.clear()

    Better to uncomment the above
    VIRTUAL_HOSTS.clear()
    but it doesn't affect this issue.

    # Because we've overriden the virtual hosts above add_virtualhost
    # MUST be called after they have been defined.

    add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST, )

    Good.


    [...]
    MTA = 'Postfix'
    POSTFIX_MAP_CMD = '/etc/mailman/virtual_to_transport'

    Good.

    This all looks good except the Postfix things I noted above. The
    hash:/etc/mailman/transport-mailman entry in transport_maps should
    specify the 'local' transport for the list addresses, but somehow this
    is overriden, possibly by relay_recipient_maps, and the dovecot LDA is
    used for these addresses. This is why it doesn't work. Exactly what to
    do to fix it is beyond my Postfix expertise. It seems to me that
    transport_maps should take priority in defining the transport used for
    a matching address.

    Have you redefined the 'local' transport in master.cf to use dovecot?
    If so, this can't work with Mailman. If so, you could define another
    transport, say 'reallylocal' to use postfix local delivery, and modify
    the sed command in /etc/mailman/virtual_to_transport to specify that
    transport.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Umarzuki Mochlis at Jan 12, 2011 at 3:41 pm
    2011/1/12 Mark Sapiro <mark at msapiro.net>

    Have you redefined the 'local' transport in master.cf to use dovecot?
    If so, this can't work with Mailman. If so, you could define another
    transport, say 'reallylocal' to use postfix local delivery, and modify
    the sed command in /etc/mailman/virtual_to_transport to specify that
    transport.
    did you mean these:

    # Use dovecot deliver program as LDA.
    dovecot unix - n n - - pipe
    flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f
    ${sender} -d ${user}@${domain}
    procmail unix - n n - - pipe
    flags=DRhu user=vmail:vmail argv=/usr/bin/procmail -r -t SENDER=${sender}
    RECIPIENT=${recipient} DOMAIN=${nexthop} -m USER=${user}
    EXTENSION=${extension} /etc/procmailrc
    smtp-amavis unix - - - - 2 smtp
    -o smtp_data_done_timeout00
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use

    127.0.0.1:10025 inet n - - - - smtpd
    -o content_filter -o local_recipient_maps -o relay_recipient_maps -o smtpd_restriction_classes -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions -o smtpd_sender_restrictions -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks_style=host
    -o mynetworks7.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit01
    -o smtpd_hard_error_limit00
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o
    receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings
    # Bypass checks for internally generated mail.
    pickup fifo n - n 60 1 pickup
    -o content_filtersubmission inet n - n - - smtpd
    -o smtpd_enforce_tls=yes
    -o smtpd_sasl_auth_enable=yes
    -o
    smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
    # -o content_filter=smtp-amavis:[127.0.0.1]:10026

    smtps inet n - n - - smtpd
    -o smtpd_tls_wrappermode=yes
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    # -o content_filter=smtp-amavis:[127.0.0.1]:10026
    # Use dovecot deliver program as LDA.
    dovecot unix - n n - - pipe
    flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f
    ${sender} -d ${user}@${domain}
    procmail unix - n n - - pipe
    flags=DRhu user=vmail:vmail argv=/usr/bin/procmail -r -t SENDER=${sender}
    RECIPIENT=${recipient} DOMAIN=${nexthop} -m USER=${user}
    EXTENSION=${extension} /etc/procmailrc
    smtp-amavis unix - - - - 2 smtp
    -o smtp_data_done_timeout00
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use

    127.0.0.1:10025 inet n - - - - smtpd
    -o content_filter -o local_recipient_maps -o relay_recipient_maps -o smtpd_restriction_classes -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions -o smtpd_sender_restrictions -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks_style=host
    -o mynetworks7.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit01
    -o smtpd_hard_error_limit00
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o
    receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings

    is there any document that you could point me to achieve what you had
    suggested? Many thanks.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Mark Sapiro at Jan 12, 2011 at 4:26 pm

    Umarzuki Mochlis wrote:
    2011/1/12 Mark Sapiro <mark at msapiro.net>

    Have you redefined the 'local' transport in master.cf to use dovecot?
    If so, this can't work with Mailman. If so, you could define another
    transport, say 'reallylocal' to use postfix local delivery, and modify
    the sed command in /etc/mailman/virtual_to_transport to specify that
    transport.
    did you mean these:

    # Use dovecot deliver program as LDA.
    dovecot unix - n n - - pipe
    flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f
    ${sender} -d ${user}@${domain}
    procmail unix - n n - - pipe
    flags=DRhu user=vmail:vmail argv=/usr/bin/procmail -r -t SENDER=${sender}
    RECIPIENT=${recipient} DOMAIN=${nexthop} -m USER=${user}
    EXTENSION=${extension} /etc/procmailrc
    smtp-amavis unix - - - - 2 smtp
    -o smtp_data_done_timeout00
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use

    127.0.0.1:10025 inet n - - - - smtpd
    -o content_filter> -o local_recipient_maps> -o relay_recipient_maps> -o smtpd_restriction_classes> -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions> -o smtpd_sender_restrictions> -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks_style=host
    -o mynetworks7.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit01
    -o smtpd_hard_error_limit00
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o
    receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings
    # Bypass checks for internally generated mail.
    pickup fifo n - n 60 1 pickup
    -o content_filter>submission inet n - n - - smtpd
    -o smtpd_enforce_tls=yes
    -o smtpd_sasl_auth_enable=yes
    -o
    smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
    # -o content_filter=smtp-amavis:[127.0.0.1]:10026

    smtps inet n - n - - smtpd
    -o smtpd_tls_wrappermode=yes
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    # -o content_filter=smtp-amavis:[127.0.0.1]:10026
    # Use dovecot deliver program as LDA.
    dovecot unix - n n - - pipe
    flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f
    ${sender} -d ${user}@${domain}
    procmail unix - n n - - pipe
    flags=DRhu user=vmail:vmail argv=/usr/bin/procmail -r -t SENDER=${sender}
    RECIPIENT=${recipient} DOMAIN=${nexthop} -m USER=${user}
    EXTENSION=${extension} /etc/procmailrc
    smtp-amavis unix - - - - 2 smtp
    -o smtp_data_done_timeout00
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use

    127.0.0.1:10025 inet n - - - - smtpd
    -o content_filter> -o local_recipient_maps> -o relay_recipient_maps> -o smtpd_restriction_classes> -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions> -o smtpd_sender_restrictions> -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks_style=host
    -o mynetworks7.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit01
    -o smtpd_hard_error_limit00
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o
    receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings

    I don't see

    local unix - n n - - local

    in the above. Is that a complete listing of master.cf? If so, add the
    above line and reload Postfix and see if that helps.

    is there any document that you could point me to achieve what you had
    suggested? Many thanks.

    Try

    man 5 master

    or see <http://www.postfix.org/documentation.html>.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Umarzuki Mochlis at Jan 12, 2011 at 4:58 pm
    2011/1/13 Mark Sapiro <mark at msapiro.net>
    I don't see

    local unix - n n - - local

    in the above. Is that a complete listing of master.cf? If so, add the
    above line and reload Postfix and see if that helps.
    it is there, i did not paste all of master.cf. So i guess reloading postfix
    won't do.

    this is all of my master.cf

    # cat /etc/postfix/master.cf
    #
    # Postfix master process configuration file. For details on the format
    # of the file, see the master(5) manual page (command: "man 5 master").
    #
    # Do not forget to execute "postfix reload" after editing this file.
    #
    # =========================================================================# service type private unpriv chroot wakeup maxproc command + args
    # (yes) (yes) (yes) (never) (100)
    # =========================================================================smtp inet n - - - - smtpd
    #submission inet n - n - - smtpd
    # -o smtpd_tls_security_level=encrypt
    # -o smtpd_sasl_auth_enable=yes
    # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    # -o milter_macro_daemon_name=ORIGINATING
    #smtps inet n - n - - smtpd
    # -o smtpd_tls_wrappermode=yes
    # -o smtpd_sasl_auth_enable=yes
    # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    # -o milter_macro_daemon_name=ORIGINATING
    #628 inet n - n - - qmqpd
    #pickup fifo n - n 60 1 pickup
    cleanup unix n - n - 0 cleanup
    qmgr fifo n - n 300 1 qmgr
    #qmgr fifo n - n 300 1 oqmgr
    tlsmgr unix - - n 1000? 1 tlsmgr
    rewrite unix - - n - - trivial-rewrite
    bounce unix - - n - 0 bounce
    defer unix - - n - 0 bounce
    trace unix - - n - 0 bounce
    verify unix - - n - 1 verify
    flush unix n - n 1000? 0 flush
    proxymap unix - - n - - proxymap
    proxywrite unix - - n - 1 proxymap
    smtp unix - - n - - smtp
    # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
    relay unix - - n - - smtp
    -o smtp_fallback_relay# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq unix n - n - - showq
    error unix - - n - - error
    retry unix - - n - - error
    discard unix - - n - - discard
    local unix - n n - - local
    virtual unix - n n - - virtual
    lmtp unix - - n - - lmtp
    anvil unix - - n - 1 anvil
    scache unix - - n - 1 scache
    #
    # ===================================================================# Interfaces to non-Postfix software. Be sure to examine the manual
    # pages of the non-Postfix software to find out what options it wants.
    #
    # Many of the following services use the Postfix pipe(8) delivery
    # agent. See the pipe(8) man page for information about ${recipient}
    # and other message envelope options.
    # ===================================================================#
    # maildrop. See the Postfix MAILDROP_README file for details.
    # Also specify in main.cf: maildrop_destination_recipient_limit=1
    #
    #maildrop unix - n n - - pipe
    # flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
    #
    # ===================================================================#
    # The Cyrus deliver program has changed incompatibly, multiple times.
    #
    #old-cyrus unix - n n - - pipe
    # flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension}
    ${user}
    #
    # ===================================================================#
    # Cyrus 2.1.5 (Amos Gouaux)
    # Also specify in main.cf: cyrus_destination_recipient_limit=1
    #
    #cyrus unix - n n - - pipe
    # user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m
    ${extension} ${user}
    #
    # ===================================================================#
    # See the Postfix UUCP_README file for configuration details.
    #
    #uucp unix - n n - - pipe
    # flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
    ($recipient)
    #
    # ===================================================================#
    # Other external delivery methods.
    #
    #ifmail unix - n n - - pipe
    # flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    #
    #bsmtp unix - n n - - pipe
    # flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop
    $recipient
    #
    #scalemail-backend unix - n n - 2 pipe
    # flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
    # ${nexthop} ${user} ${extension}
    #
    #mailman unix - n n - - pipe
    # flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
    # ${nexthop} ${user}
    # Bypass checks for internally generated mail.
    #pickup fifo n - n 60 1 pickup
    -o content_filtersubmission inet n - n - - smtpd
    -o smtpd_enforce_tls=yes
    -o smtpd_sasl_auth_enable=yes
    -o
    smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
    # -o content_filter=smtp-amavis:[127.0.0.1]:10026

    smtps inet n - - - - smtpd
    -o smtpd_tls_wrappermode=yes
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    # -o content_filter=smtp-amavis:[127.0.0.1]:10026
    # Use dovecot deliver program as LDA.
    dovecot unix - n n - - pipe
    flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f
    ${sender} -d ${user}@${domain}
    procmail unix - n n - - pipe
    flags=DRhu user=vmail:vmail argv=/usr/bin/procmail -r -t SENDER=${sender}
    RECIPIENT=${recipient} DOMAIN=${nexthop} -m USER=${user}
    EXTENSION=${extension} /etc/procmailrc
    smtp-amavis unix - - - - 2 smtp
    -o smtp_data_done_timeout00
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use

    127.0.0.1:10025 inet n - - - - smtpd
    -o content_filter -o local_recipient_maps -o relay_recipient_maps -o smtpd_restriction_classes -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions -o smtpd_sender_restrictions -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks_style=host
    -o mynetworks7.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit01
    -o smtpd_hard_error_limit00
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o
    receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings
    # Bypass checks for internally generated mail.
    pickup fifo n - n 60 1 pickup
    -o content_filtersubmission inet n - n - - smtpd
    -o smtpd_enforce_tls=yes
    -o smtpd_sasl_auth_enable=yes
    -o
    smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
    # -o content_filter=smtp-amavis:[127.0.0.1]:10026

    smtps inet n - n - - smtpd
    -o smtpd_tls_wrappermode=yes
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    # -o content_filter=smtp-amavis:[127.0.0.1]:10026
    # Use dovecot deliver program as LDA.
    dovecot unix - n n - - pipe
    flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f
    ${sender} -d ${user}@${domain}
    procmail unix - n n - - pipe
    flags=DRhu user=vmail:vmail argv=/usr/bin/procmail -r -t SENDER=${sender}
    RECIPIENT=${recipient} DOMAIN=${nexthop} -m USER=${user}
    EXTENSION=${extension} /etc/procmailrc
    smtp-amavis unix - - - - 2 smtp
    -o smtp_data_done_timeout00
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use

    127.0.0.1:10025 inet n - - - - smtpd
    -o content_filter -o local_recipient_maps -o relay_recipient_maps -o smtpd_restriction_classes -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions -o smtpd_sender_restrictions -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks_style=host
    -o mynetworks7.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit01
    -o smtpd_hard_error_limit00
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o
    receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings
  • Mark Sapiro at Jan 13, 2011 at 12:55 am

    Umarzuki Mochlis wrote:
    2011/1/13 Mark Sapiro <mark at msapiro.net>
    I don't see

    local unix - n n - - local

    in the above. Is that a complete listing of master.cf? If so, add the
    above line and reload Postfix and see if that helps.
    it is there, i did not paste all of master.cf. So i guess reloading postfix
    won't do.

    Right, at least assuming you did reload Postfix after editing main.cf.

    You have exceeded my knowledge of Postfix. As far as I can see, you
    have the generated /etc/mailman/transport_mailman referenced in
    Postfix main.cf transport_maps =, and this should be specifying the
    'local' transport for list mail, but the maillog shows 'relay=dovecot'
    (if it still does - have you verified this for the latest
    configuration?). If by chance, the current error in the maillog does
    not specify relay=dovecot, you can post that error as it may help.

    But, if this mail is being handled by the dovecot transport instead of
    the local transport, I don't know why. You might try the postfix-users
    list <http://www.postfix.org/lists.html> or the dovecot list
    <http://dovecot.org/cgi-bin/mailman/listinfo/dovecot>. Perhaps someone
    there can help.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Umarzuki Mochlis at Jan 13, 2011 at 4:24 am
    2011/1/13 Mark Sapiro <mark at msapiro.net>
    Umarzuki Mochlis wrote:
    Right, at least assuming you did reload Postfix after editing main.cf.
    yes i did but with the same result

    /var/log/maillog
    ==========Jan 13 20:19:00 hpj-mail postfix/pipe[4565]: B8C2C19C89C2:
    to=<test02 at mydomain.my>, relay=dovecot, delay=1.7, delays=1.6/0.04/0/0.07,
    dsn=5.1.1, status=bounced (user unknown)
    Jan 13 20:19:00 hpj-mail postfix/cleanup[4557]: 1B22B19C89C9: message-id=<
    20110113121900.1B22B19C89C9 at mail-server.mydomain.my>
    Jan 13 20:19:00 hpj-mail postfix/qmgr[4562]: 1B22B19C89C9: from=<>,
    size%38, nrcpt=1 (queue active)
    Jan 13 20:19:00 hpj-mail postfix/bounce[4567]: B8C2C19C89C2: sender
    non-delivery notification: 1B22B19C89C9
    Jan 13 20:19:00 hpj-mail postfix/qmgr[4562]: B8C2C19C89C2: removed
    Jan 13 20:19:00 hpj-mail postfix/pipe[4565]: 1B22B19C89C9:
    to=<umarzuki at mydomain.my>, relay=dovecot, delay=0.85,
    delays=0.02/0.02/0/0.81, dsn=2.0.0, status=sent (delivered via dovecot
    service)
    Jan 13 20:19:00 hpj-mail postfix/qmgr[4562]: 1B22B19C89C9: removed

    You have exceeded my knowledge of Postfix. As far as I can see, you
    have the generated /etc/mailman/transport_mailman referenced in
    Postfix main.cf transport_maps =, and this should be specifying the
    'local' transport for list mail, but the maillog shows 'relay=dovecot'
    (if it still does - have you verified this for the latest
    configuration?). If by chance, the current error in the maillog does
    not specify relay=dovecot, you can post that error as it may help.

    all those configs were generated by iredmail script. I did not configure it
    myself. The author of iredmail apparently had stopped supporting iredmail
    with mailman

    But, if this mail is being handled by the dovecot transport instead of
    the local transport, I don't know why. You might try the postfix-users
    list <http://www.postfix.org/lists.html> or the dovecot list
    <http://dovecot.org/cgi-bin/mailman/listinfo/dovecot>. Perhaps someone
    there can help.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

    --
    Regards,

    Umarzuki Mochlis
    http://debmal.my
  • Mark Sapiro at Jan 13, 2011 at 6:30 am

    On 1/12/11 8:24 PM, Umarzuki Mochlis wrote:
    /var/log/maillog
    ===========
    Jan 13 20:19:00 hpj-mail postfix/pipe[4565]: B8C2C19C89C2:
    to=<test02 at mydomain.my>, relay=dovecot, delay=1.7,
    delays=1.6/0.04/0/0.07, dsn=5.1.1, status=bounced (user unknown)

    OK, one more thing.

    Is there an entry

    test02 at mydomain.my local

    in /etc/mailman/transport-mailman and does
    /etc/mailman/transport-mailman.db have a timestamp equal to or more
    recent than that of /etc/mailman/transport-mailman.

    If I go back to your prior posts, I see that DEFAULT_EMAIL_HOST =
    "mail-server.mydomain.my". Thus I expect that the entries in
    /etc/mailman/transport-mailman are all @mail-server.mydomain.my. This
    would explain the problem. If this is what you want, you need to mail to
    test02 at mail-server.mydomain.my. If you actually want list addresses like
    test02 at mail-server.mydomain.my, you need to make the following changes
    in mm_cfg.py

    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mydomain.my']

    DEFAULT_EMAIL_HOST = "mydomain.my"

    and run bin/genaliases.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California Better use your sense - B. Dylan
  • Mark Sapiro at Jan 13, 2011 at 6:34 am

    On 1/12/11 10:30 PM, Mark Sapiro wrote:
    If I go back to your prior posts, I see that DEFAULT_EMAIL_HOST =
    "mail-server.mydomain.my". Thus I expect that the entries in
    /etc/mailman/transport-mailman are all @mail-server.mydomain.my. This
    would explain the problem. If this is what you want, you need to mail to
    test02 at mail-server.mydomain.my. If you actually want list addresses like
    test02 at mail-server.mydomain.my, you need to make the following changes
    in mm_cfg.py

    That sentence should say "If you actually want list addresses like
    test02 at mydomain.my, you need to make the following changes in mm_cfg.py"

    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mydomain.my']

    DEFAULT_EMAIL_HOST = "mydomain.my"

    and run bin/genaliases.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California Better use your sense - B. Dylan
  • Umarzuki Mochlis at Jan 16, 2011 at 2:40 pm
    2011/1/13 Mark Sapiro <mark at msapiro.net>
    On 1/12/11 10:30 PM, Mark Sapiro wrote:

    That sentence should say "If you actually want list addresses like
    test02 at mydomain.my, you need to make the following changes in mm_cfg.py"

    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mydomain.my']

    DEFAULT_EMAIL_HOST = "mydomain.my"

    and run bin/genaliases.
    i don't know what i did wrong but now there's no content in the
    transport-mailman although the time is recent upon running bin/genaliases

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California Better use your sense - B. Dylan


    --
    Regards,

    Umarzuki Mochlis
    http://debmal.my
  • Mark Sapiro at Jan 16, 2011 at 4:06 pm

    Umarzuki Mochlis wrote:
    2011/1/13 Mark Sapiro <mark at msapiro.net>
    On 1/12/11 10:30 PM, Mark Sapiro wrote:

    That sentence should say "If you actually want list addresses like
    test02 at mydomain.my, you need to make the following changes in mm_cfg.py"

    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mydomain.my']

    DEFAULT_EMAIL_HOST = "mydomain.my"

    and run bin/genaliases.
    i don't know what i did wrong but now there's no content in the
    transport-mailman although the time is recent upon running bin/genaliases

    After changing DEFAULT_EMAIL_HOST, you need to run

    bin/withlist -l -a -r fix_url

    (see <http://wiki.list.org/x/mIA9>) and then

    bin/genaliases again.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Umarzuki Mochlis at Jan 23, 2011 at 2:47 pm
    2011/1/17 Mark Sapiro <mark at msapiro.net>

    After changing DEFAULT_EMAIL_HOST, you need to run

    bin/withlist -l -a -r fix_url

    (see <http://wiki.list.org/x/mIA9>) and then

    bin/genaliases again.
    i finally got it working with dovecot lda by adding
    hash:/etc/mailman/virtual-mailman at the end of virtual_alias_maps like so

    # postconf virtual_alias_maps
    virtual_alias_maps = proxy:ldap:/etc/postfix/ldap_virtual_alias_maps.cf,
    proxy:ldap:/etc/postfix/ldap_virtual_group_maps.cf, proxy:ldap:/etc/postfix/
    ldap_sender_login_maps.cf, proxy:ldap:/etc/postfix/ldap_catch_all_maps.cf,
    hash:/etc/mailman/virtual-mailman

    generate virtual-mailman.db

    # cd /etc/mailman
    # postmap virtual-mailman

    but how do i automate the generation of virtual-mailman.db incase a new
    mailman list were to be created?
  • Mark Sapiro at Jan 23, 2011 at 5:08 pm

    Umarzuki Mochlis wrote:
    i finally got it working with dovecot lda by adding
    hash:/etc/mailman/virtual-mailman at the end of virtual_alias_maps like so

    # postconf virtual_alias_maps
    virtual_alias_maps = proxy:ldap:/etc/postfix/ldap_virtual_alias_maps.cf,
    proxy:ldap:/etc/postfix/ldap_virtual_group_maps.cf, proxy:ldap:/etc/postfix/
    ldap_sender_login_maps.cf, proxy:ldap:/etc/postfix/ldap_catch_all_maps.cf,
    hash:/etc/mailman/virtual-mailman

    generate virtual-mailman.db

    # cd /etc/mailman
    # postmap virtual-mailman

    but how do i automate the generation of virtual-mailman.db incase a new
    mailman list were to be created?

    If you really need the list entries in both virtual_alias_maps and
    transport_maps, you could simply add

    /usr/sbin/postmap /etc/mailman/virtual-mailman

    to the end of your virtual_to_transport file.

    However, it seems to me unlikely that you actually need both since they
    both should accomplish the same thing in different ways.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedDec 16, '10 at 3:16p
activeJan 23, '11 at 5:08p
posts24
users2
websitelist.org

2 users in discussion

Umarzuki Mochlis: 12 posts Mark Sapiro: 12 posts

People

Translate

site design / logo © 2022 Grokbase