[Pkg-mailman-hackers] Bug#891881: Bug#891881: mailman3-suite: On system using exim (no postfix install) the list create script tries to create postfix aliases

Pierre-Elliott Bécue becue at crans.org
Fri Mar 2 11:00:59 UTC 2018


Le vendredi 02 mars 2018 à 01:27:11+0100, Markus Gschwendt a écrit :
> Package: mailman3
> Version: 3.1.1
> System: debian stretch-backports
> 
> This is a system with exim4 as local mailserver
> On creating a new mailinglist i get following error in the logs:
> 
> ```
> File "/usr/lib/python3.5/wsgiref/handlers.py", line 137, in run
>     self.result = application(self.environ, self.start_response)
>   File "/usr/lib/python3/dist-
> packages/mailman/database/transaction.py", line 50, in wrapper
>     rtn = function(*args, **kws)
>   File "/usr/lib/python3/dist-packages/mailman/rest/wsgiapp.py", line
> 214, in __call__
>     return super().__call__(environ, start_response)
>   File "falcon/api.py", line 215, in falcon.api.API.__call__
> (falcon/api.c:2571)
>   File "falcon/api.py", line 189, in falcon.api.API.__call__
> (falcon/api.c:2190)
>   File "/usr/lib/python3/dist-packages/mailman/rest/lists.py", line
> 245, in on_post
>     mlist = create_list(**validator(request))
>   File "/usr/lib/python3/dist-packages/mailman/app/lifecycle.py", line
> 100, in create_list
>     call_name(config.mta.incoming).create(mlist)
>   File "/usr/lib/python3/dist-packages/mailman/mta/postfix.py", line
> 66, in create
>     self.regenerate()
>   File "/usr/lib/python3/dist-packages/mailman/mta/postfix.py", line
> 103, in regenerate
>     raise RuntimeError(NL.join(errors))
> RuntimeError: command failure: /usr/sbin/postmap
> /var/lib/mailman3/data/postfix_lmtp, 127, Key has expired
> command failure: /usr/sbin/postmap
> /var/lib/mailman3/data/postfix_domains, 127, Key has expired
> Mar 01 21:34:02 2018 (11537) 127.0.0.1 - - "POST /3.0/lists HTTP/1.1"
> 500 59
> ```
> 
> This means that it tries to create postfix aliases but postfix is not
> installed. /usr/sbin/postmap does not exist.
> 
> A workaround is to create that file (empty) with execute permissions.
> A proper fix would be that
> /usr/lib/python3/dist-packages/mailman/mta/postfix.py
> will not be called in the first place.

Hi,

I think you should have a look at
http://docs.mailman3.org/en/latest/config-core.html#configuring-mta

Postfix is the default MTA when none is specified, thus the behaviour you
observe.

Change your configuration files and this should be gone. (think about
removing the empty file, as it's not needed)

Come back at us if this doesn't solve your issue.

-- 
Pierre-Elliott Bécue
GPG: 9AE0 4D98 6400 E3B6 7528  F493 0D44 2664 1949 74E2
It's far easier to fight for one's principles than to live up to them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mailman-hackers/attachments/20180302/4c959216/attachment.sig>


More information about the Pkg-mailman-hackers mailing list