[Mailman-Users] Mailman integration with Google Groups: allowGroups Subscribers post directly

Mark Sapiro mark at msapiro.net
Tue Mar 29 08:49:00 CEST 2011

anatoly techtonik wrote:
>- how can I setup Mailman, so it can accept mails sent through Google
>Groups proxy automatically? -

The envelope sender of a google groups post is
<group_name+some_token at googlegroups.com>. If that address were a
member of the mailman list with no password reminders and no mail
delivery, the posts would be accepted as member posts. The problem is
the +some_token suffix to the local part of the address. The
Mailman.Message.get_senders() method doesn't treat +some_token as a
suffix and since it is variable, it is not possible to subscribe all
the possible<group_name+some_token at googlegroups.com> addresses to the

Thus you are left with a couple of other options. If the Google group
is set to include a Reply-To: <group_name at googlegroups.com> header in
delivered posts, and if <group_name at googlegroups.com> is a member of
the mailman list (with no password reminders and no mail delivery),
Mailman.Message.get_senders() will return that address in the senders
list and Mailman will consider the post from a member.

Even if the Google group is not set to include a Reply-To:, it still
includes an X-BeenThere: group_name at googlegroups.com header. If you add

SENDER_HEADERS = ('from', None, 'reply-to', 'sender', 'x-beenthere')

to mm_cfg.py, Mailman.Message.get_senders() will consider the address
in X-BeenThere: as well as the addresses in From:, the unix from,
Reply-To: and Sender: as senders which will be checked against the
list membership.

So, if you add <group_name at googlegroups.com> as a member of the mailman
list (with no password reminders and no mail delivery), and either set
the google group "Replies to messages"  to "Replies are sent to the
whole group" or add the above SENDER_HEADERS line to mm_cfg.py, posts
arriving via the group will be seen as member posts.

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list