[Mailman-Users] mailman postfix connection on debian

Mark Sapiro mark at msapiro.net
Fri May 20 13:00:16 EDT 2016


On 05/19/2016 08:20 PM, John Griessen wrote:

> 
> I tried a simplifying test and it seems not simple enough:
> 
> I wanted to send a test email, so I could see it in the logs:
> I have a list called catjuggling for testing things out.  No users in it
> but me, no one to bother...
> 
> $ sudo echo "test email" | /var/lib/mailman/mail/mailman post catjuggling
> Group mismatch error.  Mailman expected the mail
> wrapper script to be executed as group "daemon", but
> the system's mail server executed the mail script as
> group "cibolo".  Try tweaking the mail server to run the
> script as group "daemon", or re-run configure,
> providing the command line option `--with-mail-gid=cibolo'.


You need to do

sudo -u daemon echo "test email" | /var/lib/mailman/mail/mailman post
catjuggling


> If I su root I can send a message, and get a reponse from mailman that
> it is from no one, so needs approval,
> so that tests that mailmanis intalled somewhat, and postfix is the hangup.
> 
> list and vmail are no login users, so can't test this that way...
> 
> 
> cibolo at mail1:/etc/dovecot$ sudo postconf -n
> alias_maps = hash:/etc/aliases

I can't tell how you expect to deliver to Mailman, but I see npo Mailman
aliases here?


> append_dot_mydomain = no
> biff = no
> config_directory = /etc/postfix
> inet_interfaces = all
> mailbox_size_limit = 0
> mydestination = cibolo.us, mail1.cibolo.us, localhost
> mydomain = cibolo.us
> myhostname = mail1
> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
> myorigin = $mydomain
> readme_directory = no
> recipient_delimiter = +
> relayhost =
> smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
> smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
> smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated
> defer_unauth_destination
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_path = private/auth
> smtpd_sasl_type = dovecot
> smtpd_tls_auth_only = yes
> smtpd_tls_cert_file = /etc/xxxxxxxxxxxxxxxxxxxxxxxxxx
> smtpd_tls_key_file = /etc/xxxxxxxxxxxxxxxxxxxxxxx
> smtpd_tls_security_level = may
> smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
> virtual_alias_maps = hash:/etc/postfix/virtual_aliases
> virtual_mailbox_domains = casaxxxxxxxxxx.com, casitaxxxxxxxxxxxx.com,
> etc.com
> virtual_mailbox_maps = hash:/etc/postfix/vmailboxes
> virtual_transport = lmtp:unix:private/dovecot-lmtp


And Dovecot usually doesn't know how to deliver to Mailman


> ====================mm_cfg.py changes===============
> MTA='Postfix'
> # 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   = 'mail1.cibolo.us'


With the above you are generating aliases in Mailman's data/aliases, but
you aren't using them in Postfix. You have no
POSTFIX_STYLE_VIRTUAL_DOMAINS setting so you aren't generating virtual
mappings.

These FAQ articles may help:

<https://wiki.list.org/x/4030645>
<https://wiki.list.org/x/10715238>

and if you are trying to use postfix_to_mailman.py

<https://wiki.list.org/x/15564817>

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the Mailman-Users mailing list