FAQ
sandbox-request is one of the mailman generated addressed for list sandbox at lists.cibolo.us

I'm using debian with

postfix 2.5.5-1.1
mailman 1:2.1.12-3
mysql-server 5.1.40-1
mysql-client-5.1 5.1.40-1
apache2-mpm-worker 2.2.14-1
apache2 2.2.14-1

I've gotten the install to work up to the point of a new list member's conf email bouncing:
-----
The mail system

(expanded from
<sandbox-request at lists.cibolo.us>): unknown user: "sandbox-request"

Reporting-MTA: dns; mail.cibolo.us
-----

Permission check showed no trouble.

I think it is a postfix config problem where I've added too much information.
If you can spot trouble in either of these config files, I'd appreciate it.

postfix main.cf
===========
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
#hostname of the server without any subdomain parts.
mydomain = cibolo.us
#Try out this process_limit to reduce memory used on server
default_process_limit = 40
minimal_backoff_time = 2500

#number of SMTP sends to the same place at once
#SMTP process limit server wide is set at 9 in master.cf
default_destination_concurrency_limit = 4

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# DOS limiting by error behavior
smtpd_error_sleep_time = 2
smtpd_soft_error_limit = 3
smtpd_hard_error_limit = 8
# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
delay_warning_time = 20m

# jg's restrictions
smtpd_helo_required = yes
smtpd_client_restrictions =
smtpd_helo_restrictions =
smtpd_sender_restrictions =

smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_invalid_hostname,
reject_unauth_pipelining,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
check_client_access cdb:/etc/postfix/access_client_ipaddr_checks,
check_helo_access cdb:/etc/postfix/access_helo_checks,
check_sender_access cdb:/etc/postfix/access_sender_checks,
# check_recipient_access hash:/etc/postfix/access_recipient_checks,
reject_rbl_client bl.spamcop.net,
reject_rbl_client zen.spamhaus.org
permit

myhostname = mail.cibolo.us
alias_maps = cdb:/etc/aliases
alias_database = cdb:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost mail.cibolo.us localhost.cibolo.us
mynetworks = 76.191.252.85 127.0.0.0/8
relayhost =
mailbox_size_limit = 80000000
recipient_delimiter = +
notify_classes = resource, software
#virtual mailbox method
virtual_mailbox_base = /var/mail/vhosts
virtual_minimum_uid = 1999
virtual_uid_maps = cdb:/etc/postfix/virtual_uid
virtual_gid_maps = cdb:/etc/postfix/virtual_gid

virtual_mailbox_limit = 51200000

#virtual alias method
#virtual_mailbox_domains = polymerlogic.com industromatic.com
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
#virtual_alias_maps = cdb:/etc/postfix/virtual
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf,
hash:/var/lib/mailman/data/virtual-mailman
#virtual_mailbox_maps = cdb:/etc/postfix/vmailbox
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = virtual
# Additional for quota support
#virtual_create_maildirsize = yes
#virtual_mailbox_extended = yes
#virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
#virtual_mailbox_limit_override = yes
#virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
#virtual_overquota_bounce = yes

#If you want to use MySQL also to store your Backup MX domains add this
#relay_domains = mysql:/etc/postfix/mysql_relay_domains_maps.cf

#mailman setup related:
relay_domains = lists.metalartists.org lists.cibolo.us
#relay_recipient_maps = hash:/var/lib/mailman/data/virtual-mailman
transport_maps = hash:/etc/postfix/transport
mailman_destination_recipient_limit = 1

=========

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/cgi-bin/mailman/'
DEFAULT_URL_PATTERN = 'http://%s/mailman/'
PRIVATE_ARCHIVE_URL = '/cgi-bin/mailman/private'
IMAGE_LOGOS = '/images/mailman/'

#-------------------------------------------------------------
# Default domain for email addresses of newly created MLs
DEFAULT_EMAIL_HOST = 'cibolo.us'
#-------------------------------------------------------------
# Default host for web interface of newly created MLs
DEFAULT_URL_HOST = 'lists.cibolo.us'
# Clear the Defaults.py VIRTUAL_HOSTS entry
VIRTUAL_HOSTS.clear()
# Add the defaults
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
# and the other(s)
add_virtualhost('lists.metalartists.org','metalartists.org')
# Update virtual-mailman for lists in all domains
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.cibolo.us','lists.metalartists.org']

#-------------------------------------------------------------
# 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'

#mailman related:
# So that mailman generates the recipients table
MTA = 'Postfix'
# alias for postmaster, abuse and mailer-daemon
DEB_LISTMASTER = 'postmaster at cibolo.com'
POSTFIX_MAP_CMD = '/usr/sbin/postmap'
#-------------------------------------------------------------
# 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.

Search Discussions

  • Mark Sapiro at Nov 10, 2009 at 8:04 pm

    John Griessen wrote:
    I've gotten the install to work up to the point of a new list member's conf email bouncing:
    -----
    The mail system

    (expanded from
    <sandbox-request at lists.cibolo.us>): unknown user: "sandbox-request"

    Reporting-MTA: dns; mail.cibolo.us
    -----
    postfix main.cf
    ===========

    The output of postconf -n is much easier to deal with.


    [...]
    myhostname = mail.cibolo.us
    alias_maps = cdb:/etc/aliases

    How about hash:/var/lib/mailman/data/aliases in alias_maps?

    alias_database = cdb:/etc/aliases
    myorigin = /etc/mailname
    mydestination = localhost mail.cibolo.us localhost.cibolo.us
    mynetworks = 76.191.252.85 127.0.0.0/8
    relayhost =
    mailbox_size_limit = 80000000
    recipient_delimiter = +
    notify_classes = resource, software
    #virtual mailbox method
    virtual_mailbox_base = /var/mail/vhosts
    virtual_minimum_uid = 1999
    virtual_uid_maps = cdb:/etc/postfix/virtual_uid
    virtual_gid_maps = cdb:/etc/postfix/virtual_gid

    virtual_mailbox_limit = 51200000

    #virtual alias method
    #virtual_mailbox_domains = polymerlogic.com industromatic.com
    virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
    #virtual_alias_maps = cdb:/etc/postfix/virtual
    virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf,
    hash:/var/lib/mailman/data/virtual-mailman
    #virtual_mailbox_maps = cdb:/etc/postfix/vmailbox
    virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
    virtual_transport = virtual
    # Additional for quota support
    #virtual_create_maildirsize = yes
    #virtual_mailbox_extended = yes
    #virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
    #virtual_mailbox_limit_override = yes
    #virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
    #virtual_overquota_bounce = yes

    #If you want to use MySQL also to store your Backup MX domains add this
    #relay_domains = mysql:/etc/postfix/mysql_relay_domains_maps.cf

    #mailman setup related:
    relay_domains = lists.metalartists.org lists.cibolo.us
    If this postfix is on the Mailman machine, these are not relay domains.
    The addresses in these domains will be mapped to local addresses by
    Mailman's virtual-mailman in virtual_alias_maps, but then you need
    aliases to map those local addresses into pipes to the mailman
    wrapper. This is the hash:/var/lib/mailman/data/aliases that's missing
    from alias_maps
    #relay_recipient_maps = hash:/var/lib/mailman/data/virtual-mailman
    transport_maps = hash:/etc/postfix/transport
    mailman_destination_recipient_limit = 1

    This all looks like postfix_to_mailman.py stuff. "You must pick one or
    the other, though neither of them are to be what they claim" B. Dylan

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • John Griessen at Nov 10, 2009 at 8:55 pm

    Mark Sapiro wrote:
    John Griessen wrote:
    #mailman setup related:
    relay_domains = lists.metalartists.org lists.cibolo.us
    If this postfix is on the Mailman machine, these are not relay domains.
    The addresses in these domains will be mapped to local addresses by
    Mailman's virtual-mailman in virtual_alias_maps, but then you need
    aliases to map those local addresses into pipes to the mailman
    wrapper. This is the hash:/var/lib/mailman/data/aliases that's missing
    from alias_maps
    #relay_recipient_maps = hash:/var/lib/mailman/data/virtual-mailman
    transport_maps = hash:/etc/postfix/transport
    mailman_destination_recipient_limit = 1

    This all looks like postfix_to_mailman.py stuff. "You must pick one or
    the other, though neither of them are to be what they claim" B. Dylan
    I took all that out and works fine. Thanks for clearing confusion of postfix_to_mailman.py

    I'm still not sure what enables it except for it being put in the dir:
    /usr/lib/mailman/scripts/

    Is that all? If so, I've disabled it.

    thanks,

    John G
  • Mark Sapiro at Nov 10, 2009 at 9:18 pm

    John Griessen wrote:
    I'm still not sure what enables it except for it being put in the dir:
    /usr/lib/mailman/scripts/

    Is that all? If so, I've disabled it.

    It is enabled by having an entry in transport_maps that identifies a
    'mailman' transport for serving a domain and having an entry in
    master.cf that defines the 'mailman' transport as a pipe to the
    mailman_to_postfix.py script.

    See the comments at the beginning of the mailman_to_postfix.py script.
    Everything is says under INSTALLATION: is not done if you aren't using
    it.

    --
    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
postedNov 9, '09 at 4:29p
activeNov 10, '09 at 9:18p
posts4
users2
websitelist.org

2 users in discussion

Mark Sapiro: 2 posts John Griessen: 2 posts

People

Translate

site design / logo © 2022 Grokbase