On 07/05/17 17:12, BlackIce_ wrote: > Lately I have been getting SPAM mails that mimic our typical adress > (i.e. user@domain) Ideally, the postfix server should only accept mail > from ACTUAL users (or aliases to users) on the server. > > Is there a config change that can accomplish this easily? Seems like > it should be the default. > > If the user does not exist, do not accept mail from them regardless of > domain. > > Thanks, > > Rick >
I am not sure that it would scale very well, but I use a file called "valid_users": valid_users: [email protected] DUNNO ... etc [email protected] DUNNO [email protected] DUNNO ... etc example.com REJECT Invalid address and in main.cf: check_sender_access hash:/etc/postfix/valid_users, check_recipient_access hash:/etc/postfix/valid_users, It is VERY effective on my "toy" server; if you could automate the creation of the valid_user file, it might just work for you. Regards Allen C
