I set up postfix + dovecot and know that I want to have mailing lists I
decided to install mailman.
Everything is working except that I cannot send emails to my mailing
list (and this is quite important, don't you think?).
When I'm sending a mail to my mailing list (t...@too.gy), I get a reply
'Undelivered Mail Returned to Sender' saying:
This is the mail system at host too.gy.
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
<t...@too.gy>: unknown user: "t...@too.gy"
It seems like postfix is trying to authenticate my mailing list address,
which, obviously, is not registered in postfix user database.
But I followed the instructions during the installation and I don't why
it's happening. I went through all the mailing lists I found discussing
this question and it's still not working. So here I am.
Here is my ``/etc/postfix/main.cf``:
queue_directory = /var/spool/postfix
command_directory = /usr/bin
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = too.gy
mydomain = too.gy
myorigin = $mydomain
mydestination = localhost, too.gy
unknown_local_recipient_reject_code = 550
mynetworks_style = host
mynetworks = 127.0.0.0/8
alias_maps = hash:/etc/postfix/aliases,
hash:/var/lib/mailman/data/aliases
alias_database = $alias_maps
recipient_delimiter = +
readme_directory = /usr/share/doc/postfix
inet_protocols = ipv4
relay_domains = *
virtual_alias_maps =
proxy:mysql:/etc/postfix/virtual_alias_maps.cf,
hash:/var/lib/mailman/data/virtual-mailman
virtual_mailbox_domains =
proxy:mysql:/etc/postfix/virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/virtual_mailbox_maps.cf
virtual_mailbox_base = /home/vmail
virtual_mailbox_limit = 512000000
virtual_minimum_uid = 5000
virtual_transport = virtual
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
local_transport = virtual
local_recipient_maps = $virtual_mailbox_maps
transport_maps = hash:/etc/postfix/transport
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_security_options = noanonymous
smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/private/server.crt
smtpd_tls_key_file = /etc/ssl/private/server.key
smtpd_sasl_local_domain = $mydomain
broken_sasl_auth_clients = yes
smtpd_tls_loglevel = 1
And my ``/etc/mailman/mm_cfg.py``:
# -*- python -*-
###############################################
# Here's where we get the distributed defaults.
from Defaults import *
##################################################
# Put YOUR site-specific settings below this line.
DEFAULT_URL_HOST = 'lists.too.gy'
DEFAULT_EMAIL_HOST = 'too.gy'
MTA = 'Postfix'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['too.gy']
DEFAULT_URL_PATTERN = 'http://%s/'
PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/archives/%(listname)s'
MAILMAN_SITE_LIST = 'mailman'