How do you extract or print Exim's aliases that it's using, when using it through Mailman3?
Mailman uses Exim, and includes nine aliases which point to seven different wrapped scripts: https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/runners/docs/OVERVIEW.html
I see this showing python commands, but it's using Postfix, while I'm using Exim, and I'm unclear what I'd need to change to make it work: https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/commands/docs/aliases.html
I wrote up this, and getting stuck with postfix_domains
:
#!/usr/bin/python3
import os, tempfile
from mailman.testing.documentation import cli
output_directory = tempfile.mkdtemp()
with open(os.path.join(output_directory, 'postfix_domains')) as fp:
print(fp.read())
mailman:/opt/mailman# python3 ./t1.py
Traceback (most recent call last):
File "/opt/mailman/./t1.py", line 5, in <module>
with open(os.path.join(output_directory, 'postfix_domains')) as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpya2xx0tq/postfix_domains'
mailman:/opt/mailman#