[Mailman-Users] MailMan won't send list emails

Caesar Samsi mailinglist at samsi.us
Thu Jul 14 19:47:24 EDT 2016


> On Jul 14, 2016, at 4:00 PM, Mark Sapiro <mark at msapiro.net> wrote:
> 
> On 07/14/2016 09:35 AM, Caesar Samsi wrote:
>> yugi at us is currently a virtual mailbox. It can be removed though, should I?
> 
> 
> Yes, and in Postfix main.cf, add
> 
> virtual_alias_domains = yugi.us
> 
> and ensure you have hash:/var/lib/mailman/data/aliases in alias_maps and
> hash:/var/lib/mailman/data/virtual-mailman in virtual_alias_maps
> 
> and in mm_cfg.py
> 
> MTA = 'Postfix'
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['yugi.us']
> 
> -- 
> Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan


Done the above and attempted to send to test at yugi.us <mailto:test at yugi.us>, results are weird:

RETURNED EMAIL:

This is the mail system at host mail.samsi.us <http://mail.samsi.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

<test at mail>: Host or domain name not found. Name service error for name=mail
   type=AAAA: Host not found
Reporting-MTA: dns; mail.samsi.us <http://mail.samsi.us/>
X-Postfix-Queue-ID: 03B813FFFD
X-Postfix-Sender: rfc822; caesar at samsi.us <mailto:caesar at samsi.us>
Arrival-Date: Thu, 14 Jul 2016 16:39:29 -0700 (PDT)

Final-Recipient: rfc822; test at mail
Original-Recipient: rfc822;test at yugi.us <mailto:test at yugi.us>
Action: failed
Status: 5.4.4
Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error
   for name=mail type=AAAA: Host not found

From: Caesar Samsi <caesar at samsi.us <mailto:caesar at samsi.us>>
Date: July 14, 2016 at 4:39:25 PM PDT
To: test at yugi.us <mailto:test at yugi.us>
Subject: test


test

POSTFIX LOG (not sure why yugi.us is converted to mail)

Jul 14 16:39:29 mail postfix/qmgr[25985]: 03B813FFFD: from=<caesar at samsi.us>, size=715, nrcpt=1 (queue active)
Jul 14 16:39:29 mail amavis[25725]: (25725-01) Passed CLEAN {RelayedOutbound}, LOCAL [192.168.1.253]:58481 <caesar at samsi.us> -> <test at mail>, Queue-ID: 87D173FFFC, Message-ID: <2A803142-28A7-4639-BE54-454800EA7FA8 at samsi.us>, mail_id: Be3nxwAFFqzO, Hits: 0.728, size: 306, queued_as: 03B813FFFD, 2489 ms
Jul 14 16:39:29 mail postfix/smtp[26005]: 87D173FFFC: to=<test at mail>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.6, delays=0.07/0.04/0.04/2.5, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 03B813FFFD)
Jul 14 16:39:29 mail postfix/qmgr[25985]: 87D173FFFC: removed
Jul 14 16:39:29 mail postfix/smtp[26011]: 03B813FFFD: to=<test at mail>, relay=none, delay=0.09, delays=0.04/0.04/0.02/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=mail type=AAAA: Host not found)
Jul 14 16:39:29 mail postfix/cleanup[26003]: 243913FFFC: message-id=<20160714233929.243913FFFC at mail.samsi.us>
Jul 14 16:39:29 mail postfix/qmgr[25985]: 243913FFFC: from=<>, size=2619, nrcpt=1 (queue active)
Jul 14 16:39:29 mail postfix/bounce[26012]: 03B813FFFD: sender non-delivery notification: 243913FFFC
Jul 14 16:39:29 mail postfix/qmgr[25985]: 03B813FFFD: removed

mm_cfg.py:

# -*- python -*-

# Copyright (C) 1998,1999,2000 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., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA


"""This is the module which takes your site-specific settings.

From a raw 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.  The complete set of distributed defaults, with annotation,
are in ./Defaults.  In mm_cfg, 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
admin and user interfaces on a per-list or per-user basis.

Note also that some of the settings are resolved against the active list
setting by using the value as a format string against the
list-instance-object's dictionary - see the distributed value of
DEFAULT_MSG_FOOTER for an example."""


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

from Defaults import *

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

#-------------------------------------------------------------
# The name of the list Mailman uses to send password reminders
# and similar. Don't change if you want mailman-owner to be
# a valid local part.
MAILMAN_SITE_LIST = 'mailman'

#-------------------------------------------------------------
# If you change these, you have to configure your http server
# accordingly (Alias and ScriptAlias directives in most httpds)
DEFAULT_URL_PATTERN = 'http://%s/'
IMAGE_LOGOS         = '/images/mailman/'

#-------------------------------------------------------------
# Default domain for email addresses of newly created MLs
DEFAULT_EMAIL_HOST = 'yugi.us'
#-------------------------------------------------------------
# Default host for web interface of newly created MLs
DEFAULT_URL_HOST   = 'mail.samsi.us'
#-------------------------------------------------------------
# Required when setting any of its arguments.
#add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

#-------------------------------------------------------------
# The default language for this server.
DEFAULT_SERVER_LANGUAGE = 'en'

#-------------------------------------------------------------
# Iirc this was used in pre 2.1, leave it for now
USE_ENVELOPE_SENDER    = 0              # Still used?

#-------------------------------------------------------------
# Unset send_reminders on newly created lists
DEFAULT_SEND_REMINDERS = 0

#-------------------------------------------------------------
# Uncomment this if you configured your MTA such that it
# automatically recognizes newly created lists.
# (see /usr/share/doc/mailman/README.Exim4.Debian or
# /usr/share/mailman/postfix-to-mailman.py)
# MTA=None   # Misnomer, suppresses alias output on newlist

#-------------------------------------------------------------
# Uncomment if you use Postfix virtual domains (but not
# postfix-to-mailman.py), but be sure to see
# /usr/share/doc/mailman/README.Debian first.
MTA='Postfix'
SMTPHOST = 'localhost'
SMTPPORT = 25
#-------------------------------------------------------------
# Uncomment if you want to filter mail with SpamAssassin. For
# more information please visit this website:
# http://www.jamesh.id.au/articles/mailman-spamassassin/
# GLOBAL_PIPELINE.insert(1, 'SpamAssassin')

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

POSTFIX_STYLE_VIRTUAL_DOMAINS = ['yugi.us']

POSTFIX (postconf -n)

alias_maps = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
disable_vrfy_command = yes
dovecot_destination_recipient_limit = 1
enable_original_recipient = no
header_checks = regexp:/etc/postfix/header_checks
inet_interfaces = all
mailbox_size_limit = 0
mailman_destination_recipient_limit = 1
maximal_backoff_time = 8000s
maximal_queue_lifetime = 7d
minimal_backoff_time = 1000s
mydestination =
myhostname = mail.samsi.us
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mynetworks_style = host
myorigin = /etc/hostname
readme_directory = no
recipient_delimiter = +
relay_domains = mail.samsi.us
smtp_helo_timeout = 60s
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_delay_reject = yes
smtpd_hard_error_limit = 12
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_helo_hostname, reject_non_fqdn_hostname, reject_invalid_hostname
smtpd_recipient_limit = 16
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_rbl_client sbl.spamhaus.org, reject_rbl_client cbl.abuseat.org, reject_rbl_client dul.dnsbl.sorbs.net
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_soft_error_limit = 3
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_exclude_ciphers = aNULL, eNULL, EXPORT, DES, RC4, MD5, PSK, aECDH, EDH-DSS-DES-CBC3-SHA, EDH-RSA-DES-CDC3-SHA, KRB5-DE5, CBC3-SHA
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_loglevel = 1
smtpd_tls_mandatory_protocols = !SSLv2,!SSLv3
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 450
virtual_alias_domains = yugi.us
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf, mysql:/etc/postfix/mysql_virtual_alias_domainaliases_maps.cf, hash:/var/lib/mailman/data/virtual-mailman
virtual_gid_maps = static:8
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf, mysql:/etc/postfix/mysql_virtual_mailbox_domainaliases_maps.cf
virtual_transport = dovecot
virtual_uid_maps = static:150



More information about the Mailman-Users mailing list