Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I discovered that my postfix/dovecot configuration isn't rejecting emails. If a person sends an email to an invalid email-address, it just drops it. I am fine with this behavior since I think it discourages spammers from mining emails (I have had some success). Recently a person I did not want to talk to emailed an address I cut off and didn't receive a response back. It would have saved me some problems if they knew to call me instead of sending 50+ emails. How would I configure Dovecot/postfix to send a message back to a sender of an email address and then limit this 1 per domain or unique email.

Debian Stable

Linux 3.6.5-linode47

Dovecot 1.2.15

Postfix 2.7.1

PSQL - backend if that matters

share|improve this question
    
I didn't get your configuration. Probably because you didn't provide one. Your solution - as far as I understood it - is to disable catch-all. Dropping mail does not discourage spammers. Instead it encourage them to send you more. –  mailq Dec 9 '12 at 20:20
    
<Quote>I didn't get your configuration. Probably because you didn't provide one.</Quote>This was unnecessary, which files would you like and I will love to post them for you. I am not looking to disable catch-all since I like this behavior. I am trying to add a one time exception. They do send me more spam because of this, but it contained in one email instead of me having to deal with a common name attack where I get alice@mydomain.com, andy@mydomain.com, annie@mydomain.com –  user148760 Dec 9 '12 at 20:36
add comment

1 Answer

up vote 1 down vote accepted

This is not possible with Postfix out-of-the-box. Because this is a too localized and very uncommon setup. Probably you want "Greylisting" and you didn't told us. This on the other hand is very common and you can find many implementations for Postfix out here.

If you really want to do this one-time-reject (not defer, because this would be greylisting), then you have to develop a new solution yourself. See the SMTP Access Policy Delegation documentation for that.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.