[Mailman-Developers] Re: GSoC 2021 ideas

2021-01-05 Thread Hans-Martin Mosner
Am 04.01.21 um 21:49 schrieb Terri Oda:
> Happy new year everyone! 

Happy new year, too!

I've been working on installing mailman3 in several environments where postfix 
integration is a bit tricky (mailman
server is different from postfix mail server, we're using docker in one case) 
so the handling of lookup maps via files
is a pain. On one installation I had to rsync generated maps from the mailman 
machine to the mail sever, on the other
one I'm still struggling to understand why postfix won't open the NFS-shared 
files having mode 0660 even though uid matches.

So my GSoC proposal is: Provide postfix_domains, postfix_lmtp, postfix_vmap 
access using the socketmap interface.

Socketmap (http://www.postfix.org/socketmap_table.5.html) is one way of 
providing maps to Postfix without sharing files.
Writing a socketmap server should be easy enough but could be very helpful for 
multi-server setups.

Cheers,
Hans-Martin
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9


[Mailman-Developers] Re: Mailman, postfix and docker

2020-12-19 Thread Hans-Martin Mosner
Am 18.12.20 um 18:49 schrieb costavitor...@gmail.com:
> So, my questions are:
> - Is there a way to share aliases db between containers(different hosts) of 
> mailman and postfix? I thought about sharing volumes but I'm not quite sure 
> if it's the best solution
It is possible to share volumes between containers (or preferably use a host 
directory that's mounted into both
containers). You need to be careful with userid issues, though, if you're 
running the processes within the containers as
non-root users.
>
> - I've seen:
>  virtual_alias_maps = mysql:/etc/postfix/virtual/existing_aliases.cf, 
> var/lib/mailman/data/virtual-mailman
>   to add in postfix main.cf. Is it possible to do the same thing to aliases 
> and transport_maps? And if so, how to set it in mailman configuration, 
> because this is for mailman

As Mark already wrote, Mailman3 uses LMTP, but you still need to share the 
transport map created by Mailman3 with
postfix. With 2 containers having access to the same shared filesystem (either 
running on the same docker host, or using
a network filesystem when you've got a cluster) it is pretty straightforward.

In a configuration where Mailman3 and Postfix are running on separate hosts, I 
have used the Mailman3 "postmap-command"
option in var/etc/postfix-mailman.cfg to call a shell script which first runs 
postmap and then copies the map to the
postfix host. That works well enough, but it took some time experimenting with 
several options. You need to set the
lmtp_host and lmtp_port options in mailman.cfg to point to the container 
running Mailman3. If you expose the container
LMTP port to the docker host, it might be easier, but it's likely safer to keep 
the inter-container communication really
internal.

We're currently working on moving our mail system over to a "mailu" dockerized 
implementation, so I will gather some
experience in connecting Mailman3 with a dockerized postfix.

Cheers,
Hans-Martin
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9


[Mailman-Developers] Re: Working towards a hassle-free Docker deployment

2020-08-30 Thread Hans-Martin Mosner
Just to keep anyone looking at this up-to-date:

I've settled for option 2 (installing from source) and fixed the separate-host 
problem by implementing an ersatz postmap
script which calls postmap and then uses rsync to copy the files to the mail 
host:

#!/bin/bash
# in addition to running postmap, copy the files to our mail server

/usr/sbin/postmap $1
rsync -a $1 $1.db mail.heeg.de::postfix-mailman3/

Of course this requires setting up an entry in /etc/rsyncd.conf  but then it 
works reasonably well.

The socketmap service is still something I'd like to tackle when I have time.

Cheers,
Hans-Martin

___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9


[Mailman-Developers] Working towards a hassle-free Docker deployment

2020-08-07 Thread Hans-Martin Mosner
Hello,

due to the need to modernize our Mailman installation, I want to switch two 
installations to Mailman3.

My options currently seem to be:

  * Install from distro repository (Ubunut 20.04) - they only have Version 
3.2.2, which does not play well with the
Python version 3.8.2 that's also in the repository :-(
  * Install from sources - not really difficult, but I fear that regular 
updating might be a bit of a hassle, and
integration into the system as a service needs a bit of manual work :-(
  * Run the Docker images created by maxking, which would probably be the most 
painless option for one of the sites, but
there's still a caveat :-(

One problem which is present in all 3 cases is that the mailman server (or 
container) is not on the same machine as
Postfix. For mail input and output that's not a problem since Mailman speaks 
LMTP and SMTP, but sharing the Postfix maps
between machines is a bit tricky. NFS should theoretically work, but getting 
all permissions right is not trivial. This
is somewhat more pressing in Docker where I don't even have control over the 
UID running Mailman inside the container.

Therefore I would like to add a socketmap service to Mailman that Postfix can 
query to get map information. Since this
idea is probably not totally original I'd like to ask on this list whether 
someone already tried such a thing, and what
their experiences were.

Cheers,
Hans-Martin

___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9


Re: [Mailman-Developers] creating a list of moderators

2006-01-11 Thread Hans-Martin Mosner
David Benson wrote:

Hi,
 
I'm a site administrator and I'd like to be able to automatically compile a
list of 'list moderators' so that I can send them all announcements.  I
can't find a way to do this in the current version, and I saw similar
functionality being requested on the 'wishlist', so I assume that it has yet
to be implemented.
  

It's already mostly there: The command list_owners -m prints all 
owners and moderators of all mailing lists on your machine.
Getting these into a mailing list should not be that hard...

Cheers,
Hans-Martin
___
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp