I've been running mailman on an old Ubuntu server that will become defunct
in a couple of weeks. Besides of having a new cloud based server  (with
Ubuntu 20.04.1 LTS), I also need to switch from Sendmail to Postfix.

Now, setting up Postfix was not too big a problem, but getting it to work
with mailman has been challenging. Particularly, genaliases gives me a
traceback like this:

root@ardbeg:~# /var/lib/mailman/bin/genaliases
Traceback (most recent call last):
  File "/var/lib/mailman/bin/genaliases", line 124, in <module>
    main()
  File "/var/lib/mailman/bin/genaliases", line 118, in main
    MTA.create(None, quiet=True)
  File "/var/lib/mailman/Mailman/MTA/Postfix.py", line 336, in create
    _do_create(mlist, ALIASFILE, _addlist)
  File "/var/lib/mailman/Mailman/MTA/Postfix.py", line 320, in _do_create
    func(mlist, fp)
  File "/var/lib/mailman/Mailman/MTA/Postfix.py", line 113, in _addlist
    loopaddr = Utils.ParseEmail(Utils.get_site_email(extra='loop'))[0]
  File "/var/lib/mailman/Mailman/Utils.py", line 799, in get_site_email
    hostname = mm_cfg.VIRTUAL_HOSTS.get(get_domain(), get_domain())
  File "/var/lib/mailman/Mailman/Utils.py", line 794, in get_domain
    return hostname.lower()
AttributeError: 'NoneType' object has no attribute 'lower'

I'm getting no alias files in the /var/lib/mailman/data/ directory, and my
list addresses are not working:

<"|/var/lib/mailman/mail/mailman post test-list"@ardbeg.xxxxxx.net>
(expanded
    from <test-l...@ardbeg.xxxxxx.net>): unknown user:
    "|/var/lib/mailman/mail/mailman post test-list"

I've spent quite some time checking what might be wrong with my Postfix
configuration, and trying to search for previous, similar sounding cases,
but I've reached the point of feeling quite clueless. Any help would be
really appreciated.


- Eva Isaksson
<eisak...@gmail.com>
------------------------------------------------------
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
    https://mail.python.org/archives/list/mailman-users@python.org/

Reply via email to