On Tue, 28 Nov 2006, Richard Frovarp wrote:
> Steven W. Orr wrote:
> > Here's the game. I host my own domain on my own machine off the
> > not support this; i.e., it can only reject mail *to* an address that
> > doesn't exist.
> >
> > Is there a way to do this?
> >
>
> Sendmail can reject based off of from. You said in another post you'd be
> willing to list out your addresses. It would seem to me that this should
> work in the access file:
>
> From:[EMAIL PROTECTED] OK
> From:[EMAIL PROTECTED] OK
> From:[EMAIL PROTECTED] OK
> From:[EMAIL PROTECTED] OK
> From:syslang.net REJECT
Yes, the sendmail 'access_db' feature is the way to do this.
First make sure that your 'cf' has enabled that feature if not
put the line:
FEATURE(access_db)
in your sendmail.mc file and rebuild your '.cf'.
Create the text file "/etc/mail/access" with the above contents
and then create the binary '.db' file via the command:
makemap hash /etc/mail/access < /etc/mail/access
Note that you will also need to add the 'system' type message
sources to that list (EG '[EMAIL PROTECTED]' & '[EMAIL PROTECTED]')
because that 'From:syslang.net REJECT' is a catch-all reject
that will reject anything of the form [EMAIL PROTECTED] which
has not been explicitly allowed.
--
Dave Funk University of Iowa
<dbfunk (at) engineering.uiowa.edu> College of Engineering
319/335-5751 FAX: 319/384-0549 1256 Seamans Center
Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{