Difference between pages "Help:Editing" and "Greylisting"

From Linuxintro
(Difference between pages)
imported>ThorstenStaerk
 
imported>ThorstenStaerk
 
Line 1: Line 1:
This is a wiki. This means, depending on your priviledges, you can edit articles. You can use a special syntax to format text, include links and so on.
+
There are different tools for greylisting.
  
= Format text =
+
= Postgrey =
 +
Postgrey is [[greyListing]] [[software]] for the [[postfix]] [[MTA]].
  
== Headings ==
+
== How to get it ==
To make headings:
 
{| border=1
 
! This markup !! produces
 
|-
 
| <nowiki>= Header =</nowiki> ||
 
= Header =
 
|-
 
| <nowiki>== Sub-Header ==</nowiki> ||
 
== Sub-Header ==
 
|-
 
| <nowiki>=== Sub-sub-Header ===</nowiki> ||
 
== Sub-sub-Header ==
 
|-
 
|}
 
  
== Font Face ==
+
Download postgrey from http://postgrey.schweikert.ch/
To make bold or italic font:
 
{| border=1
 
! This markup !! produces
 
|-
 
| <nowiki>This is ''italic'' and this is '''bold'''.</nowiki> || This is ''italic'' and this is '''bold'''.
 
|-
 
|}
 
  
== Code ==
+
== How to set it up ==
To make clear text is meant as code or computer in/output just prepend a space at the beginning of the line:
 
<- here is a space at the beginning of the line.
 
  
= Creating links =
+
* Extract your postgrey [[package]], e.g.:
To link to another article in this wiki:
+
tar xvzf postgrey-1.32.tar.gz
{| border=1
+
* install some needed packages
! This markup !! produces
+
yast -i perl-BerkeleyDB
|-
+
* Copy postgrey_whitelist_clients to /etc/postfix/
| <nowiki>Have a look at our [[application]] section.</nowiki> || Have a look at our [[applications]] section.
+
* Copy postgrey_whitelist_recipients to /etc/postfix/
|-
+
* Add a user named postgrey:
|}
+
useradd -m postgrey
To link to another namespace, e.g. a category:
+
* start postgrey
{| border=1
+
./postgrey --inet 127.0.0.1:60000
! This markup !! produces
+
If you get an error, see ''TroubleShooting''.
|-
+
* make sure postgrey is listening on port 60000:
| <nowiki>Have a look at our [[:Category:Guides]] section.</nowiki> || Have a look at our [[:Category:Guides]] section.
+
<pre>
|-
+
$ nmap localhost -p59998-60002
|}
 
  
= Magic words =
+
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2007-08-10 07:44 CEST
Magic words are for example
+
Interesting ports on lvps87-230-12-146.dedicated.hosteurope.de (127.0.0.1):
<nowiki>__TOC__</nowiki>
+
PORT      STATE  SERVICE
to insert the table of content. And
+
59998/tcp closed unknown
<nowiki>{{</nowiki>DISPLAYTITLE:''title''}}
+
59999/tcp closed unknown
to change the title that is displayed. See http://www.mediawiki.org/wiki/Help:Magic_words
+
60000/tcp open  unknown
 +
60001/tcp closed unknown
 +
60002/tcp closed unknown
  
= Creating tables =
+
Nmap finished: 1 IP address (1 host up) scanned in 0.049 seconds
Make a sortable table. This input:
 
<pre>
 
{| class="wikitable sortable" border=1
 
! col1 !! col2 !! col3
 
|-
 
| field1 || field2 || field3
 
|-
 
| ZZZ    || AAA    || MMM
 
|-
 
|}
 
 
</pre>
 
</pre>
Produces:
+
* Make sure there is a line like this in /etc/postfix/main.cf:
{| class="wikitable sortable" border=1
+
smtpd_recipient_restrictions = permit_mynetworks,
! col1 !! col2 !! col3
+
                                permit_sasl_authenticated,
|-
+
                                reject_unauth_destination,
| field1 || field2 || field3
+
                                check_policy_service  inet:127.0.0.1:60000
|-
+
* restart postfix
| ZZZ    || AAA    || MMM
+
/etc/init.d/postfix restart
|-
+
 
|}
+
= TroubleShooting =
 +
 
 +
'''Symptome:''' When starting postgrey, you get an error message
 +
Can't locate Net/Server.pm in @INC
 +
 
 +
'''Reason:''' Your perl is installed, but missing Net::Server
 +
 
 +
'''Solution:''' Install Net::Server via [[cpan]]:
 +
perl -mCPAN -e CPAN::Shell
 +
If you have never run CPAN before, you have to answer 25 questions now. Then issue:
 +
install Net::Server
 +
 
 +
= See also =
 +
 
 +
http://www.debuntu.org/postfix-and-postgrey-a-proactive-approach-to-spam-filtering

Revision as of 10:31, 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, e.g.:
tar xvzf postgrey-1.32.tar.gz
  • install some needed packages
yast -i perl-BerkeleyDB
  • 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

If you get an error, see TroubleShooting.

  • 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

TroubleShooting

Symptome: When starting postgrey, you get an error message

Can't locate Net/Server.pm in @INC 

Reason: Your perl is installed, but missing Net::Server

Solution: Install Net::Server via cpan:

perl -mCPAN -e CPAN::Shell

If you have never run CPAN before, you have to answer 25 questions now. Then issue:

install Net::Server

See also

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