block connections from dial in accounts

This is a discussion on block connections from dial in accounts within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hi everybody, how to block connections from dial-in accounts? When I read the documentation I only find the following: ---...


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 11-28-2004
Sven Putze
 
Posts: n/a
Default block connections from dial in accounts

Hi everybody,

how to block connections from dial-in accounts?

When I read the documentation I only find the following:


---snipp---

"It is relatively safe to turn on sender address verification for specific
domains that often appear in forged email.

/etc/postfix/main.cf:
smtpd_sender_restrictions = hash:/etc/postfix/sender_access
unverified_sender_reject_code = 550
# Note 1: Be sure to read the "Caching" section below!
# Note 2: Avoid hash files here. Use btree instead.
address_verify_map = btree:/var/mta/verify

/etc/postfix/sender_access:
aol.com reject_unverified_sender
hotmail.com reject_unverified_sender
bigfoot.com reject_unverified_sender
... etcetera ..."

--- snapp ---

My interpretaion is that the above mentioned mechanism "only" works for the
MAIL FROM directive.

This is usefull of course but I want to deny all mails from dial-in accounts
(when they are not allready verified users) to stop incoming worms, viruses
etc.
OK, this wouldn't prevent me from all the rubbish sent by "real" mail
servers but it would help a lot.

--
with kind regards

Sven Putze
http://my-bluetooth.de
-------------------------------------------------------------------
If liberty means anything at all, it means the right to tell people
what they do not want to hear. (George Orwell)
Who controls the past controls the future. Who controls the present
controls the past. (George Orwell)
-------------------------------------------------------------------


Reply With Quote
  #2 (permalink)  
Old 12-01-2004
Manuel
 
Posts: n/a
Default Re: block connections from dial in accounts

Sven Putze ha scritto:
[cut...]
> I want to deny all mails from dial-in accounts


....and I don't know how...

> (when they are not allready verified users) to stop incoming worms, viruses...


OK, if you want to avoid viruses infections on windows clients, you can
use procmail;
You have to write this recepie in your .procmailrc to delete immediately
every message with .exe .com .pif .bat .scr .vbs attachments, often
infected by viruses.

:0 HB
* ^Content-Type:.*(application|multipart)
* name=.*\.(exe|com|bat|pif|scr|vbs)
/dev/null

bye,
Manuel


Reply With Quote
  #3 (permalink)  
Old 12-04-2004
Sven Putze
 
Posts: n/a
Default Re: block connections from dial in accounts

> OK, if you want to avoid viruses infections on windows clients, you can
> use procmail;
> You have to write this recepie in your .procmailrc to delete immediately
> every message with .exe .com .pif .bat .scr .vbs attachments, often
> infected by viruses.


Thanx, but I allready knew that one. My intention is to close the door
before the mail gets queued.



Regards
Sven


Reply With Quote
  #4 (permalink)  
Old 12-04-2004
Michael Holtermann
 
Posts: n/a
Default Re: block connections from dial in accounts

Hi Sven!

Sven Putze wrote:
> how to block connections from dial-in accounts?


There are several lines in my config that avoids me from many UBEs, see
below.

You may like to check wether the RBLs are suitable for your needs, many RBLs
are very restrictive.

Two links:
http://www.bez.tedesca.net/homeoff/a...tml#Spamfilter (German)
http://www.stahl.bau.tu-bs.de/~hildeb/postfix/

Greetings, Michael.


#delivery controls - UCE blocking
unknown_local_recipient_reject_code = 550
unknown_hostname_reject_code = 550
unknown_address_reject_code = 550
unverified_sender_reject_code = 550
smtpd_helo_required = yes
smtpd_helo_restrictions =
permit_mynetworks,
reject_invalid_hostname,
reject_non_fqdn_hostname,
permit
smtpd_sender_restrictions =
permit_mynetworks,
reject_unknown_sender_domain,
reject_rhsbl_sender rhsbl.sorbs.net,
permit
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unknown_recipient_domain,
reject_unauth_destination,
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
permit
smtpd_client_restrictions =
reject_invalid_hostname,
reject_rbl_client xbl.spamhaus.org,
reject_rbl_client sbl.spamhaus.org,
reject_rbl_client relays.ordb.org,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client dul.dnsbl.sorbs.net,
permit

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 01:41 AM.


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