Difference between pages "Fight spam" and "Greylisting"

From Linuxintro
(Difference between pages)
 
imported>ThorstenStaerk
(New page: There are different tools for greylisting. = Postgrey = Postgrey is greyListing software for the postfix MTA. == How to get it == Download postgrey from http://postgrey....)
 
Line 1: Line 1:
= You do not want to receive spam =
+
There are different tools for greylisting.
* [[Greylisting]]
 
  
= You do not want to accidentially be a spammer =
+
= Postgrey =
 +
Postgrey is [[greyListing]] [[software]] for the [[postfix]] [[MTA]].
  
== Relay testing ==
+
== How to get it ==
  
=== Web site ===
+
Download postgrey from http://postgrey.schweikert.ch/
* http://www.abuse.net/relay.html
 
  
=== Do it yourself ===
+
== How to set it up ==
  telnet ''servername'' 25
+
 
  ehlo ''domain''
+
* [[Extract]] your [[postgrey]] [[package]]
mail from:''user@domain''
+
* Copy postgrey_whitelist_clients to /etc/postfix/
rcpt to:''other-user@other-domain''
+
* Copy postgrey_whitelist_recipients to /etc/postfix/
  data
+
* Add a user named postgrey:
This is a test eMail.
+
  useradd -m postgrey
  .
+
* start postgrey
 +
  ./postgrey --inet 127.0.0.1:60000
 +
* make sure postgrey is listening on port 60000:
 +
<pre>
 +
$ nmap localhost -p59998-60002
 +
 
 +
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2007-08-10 07:44 CEST
 +
Interesting ports on lvps87-230-12-146.dedicated.hosteurope.de (127.0.0.1):
 +
PORT      STATE SERVICE
 +
59998/tcp closed unknown
 +
59999/tcp closed unknown
 +
60000/tcp open  unknown
 +
60001/tcp closed unknown
 +
60002/tcp closed unknown
 +
 
 +
Nmap finished: 1 IP address (1 host up) scanned in 0.049 seconds
 +
</pre>
 +
* Make sure there is a line like this in /etc/postfix/main.cf:
 +
smtpd_recipient_restrictions = permit_mynetworks,
 +
                                permit_sasl_authenticated,
 +
                                reject_unauth_destination,
 +
                                check_policy_service  inet:127.0.0.1:60000
 +
* restart postfix
 +
  /etc/init.d/postfix restart
 +
 
 +
= See also =
 +
 
 +
http://www.debuntu.org/postfix-and-postgrey-a-proactive-approach-to-spam-filtering

Revision as of 10:09, 12 October 2008

There are different tools for greylisting.

Postgrey

Postgrey is greyListing software for the postfix MTA.

How to get it

Download postgrey from http://postgrey.schweikert.ch/

How to set it up

  • Extract your postgrey package
  • Copy postgrey_whitelist_clients to /etc/postfix/
  • Copy postgrey_whitelist_recipients to /etc/postfix/
  • Add a user named postgrey:
useradd -m postgrey
  • start postgrey
./postgrey --inet 127.0.0.1:60000
  • make sure postgrey is listening on port 60000:
$ nmap localhost -p59998-60002

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2007-08-10 07:44 CEST
Interesting ports on lvps87-230-12-146.dedicated.hosteurope.de (127.0.0.1):
PORT      STATE  SERVICE
59998/tcp closed unknown
59999/tcp closed unknown
60000/tcp open   unknown
60001/tcp closed unknown
60002/tcp closed unknown

Nmap finished: 1 IP address (1 host up) scanned in 0.049 seconds
  • Make sure there is a line like this in /etc/postfix/main.cf:
smtpd_recipient_restrictions = permit_mynetworks,
                                permit_sasl_authenticated,
                                reject_unauth_destination,
                                check_policy_service  inet:127.0.0.1:60000
  • restart postfix
/etc/init.d/postfix restart

See also

http://www.debuntu.org/postfix-and-postgrey-a-proactive-approach-to-spam-filtering