Sora.
Sora.

Reputation: 1475

Incoming domain aliases for GNU Mailman (how to make Mailman recognize [email protected] as [email protected])

I am running a mail server with Postfix and Mailman and there's a problem: all users of a certain non-public mailing list are students of John Doe University and use

[email protected]

as their mail address. However, the university has a second domain jdu.example and depending on the configuration of the students' mail client, the sender field in outgoing e-mails might also contain

[email protected].

For those people this means that Mailman won't accept their postings because they're subscribed using the long version of their mail address but trying to post using the short version.

Obviously, adding duplicates to the subscriber list would not be an option since everyone would get the postings twice then. How can I configure either Mailman or Postfix to avoid this problem?

Upvotes: 0

Views: 321

Answers (1)

Sora.
Sora.

Reputation: 1475

Thanks to larsks's comment, the problem is now resolved - the key was reconfiguring Postfix, not Mailman. Adding

canonical_maps = regexp:/etc/postfix/canonical
local_header_rewrite_clients = static:all

to main.cf and creating /etc/postfix/canonical with

/(.*)@jdu.example/ ${1}@john-doe-university.example

did the trick.


I know I posted to the wrong site, I meant to post this to Server Fault but didn't notice I was in the wrong tab, but I'm going to leave this here in case someone googles the same question and finds it useful.

Upvotes: 0

Related Questions