Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Exclude domains in sendmail configuration

20 views
Skip to first unread message

Patrick Fischer

unread,
Aug 15, 1996, 3:00:00 AM8/15/96
to

Is it possible to configure sendmail via sendmail.cf to exclude
certain domains sending mail to my host ?
Every mail from some...@exclude.domain to some...@myhost.domain
should be redirected to the postmaster of my host.

Regrads

Patrick Fischer
Technical Director

DOLPHINS NETWORK SYSTEMS Schmittengasse 3
CH-8112 Otelfingen
http://www.dolphins.ch Tel. : ++41 (0) 1 884 63 41
Fax : ++41 (0) 1 884 63 49
Mail : Patrick...@dolphins.ch

Patrick Fischer

unread,
Aug 16, 1996, 3:00:00 AM8/16/96
to

In article <4uuqe...@svstch.ubs.ch>, Patrick...@ubs.ch says...

>
>Is it possible to configure sendmail via sendmail.cf to exclude
>certain domains sending mail to my host ?
>Every mail from some...@exclude.domain to some...@myhost.domain
>should be redirected to the postmaster of my host.

I just noticed that banning domains is a FAQ. I couldn't find an answer how to
redirect mails from banned domains to the local postmaster.
I do banning in ruleset S98 like:

R$* < @$*$=K . > $* $#error $@ 5.7.1 $: "This domain is banned."
R$* < @$*$=K > $* $#error $@ 5.7.1 $: "This domain is banned."

And I define a class K by:
FK /etc/banned.domains

Any help on redirecting these mails from banned domains to the local
postmaster or some other local user would be welcome.

Regards

Patrik

unread,
Aug 16, 1996, 3:00:00 AM8/16/96
to

Patrick Fischer wrote:
>
> Is it possible to configure sendmail via sendmail.cf to exclude
> certain domains sending mail to my host ?
> Every mail from some...@exclude.domain to some...@myhost.domain
> should be redirected to the postmaster of my host.
>

You could use virtualdomainhandling to achieve what you want.
Virtualdomains let you redirect mail on a domain index basis or even
user@domain basis. What you do is use domain- and mailertable. Get all
info you can get about virtualdomains and apply it.

Regards

//Patrik
d...@akilles.gd.gu.se

Brad Knowles

unread,
Aug 17, 1996, 3:00:00 AM8/17/96
to

In article <4v1ac...@svstch.ubs.ch>, Patrick...@ubs.com (Patrick
Fischer) wrote:

> I just noticed that banning domains is a FAQ. I couldn't find an answer
how to
> redirect mails from banned domains to the local postmaster.
> I do banning in ruleset S98 like:
>
> R$* < @$*$=K . > $* $#error $@ 5.7.1 $: "This domain is banned."
> R$* < @$*$=K > $* $#error $@ 5.7.1 $: "This domain is banned."
>
> And I define a class K by:
> FK /etc/banned.domains

Guess what -- this only works on the envelope sender, and that's only
used to determine what address you're supposed to attempt to bounce mail
back to if there's some problem in the future.

This quickly falls to a dictionary-based attack where words are
randomly chosen and stuffed into the envelope sender (which the other end
can presumably completely control).


Back to the drawing board.
--
Brad Knowles, MIME/PGP: br...@his.com
comp.mail.sendmail FAQ Maintainer <http://www.his.com/~brad/>
finger br...@his.com for my PGP Public Keys and Geek Code
The comp.mail.sendmail FAQ is at <http://www.his.com/~brad/sendmail/>

0 new messages