Loading ...
Sorry, an error occurred while loading the content.

Mailman not working with Postfix

Expand Messages
  • Larry Zins
    Hi list, I am configuring a new Email server using Postfix 2.3.3-2 and Mailman 2.1.9-2 on CentOS 5.1. I ve had email flowing through this box for several
    Message 1 of 2 , Jan 2, 2008
    • 0 Attachment
      Hi list, I am configuring a new Email server using Postfix 2.3.3-2 and Mailman 2.1.9-2 on CentOS 5.1.  I've had email flowing through this box for several weeks, and saved Mailman for last.  After about a week of trying, I am still unable to get Mailman to work.  I was previously able to receive email for local recipients only, but not to addresses outside of my domain.  Now however, email is not arriving anywhere.

      The maillog file reports everythings ok:

      Jan  2 00:10:59 sonic amavis[15735]: (15735-04) Passed CLEAN, [66.249.92.169] [66.249.92.169] < larry.zins@...> -> <larry-test@...>, Message-ID: < 3f87c8af0801020015x3f178f6bu54cf43d859202ba2@...>, mail_id: EOZhdqdYdtBU, Hits: -0.439, size: 2018, queued_as: 397FD62E74B, 2193 ms
      Jan  2 00:10:59 sonic postfix/lmtp[15778]: AC4632F745D: to=< larry-test@...>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.7, delays=0.52/0/0/2.2, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 397FD62E74B)
      Jan  2 00:10:59 sonic postfix/local[15783]: 397FD62E74B: to=< larry-test@...>, relay=local, delay=0.09, delays=0/0/0/0.09, dsn=2.0.0, status=sent (delivered to command: /usr/lib/mailman/mail/mailman post larry-test)

      If anyone could provide some ideas on how to make this work, I would certainly appreciate it.

      I have the virtual alias map /etc/postfix/virtual like so:

      larry-test@...                 larry-test
      larry-test-admin@...       larry-test-admin
      larry-test-bounces@...    larry-test-bounces
      larry-test-confirm@...      larry-test-confirm
      larry-test-join@...            larry-test-join
      larry-test-leave@...         larry-test-leave
      larry-test-owner@...        larry-test-owner
      larry-test-request@...      larry-test-request
      larry-test-subscribe@...    larry-test-subscribe
      larry-test-unsubscribe@...  larry-test-unsubscribe

      I have entered the command:
      # postmap /etc/postfix/virtual

      /etc/aliases:

      larry-test:              "|/usr/lib/mailman/mail/mailman post larry-test"
      larry-test-admin:        "|/usr/lib/mailman/mail/mailman admin larry-test"
      larry-test-bounces:      "|/usr/lib/mailman/mail/mailman bounces larry-test"
      larry-test-confirm:      "|/usr/lib/mailman/mail/mailman confirm larry-test"
      larry-test-join:         "|/usr/lib/mailman/mail/mailman join larry-test"
      larry-test-leave:        "|/usr/lib/mailman/mail/mailman leave larry-test"
      larry-test-owner:        "|/usr/lib/mailman/mail/mailman owner larry-test"
      larry-test-request:      "|/usr/lib/mailman/mail/mailman request larry-test"
      larry-test-subscribe:    "|/usr/lib/mailman/mail/mailman subscribe larry-test"
      larry-test-unsubscribe:  "|/usr/lib/mailman/mail/mailman unsubscribe larry-test"

      I have entered the command "newaliases".

      Here is the output of postconf -n:

      #  postconf -n
      alias_database = hash:/etc/aliases
      alias_maps = hash:/etc/aliases
      broken_sasl_auth_clients = yes
      command_directory = /usr/sbin
      config_directory = /etc/postfix
      content_filter = amavisfeed:[127.0.0.1]:10024
      daemon_directory = /usr/libexec/postfix
      debug_peer_level = 2
      html_directory = no
      inet_interfaces = all
      local_recipient_maps =
      mail_owner = postfix
      mail_spool_directory = /var/spool/mail
      mailbox_size_limit = 0
      mailq_path = /usr/bin/mailq.postfix
      manpage_directory = /usr/share/man
      mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost
      mydomain = create.ucsb.edu
      myhostname = sonic.create.ucsb.edu
      mynetworks = 128.111.92.0/26, 128.111.221.0/25, 128.111.71.224/27
      myorigin = $mydomain
      newaliases_path = /usr/bin/newaliases.postfix
      queue_directory = /var/spool/postfix
      readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
      sample_directory = /usr/share/doc/postfix-2.3.3/samples
      sendmail_path = /usr/sbin/sendmail.postfix
      setgid_group = postdrop
      smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
      smtpd_sasl_auth_enable = yes
      smtpd_sasl_security_options = noanonymous
      smtpd_tls_auth_only = yes
      smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
      smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
      smtpd_tls_loglevel = 1
      smtpd_tls_received_header = yes
      smtpd_use_tls = yes
      strict_rfc821_envelopes = yes
      unknown_local_recipient_reject_code = 550
      virtual_alias_maps = hash:/etc/postfix/virtual

      Thanks,
      Larry

    • mouss
      ... mail was successfully delivered to mailman. now you need to know what mailman did with the message.
      Message 2 of 2 , Jan 2, 2008
      • 0 Attachment
        Larry Zins wrote:
        > Hi list, I am configuring a new Email server using Postfix 2.3.3-2 and
        > Mailman 2.1.9-2 on CentOS 5.1. I've had email flowing through this box
        > for several weeks, and saved Mailman for last. After about a week of
        > trying, I am still unable to get Mailman to work. I was previously able
        > to receive email for local recipients only, but not to addresses outside
        > of my domain. Now however, email is not arriving anywhere.
        >
        > The maillog file reports everythings ok:
        >
        > Jan 2 00:10:59 sonic amavis[15735]: (15735-04) Passed CLEAN,
        > [66.249.92.169 <http://66.249.92.169>] [66.249.92.169
        > <http://66.249.92.169>] < larry.zins@...
        > <mailto:larry.zins@...>> -> <larry-test@...
        > <mailto:larry-test@...>>, Message-ID: <
        > 3f87c8af0801020015x3f178f6bu54cf43d859202ba2@...
        > <mailto:3f87c8af0801020015x3f178f6bu54cf43d859202ba2@...>>,
        > mail_id: EOZhdqdYdtBU, Hits: -0.439, size: 2018, queued_as: 397FD62E74B,
        > 2193 ms
        > Jan 2 00:10:59 sonic postfix/lmtp[15778]: AC4632F745D: to=<
        > larry-test@... <mailto:larry-test@...>>,
        > relay=127.0.0.1[127.0.0.1 <http://127.0.0.1>]:10024, delay=2.7,
        > delays=0.52/0/0/2.2, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as
        > 397FD62E74B)
        > Jan 2 00:10:59 sonic postfix/local[15783]: 397FD62E74B: to=<
        > larry-test@... <mailto:larry-test@...>>, relay=local,
        > delay=0.09, delays=0/0/0/0.09, dsn=2.0.0, status=sent (delivered to
        > command: /usr/lib/mailman/mail/mailman post larry-test)
        >

        mail was successfully delivered to mailman. now you need to know what
        mailman did with the message.


        > If anyone could provide some ideas on how to make this work, I would
        > certainly appreciate it.
        >
        > I have the virtual alias map /etc/postfix/virtual like so:
        >
        > larry-test@... <mailto:larry-test@...> larry-test
        > larry-test-admin@... <mailto:larry-test-admin@...>
        > larry-test-admin
        > larry-test-bounces@... <mailto:larry-test-bounces@...>
        > larry-test-bounces
        > larry-test-confirm@... <mailto:larry-test-confirm@...>
        > larry-test-confirm
        > larry-test-join@... <mailto:larry-test-join@...>
        > larry-test-join
        > larry-test-leave@... <mailto:larry-test-leave@...>
        > larry-test-leave
        > larry-test-owner@... <mailto:larry-test-owner@...>
        > larry-test-owner
        > larry-test-request@... <mailto:larry-test-request@...>
        > larry-test-request
        > larry-test-subscribe@... <mailto:larry-test-subscribe@...>
        > larry-test-subscribe
        > larry-test-unsubscribe@... <mailto:larry-test-unsubscribe@...>
        > larry-test-unsubscribe
        >
        > I have entered the command:
        > # postmap /etc/postfix/virtual
        >
        > /etc/aliases:
        >
        > larry-test: "|/usr/lib/mailman/mail/mailman post larry-test"
        > larry-test-admin: "|/usr/lib/mailman/mail/mailman admin larry-test"
        > larry-test-bounces: "|/usr/lib/mailman/mail/mailman bounces
        > larry-test"
        > larry-test-confirm: "|/usr/lib/mailman/mail/mailman confirm larry-test"
        > larry-test-join: "|/usr/lib/mailman/mail/mailman join larry-test"
        > larry-test-leave: "|/usr/lib/mailman/mail/mailman leave larry-test"
        > larry-test-owner: "|/usr/lib/mailman/mail/mailman owner larry-test"
        > larry-test-request: "|/usr/lib/mailman/mail/mailman request larry-test"
        > larry-test-subscribe: "|/usr/lib/mailman/mail/mailman subscribe
        > larry-test"
        > larry-test-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe
        > larry-test"
        >
        > I have entered the command "newaliases".
        >
        > Here is the output of postconf -n:
        >
        > # postconf -n
        > alias_database = hash:/etc/aliases
        > alias_maps = hash:/etc/aliases
        > broken_sasl_auth_clients = yes
        > command_directory = /usr/sbin
        > config_directory = /etc/postfix
        > content_filter = amavisfeed:[127.0.0.1 <http://127.0.0.1>]:10024
        > daemon_directory = /usr/libexec/postfix
        > debug_peer_level = 2
        > html_directory = no
        > inet_interfaces = all
        > local_recipient_maps =
        > mail_owner = postfix
        > mail_spool_directory = /var/spool/mail
        > mailbox_size_limit = 0
        > mailq_path = /usr/bin/mailq.postfix
        > manpage_directory = /usr/share/man
        > mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost
        > mydomain = create.ucsb.edu <http://create.ucsb.edu>
        > myhostname = sonic.create.ucsb.edu <http://sonic.create.ucsb.edu>
        > mynetworks = 128.111.92.0/26 <http://128.111.92.0/26>, 128.111.221.0/25
        > <http://128.111.221.0/25>, 128.111.71.224/27 <http://128.111.71.224/27>
        > myorigin = $mydomain
        > newaliases_path = /usr/bin/newaliases.postfix
        > queue_directory = /var/spool/postfix
        > readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
        > sample_directory = /usr/share/doc/postfix-2.3.3/samples
        > sendmail_path = /usr/sbin/sendmail.postfix
        > setgid_group = postdrop
        > smtpd_recipient_restrictions = permit_sasl_authenticated,
        > permit_mynetworks, reject_unauth_destination
        > smtpd_sasl_auth_enable = yes
        > smtpd_sasl_security_options = noanonymous
        > smtpd_tls_auth_only = yes
        > smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
        > smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
        > smtpd_tls_loglevel = 1
        > smtpd_tls_received_header = yes
        > smtpd_use_tls = yes
        > strict_rfc821_envelopes = yes
        > unknown_local_recipient_reject_code = 550
        > virtual_alias_maps = hash:/etc/postfix/virtual
        >
        > Thanks,
        > Larry
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.