Can sendmail do this somehow ?
Gary
Spamassassin, which can be integrated into sendmail, has a whitelist.
George
--
#
#...
Probably explained thids badly. I only want to forward mail to a domain
(SMTP Gateway) if they are valid users of that domain. The whitelist
referenced above seems to say anyone from xyz domain is allowed to send to
one of my domains or accounts.
For instance only gary and john exist at xyz.com so an e-mail to
fr...@xyz.com should be rejected. One client is being bombarded with e-mails
to people that do not exist in their company and we need to stop these
before they even reach the clients gateway.
Gary
You can put the valid addresses in virtusertable, and bounce the rest:
@xyz.com ERROR:5.1.1:550 User unknown
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
Perhaps following
http://groups.google.fi/groups?selm=5d1xgyzbc4.fsf_-_%40attruh.keh.iki.fi
Rulesets quoted on here.
/usr/local/mail/tables/valid.domain is list of forwarded
domains to be checked
/usr/local/mail/tables/valid is database (format:
address OK )
====================
dnl # is CommungatePro mailbox separator
define(`confOPERATORS',confOPERATORS`\#')
LOCAL_CONFIG
Kvalid hash /usr/local/mail/tables/valid
C{valid}Postmaster
F{vdomain}/usr/local/mail/tables/valid.domain
LOCAL_RULE_0
R $* <@$={vdomain}.> $1 <@ $2 . > $| $(valid $1@$2 $: BAD $) < ${opMode} >
R $={valid} <@ $* .> $| $* <$-> $1 <@ $2 .> # short circuit check if local part on $={valid}
R $* <@ $* .> $| $* <i> $1 <@ $2 .> # No check when building alias
R $* <@ $* .> $| BAD <$-> $: $1 <@ $2 .> $| $>CheckAddr1 $1 <@ $2 .>
R $* <@ $* .> $| BAD <$-> $#error $@ nouser $: "550 Sorry, user " $1 " do not found from " $2 " -dictionary"
R $* <@ $* .> $| $* $1 <@ $2 .> # Cleanup
LOCAL_RULESETS
SCheckAddr1
R $+ + $* <@ $* .> $@ $(valid $1@$3 $: BAD $) < ${opMode} > # If user+detail return status without detail
R $* \# $+ <@ $* .> $@ $(valid $2@$3 $: BAD $) < ${opMode} > # If mailbox#user return status without mailbox
R $* $@ BAD < ${opMode} > # Otherwise status is bad
/ Kari Hurtta