Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jan 2008
Postfix relay_domains problem VS Spam
I've got a configuration issue with Postfix. Hope you can help me.
We have many websites on the Internet (say mycompanie.com, a.com, b.com, c.com and d.com). We also have different emails with those domains, so users can contact the admin on each of them (say email@example.com, firstname.lastname@example.org, email@example.com, firstname.lastname@example.org and email@example.com).
Postfix is configured to accept mail from any domain listed in the "relay_domains" parameter. So, mycompanie.com, a.com, b.com, c.com and d.com are in. When i try to send an email to firstname.lastname@example.org, it goes through (and it's perfect). When i try email@example.com, it doesn't take it (and it's still perfect, since admin123 is not a local user and is not in the alias table). When i try firstname.lastname@example.org, it goes through (and it's ok, since email@example.com, firstname.lastname@example.org, email@example.com, firstname.lastname@example.org, are aliases to, say, email@example.com).
BUT when i try firstname.lastname@example.org, or email@example.com it also accept it. firstname.lastname@example.org is not a local user, nor an alias... So the email comes in, Postfix processes it, and bounce it back to the sender... Usually, it is spam, so it would be much better to stop it right on the front door.
THE QUESTION: How can i always check if the destination user exists, and if not, break the connection?
Here is my "local_recipient_maps" parameter
local_recipient_maps = proxy:unixasswd.byname $alias_maps