I have a handful of system users having each one a company email address, handled by postfix. Every week, we send a status email to keep everyone up to date with current developments. Until now, this was only a few people, so it was ok to write their addresses as cc.
Now that company begins to grow, I would like to setup a virtual address for which I can add new aliases in a list, so that we can, for example, mail
email@example.com to mail everybody.
I would rather not set up a mailing list system like mailman for that, because :
- it's a bit overkilled
- it's a minor feature. That means that, in the long run, I will probably not pay much attention to update and inspect a mailing software - and such a low priority service with a public facing interface is the perfect recipe to have a vulnerable server.
So, my first thought was to use
virtual_map and add everyone in the virtual hash for this address :
# main.cf virtual_alias_maps = hash:/etc/postfix/virtual # virtual firstname.lastname@example.org email@example.com, firstname.lastname@example.org, # etc
It works pretty well, except for one annoying issue : if
user1 send a mail to
updates, he receives a copy of that mail.
I've read a post on linux gazette presenting such a method and recommanding to use alias database. I've tried to implement that, but had the exact same problem.
Maybe worth noting, users usual mail addresses are already aliases, so that everyone can use his first name in mail address while still preventing bruteforces to be too easy, so my alias table looks something like that :
john: john.Ed2 robert: robertFoo alicia: alicia_bar
I've searched for a postfix setting that would prevent sender to receive mail, but can't find any. Does such a setting exist ?
If not, what would be the simplest way you go to implement internal mailing list ?