I am having problems with the Postfix mail server being used for backscattering, I have tried the suggestions in the manual but nothing seems to work. Does anyone know how we can reject any mail from entering the queue if the recipient doesn't match a local recipient rather than send bounce emails? I'm assuming it should be a fairly straight forward change in the configuration files. Just to note I am using Webmin/Virtualmin on the server.

link|improve this question
feedback

migrated from stackoverflow.com Mar 15 '11 at 22:23

This question came from our site for professional and enthusiast programmers.

1 Answer

# Set this because this causes local postfix to generate a 550 reject
# response to the SMTP server that initiated the connection
# rather than sending a bounce email to a likely bogus address
unknown_local_recipient_reject_code = 550

local_recipient_maps  = $virtual_mailbox_maps
link|improve this answer
I have added both of the above lines to main.cf configuration and yet this doesn't seem to solve the problem. My virtual_mailbox_maps is set to:virtual_mailbox_maps = hash:/etc/postfix/virtual The map file is in the format: username@domain.co.uk username-domain.co.uk – Must Do Better Mar 16 '11 at 9:22
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.