
Many lines removed from each file.
Alexander Inzinger-Zrock via Mailman-users writes:
/etc/postfix/main.cf smtpd_recipient_restrictions = reject_non_fqdn_recipient *> reject_non_fqdn_sender reject_unknown_sender_domain *> reject_unknown_recipient_domain smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated *> defer_unauth_destination mydestination = $myhostname, $mydomain, _OBFUSCATED_, localhost, *> _OBFUSCATED_
The lines above marked with a leading * are not valid main.cf syntax. I suspect that they are wrapped by either your MUA or perhaps in a conversion from HTML mail to plain text. You should be careful that quotations of configurations and code be formatted exactly as in the original file.
alias_maps = hash:/etc/aliases, hash:/opt/mailman/data/aliases alias_database = hash:/etc/aliases, hash:/opt/mailman/data/aliases
If /opt/mailman/data/aliases exists, what is in it? (If it doesn't exist I don't think it causes a problem, check Postfix logs.) This seems to be inconsistent with your /opt/mailman/mm/var/data setup, though.
transport_maps = hash:/opt/mailman/mm/var/data/postfix_lmtp local_recipient_maps = proxy:unix:passwd.byname $alias_maps, *> hash:/opt/mailman/mm/var/data/postfix_lmtp relay_domains = hash:/opt/mailman/mm/var/data/postfix_domains
The above should be OK as long as the * line is a misformatted continuation line for local_recipient_maps.
/etc/mailman3/mailman.cfg
I would add the
[paths.local] var_dir: /opt/mailman/mm/var
after the [mailman] section and before the [database] section.
[archiver.prototype] enable: yes
Note that the prototype archiver is pretty useless except as a backup of all the archived mail.
Everything else looks appropriate.
/etc/mailman3/settings.py
ALLOWED_HOSTS = [ "127.0.0.1", "_OBFUSCATED_", ] CSRF_TRUSTED_ORIGINS = [ "_OBFUSCATED_", ]
In the above you may want both the full domain name and the IP address.
SITE_ID = 2
The SITE_ID is probably OK, but correctly setting it is essential. When nothing seems to work right on the website, this is often the problem.
HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', 'PATH': '/opt/mailman/web/whoosh/fulltext_index', }, }
Whoosh is quite slow, and we recommend Xapian by default now. (It should work, it's just slow.)
Those all look OK.
-- GNU Mailman consultant (installation, migration, customization) Sirius Open Source https://www.siriusopensource.com/ Software systems consulting in Europe, North America, and Japan