Rejecting mail from unwanted senders

This is a discussion on Rejecting mail from unwanted senders within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hi Is there a way I can reject email from complete domains? For instance I have no legitimate need to ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-03-2004
Tony Hogarty
 
Posts: n/a
Default Rejecting mail from unwanted senders

Hi

Is there a way I can reject email from complete domains? For instance I
have no legitimate need to accept mail from anybody from Taiwan or Korea so
I would like to reject email from anybody in the .kr or .tw domains. Can
this be done with Postfix?
--
Take out the garbage to reply

Regards
Tony Hogarty
Reply With Quote
  #2 (permalink)  
Old 02-05-2004
Clemens Fischer
 
Posts: n/a
Default Re: Rejecting mail from unwanted senders

* Tony Hogarty:

> I would like to reject email from anybody in the .kr or .tw domains.


there are RBL servers listing entire country IP ranges. the problem
with them is up-to-date-ness, of course.

> Take out the garbage to reply


take it out yourself :)

clemens
Reply With Quote
  #3 (permalink)  
Old 02-08-2004
Evan
 
Posts: n/a
Default Re: Rejecting mail from unwanted senders


"Clemens Fischer" <ino-qc@spotteswoode.dnsalias.org> wrote in message
news:brodlbhw.fsf@ID-23066.news.dfncis.de...
> * Tony Hogarty:
>
> > I would like to reject email from anybody in the .kr or .tw domains.

>
> there are RBL servers listing entire country IP ranges. the problem
> with them is up-to-date-ness, of course.
>
> > Take out the garbage to reply

>
> take it out yourself :)
>
> clemens




Hi,

This is what I use in my Posfix config to kill spam. This along with
SpamAssassin and header/body/mime checks blocks around 90% of all SPAM:

smtpd_recipient_restrictions =
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
reject_unauth_destination,
permit_mynetworks,
check_recipient_access hash:/usr/local/etc/postfix/access,
check_sender_access hash:/usr/local/etc/postfix/access,
check_client_access hash:/usr/local/etc/postfix/access,
reject_rhsbl_client blackhole.securitysage.com,
reject_rhsbl_sender blackhole.securitysage.com,
reject_rhsbl_recipient blackhole.securitysage.com,
reject_rbl_client relays.ordb.org,
reject_rbl_client list.dsbl.org,
reject_rbl_client sbl.spamhaus.org,
reject_rbl_client blackholes.easynet.nl,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client proxies.relays.monkeys.com,
permit


Along with the rbl's the key file here to block individual domains is the
access file.
In the access file put something like:
tw REJECT
@kr REJECT
test@test.com REJECT
Then issue postmap access to make hash and then postfix reload.
To use mime/body and header blocking check out this site which a excellent
resource
http://www.securitysage.com/guides/postfix_uce.html

Cheers
Evan


Reply With Quote
  #4 (permalink)  
Old 02-09-2004
Tony Hogarty
 
Posts: n/a
Default Re: Rejecting mail from unwanted senders

Evan wrote:

>
> "Clemens Fischer" <ino-qc@spotteswoode.dnsalias.org> wrote in message
> news:brodlbhw.fsf@ID-23066.news.dfncis.de...
>> * Tony Hogarty:
>>
>> > I would like to reject email from anybody in the .kr or .tw domains.

>>
>> there are RBL servers listing entire country IP ranges. the problem
>> with them is up-to-date-ness, of course.
>>
>> > Take out the garbage to reply

>>
>> take it out yourself :)
>>
>> clemens

>
>
>
> Hi,
>
> This is what I use in my Posfix config to kill spam. This along with
> SpamAssassin and header/body/mime checks blocks around 90% of all SPAM:
>
> smtpd_recipient_restrictions =
> reject_invalid_hostname,
> reject_non_fqdn_sender,
> reject_non_fqdn_recipient,
> reject_unknown_sender_domain,
> reject_unknown_recipient_domain,
> reject_unauth_pipelining,
> reject_unauth_destination,
> permit_mynetworks,
> check_recipient_access hash:/usr/local/etc/postfix/access,
> check_sender_access hash:/usr/local/etc/postfix/access,
> check_client_access hash:/usr/local/etc/postfix/access,
> reject_rhsbl_client blackhole.securitysage.com,
> reject_rhsbl_sender blackhole.securitysage.com,
> reject_rhsbl_recipient blackhole.securitysage.com,
> reject_rbl_client relays.ordb.org,
> reject_rbl_client list.dsbl.org,
> reject_rbl_client sbl.spamhaus.org,
> reject_rbl_client blackholes.easynet.nl,
> reject_rbl_client cbl.abuseat.org,
> reject_rbl_client bl.spamcop.net,
> reject_rbl_client proxies.relays.monkeys.com,
> permit
>
>
> Along with the rbl's the key file here to block individual domains is the
> access file.
> In the access file put something like:
> tw REJECT
> @kr REJECT
> test@test.com REJECT
> Then issue postmap access to make hash and then postfix reload.
> To use mime/body and header blocking check out this site which a excellent
> resource
> http://www.securitysage.com/guides/postfix_uce.html
>
> Cheers
> Evan


Thanks Evan I'll try these.
--
Take out the garbage to reply

Regards
Tony Hogarty
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:58 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0