i have an exim/spamassassin/clamav email relay running in front of my exchange 2010 server.
so mail is routed through this relay server and forwarded to my exchange server using remote_smtp transport in 200_exim4-config_primary
i have these two problems:
1. if someone sends a mail to firstname.lastname@example.org from email@example.com and firstname.lastname@example.org does not exisit, the mail goes into a mailloop
there should be an easy way to block this using an acl like mail from external with local senderdomain is denied.
2. i want to use a textfile on the relay to enter valid local recipients (like email@example.com, firstname.lastname@example.org) there. mails to local recipients not in this list should be rejected as early in the smtp communication as possible