On 2024/07/31 13:47, Odhiambo Washington via Mailman-users wrote:
Read this thread and take a keen look at the solution provided by @Stephen J. Turnbull<turnbull.stephen.fw@u.tsukuba.ac.jp> :
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/E...
The reason why he got the error is indeed because of fs permissions. I added a line into usr/lib/python3/dist-packages/mailman/utilities/filesystem.py at line 69 to print the directory and it said:
Jul 31 18:02:01 mailman mailman3[1029]: ls: cannot access '/var/lib/mailman3': Permission denied
So I changed the permissions to the user that mailman runs under (on both servers uid 38).
sshfs -o uid=38,gid=38 -o allow_other root@box2.gtahardware.co.za:/etc/mailman3/data /var/lib/mailman3/data
Now mailman3 starts without errors and I have a remote directory into which the domains can be written by mailman3's django admin interface.
I needed to put these files at these locations:
transport_maps = hash:/etc/mailman3/data/postfix_lmtp local_recipient_maps = hash:/etc/mailman3/data/postfix_lmtp relay_domains = hash:/etc/mailman3/data/postfix_domains
However, since I'm using power-mailinabox, Postfix is configured to use sqlite already and has these lines by default:
virtual_mailbox_domains=sqlite:/etc/postfix/virtual-mailbox-domains.cf virtual_mailbox_maps=sqlite:/etc/postfix/virtual-mailbox-maps.cf virtual_alias_maps=sqlite:/etc/postfix/virtual-alias-maps.cf local_recipient_maps=$virtual_mailbox_maps
So I have only added this line to postfix's main.cf:
# Add postfix_domains path so mailman can add domains to it for lists relay_domains=hash://etc/mailman3/data/postfix_domains
The local_recepient_maps are set my power-mailinabox already, so I'm ignoring what mailman creates.
However, in the process I have also change the list domain to be different from the MTA's. Postfix accepts mail for fast.za.net, so I created lists.fast.za.net for the list server. I have changed the domain in django to reflect this, but now I get the original error again, since mailman-web tries to authenticate as lists.fast.za.net, which the MTA doesn't know. I'll have to dig a little to see why this is.