I made those changes and attempted another distr test and most of the previous errors went away but one (still no distribution), as follows:
This is the mail system at host naturalintelligence.us. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system <mail...@naturalintelligence.us> (expanded from <mail...@lists.naturalintelligence.us>): host naturalintelligence.us[private/dovecot-lmtp] said: 550 5.1.1 <mail...@naturalintelligence.us> User doesn't exist: mail...@naturalintelligence.us (in reply to RCPT TO command) Below is output from postconf -n # postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases append_dot_mydomain = no biff = no disable_vrfy_command = yes inet_interfaces = all inet_protocols = all invalid_hostname_reject_code = 550 mailbox_size_limit = 40000000 mailman_destination_recipient_limit = 1 maximal_backoff_time = 3h milter_default_action = accept milter_protocol = 6 minimal_backoff_time = 180s mydestination = localhost, mahavira, mahavira.naturalintelligence.us, localhost.naturalintelligence.us mydomain = naturalintelligence.us myhostname = naturalintelligence.us mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 myorigin = $mydomain non_fqdn_reject_code = 550 non_smtpd_milters = local:opendkim/opendkim.sock policyd-spf_time_limit = 3600 readme_directory = no recipient_delimiter = + relay_domains = lists.naturalintelligence.us relay_recipient_maps = hash:/var/lib/mailman/data/virtual-mailman relayhost = smtp_always_send_ehlo = yes smtp_helo_timeout = 15s smtp_rcpt_timeout = 15s smtp_tls_security_level = may smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_delay_reject = yes smtpd_helo_required = yes smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname smtpd_milters = local:opendkim/opendkim.sock smtpd_recipient_limit = 40 smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unlisted_recipient, reject_unauth_destination, check_policy_service unix:private/policyd-spf smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous, noplaintext smtpd_sasl_tls_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unknown_sender_domain smtpd_timeout = 30s smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/letsencrypt/live/naturalintelligence.us/fullchain.pem smtpd_tls_key_file = /etc/letsencrypt/live/naturalintelligence.us/privkey.pem smtpd_tls_security_level = may smtpd_use_tls = yes strict_rfc821_envelopes = yes transport_maps = hash:/etc/postfix/transport unknown_address_reject_code = 550 unknown_client_reject_code = 550 unknown_hostname_reject_code = 550 unverified_recipient_reject_code = 550 unverified_sender_reject_code = 550 virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf virtual_transport = lmtp:unix:private/dovecot-lmtp # -----Original Message----- From: Mailman-Users [mailto:mailman-users-bounces+csa=web-analysts....@python.org] On Behalf Of Mark Sapiro Sent: Friday, June 14, 2019 10:28 PM To: mailman-users@python.org Subject: Re: [Mailman-Users] using hash for aliases. distribution email bounced back with errors On 6/14/19 2:21 PM, Christian Stalberg via Mailman-Users wrote: > Installing mailman 2.1.20 on a working postfix-dovecot-mysql mail server. > Trying to use hash for Mailman aliases. > > In /etc/postfix/main.cf, I have > > alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases Good. > I ran 'newlist mailman at command line.' This is the aliases file contents. > snipped but looks good. > I ran bin/genaliases. Which wasn't necessary (yet) because creating the list did everything that genaliases did. I then subscribed some email addresses to the mailman > list and sent a test distribution email which was bounced back with errors > as follows: > > This is the mail system at host naturalintelligence.us. > > I'm sorry to have to inform you that your message could not be delivered to > one or more recipients. It's attached below. > > For further assistance, please send mail to postmaster. > > If you do so, please include this problem report. You can delete your own > text from the attached returned message. > > The mail system > > <mail...@naturalintelligence.us> (expanded from > <mail...@lists.naturalintelligence.us>): host > naturalintelligence.us[private/dovecot-lmtp] said: 550 5.1.1 > <mail...@naturalintelligence.us> User doesn't exist: > mail...@naturalintelligence.us (in reply to RCPT TO command) Is lists.naturalintelligence.us in mydestination or is it a virtual domain? If the latter, you need to put POSTFIX_VIRTUAL_DOMAINS = ['lists.naturalintelligence.us'] in mm_cfg.py and run genaliases again and add virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman to Postfix. > <p...@naturalintelligence.us> (expanded from > <mail...@lists.naturalintelligence.us>): host > naturalintelligence.us[private/dovecot-lmtp] said: 550 5.1.1 > <p...@naturalintelligence.us> User doesn't exist: > p...@naturalintelligence.us (in reply to RCPT TO command) > > <|/var/lib/mailman/mail/mail...@naturalintelligence.us> (expanded from > <mail...@lists.naturalintelligence.us>): host > naturalintelligence.us[private/dovecot-lmtp] said: 550 5.1.1 > <|/var/lib/mailman/mail/mail...@naturalintelligence.us> User doesn't > exist: > |/var/lib/mailman/mail/mail...@naturalintelligence.us (in reply to RCPT > TO > command) The Dovecot LDA does not understand the aliases. You may have lists.naturalintelligence.us defined as a virtual domain for Dovecot. This won't work. This is really a Postfix issue, but we will try to help further if you post the output from `postconf -n`. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/csa%40web-analysts.net ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org