From: urgrue <urgrue@tumsan.fi>
To: admin <linux-admin@vger.kernel.org>
Subject: Re: Blocking mail from certain domains....
Date: Fri, 10 Oct 2003 11:56:57 +0300 [thread overview]
Message-ID: <20031010085657.GC11645@fede2.tumsan.fi> (raw)
In-Reply-To: <Pine.LNX.4.44.0310101209230.31094-100000@tux.NIISI>; from tovbin@niisi.msk.ru on Fri, Oct 10, 2003 at 11:15:47 +0300
i think its even easier to just put:
bad_domain.com REJECT
in your access table. this is usually /etc/mail/access.
you may need to hash that table:
makemap hash /etc/mail/access.db < /etc/mail/access
but i am under the impression that most sendmails these days are
configured to hash tables on start, so it may be sufficient to just
restart sendmail.
On 2003.10.10 11:15, Tommy Tovbin wrote:
> On Fri, 10 Oct 2003, Daniel W wrote:
>
> > although a bit more tricky than that perhaps.
> >
> >
> > Say i own domain1.com and domain2.com
> >
> > My users on each domain are getting emails from admin@domain1.com
> and
> > admin@domain2.com which are viruses but actually quite believeable.
> these
> > originate outside of my server but from various IP addresses.
> >
> > Is there some way to make a rule:
> >
> > Block all email from admin@*
> > where the sending IP is not [list of ip addresses that I own]
> >
> >
> > Where would I put this rule and how would it be activated? I think i
> have
> > procmail...or am i barking up the wrong tree?
> If you have procmail, you can do it like this:
>
> in .procmailrc or in global procmailrc put the next rules:
> :0 :
> * ^From: admin@*
> <folder-where-u-want-save-these-messages> or /dev/null
>
> by the way, see http://piology.org/.procmailrc.html or google.com+
> .procmailrc
>
> >
> > Thanks for helping this newbie.
> >
> > Regards,
> > Daniel
> >
> >
> >
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe
> linux-admin" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
>
> --
> "This is UNIX country. //=\ Tommy Tovbin
> if you listen carefully, \=//
> you can hear //=\ tovbin at niisi dot msk dot ru
> Windows reboot..." \=// http://m1.sm.bmstu.ru
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-
> admin"
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
next prev parent reply other threads:[~2003-10-10 8:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-09 23:42 Blocking mail from certain domains Daniel W
2003-10-10 8:15 ` Tommy Tovbin
2003-10-10 8:56 ` urgrue [this message]
2003-10-10 11:06 ` Sven Pfeifer
2003-10-10 16:20 ` Joakim Ryden
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031010085657.GC11645@fede2.tumsan.fi \
--to=urgrue@tumsan.fi \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).