[Mimedefang] Rejecting some recipients

Les Mikesell les at futuresource.com
Thu Sep 15 18:22:17 EDT 2005


On Thu, 2005-09-15 at 17:00, Jeff Grossman wrote:

> Sorry for the run on message before.  I have MIMEDefang set up with the
> md_check_against_smtp_server setting.  So, it checks my server first to see
> if the address is valid or not.  So, do you think it is still a problem with
> just putting the addresses I want to reject in the access database?  The
> reason I would prefer that method is because the list of rejections is much
> smaller than the accept list, and the reject list does not change like the
> accept list does.
> 
> One more question.  If my method will work, I want to put the rejections
> first in the list and then the global one to accept after those, correct?

Yes, you can add rejections and it will happen efficiently before
handing to MD or doing much other work.  I don't think the order
matters.  This should be a dbm type lookup where the most specific
match wins.  You can also specify the error code and messages with
this syntax:
To:olduser at mydomain.com  ERROR:550 user unknown

Don't forget to rebuild the dbm.  With RedHat based systems there
there is a convenient Makefile so you just run 'make' in the
/etc/mail directory after changing the text versions.

The worst problem with burying stuff like that is that when
olduser decides to come back you may forget why his mail won't
work from outside.

-- 
  Les Mikesell
    les at futuresource.com





More information about the MIMEDefang mailing list