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

The main user account for a web server (domain@domain.com) is not used for email at all, but receives a lot of spam. I'd like these messages to just :fail:. I've tried adding a .forward file for the account with ":fail:" in it and emails to the account are bouncing instead of failing. The email is processed by the server instead of being rejected at the SMTP negotiation. I can confirm that this rejection works as it should if you try to email a fully non-existent user (no-account-here@domain.com)

Is there a way, I can get email to the main account to fail at the SMTP negotiation? We are using Linux with a DirectAdmin install and Exim.

Thank you for your time.

share|improve this question

closed as off-topic by HopelessN00b Apr 9 at 13:37

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 1 down vote accepted

I don't known how DirectAdmin manages the exim configuration, but it should be easy to modify the configuration to drop all emails to domain@domain.com with an ACL like:

acl_check_rcpt:
  . . . 
  drop
    log_message = matches domain@domain.com
    recipients = /etc/exim4/filters/recipients_drop.list
  . . .

and then put domain@domain.com (and, if needed, others addresses which should not receive mail) into the file /etc/exim4/filters/recipients_drop.list

share|improve this answer
    
Thank you, this worked perfectly. –  user955664 Feb 20 '12 at 17:44

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