<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://www.synology-forum.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Archiv%3APostgrey_greylisting_fuer_postfix</id>
	<title>Archiv:Postgrey greylisting fuer postfix - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://www.synology-forum.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Archiv%3APostgrey_greylisting_fuer_postfix"/>
	<link rel="alternate" type="text/html" href="https://www.synology-forum.de/wiki/index.php?title=Archiv:Postgrey_greylisting_fuer_postfix&amp;action=history"/>
	<updated>2026-05-07T04:35:35Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Synology Wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://www.synology-forum.de/wiki/index.php?title=Archiv:Postgrey_greylisting_fuer_postfix&amp;diff=10576&amp;oldid=prev</id>
		<title>Tommes: Tommes verschob die Seite Postgrey greylisting fuer postfix nach Archiv:Postgrey greylisting fuer postfix</title>
		<link rel="alternate" type="text/html" href="https://www.synology-forum.de/wiki/index.php?title=Archiv:Postgrey_greylisting_fuer_postfix&amp;diff=10576&amp;oldid=prev"/>
		<updated>2025-03-15T07:17:05Z</updated>

		<summary type="html">&lt;p&gt;Tommes verschob die Seite &lt;a href=&quot;/wiki/Postgrey_greylisting_fuer_postfix&quot; class=&quot;mw-redirect&quot; title=&quot;Postgrey greylisting fuer postfix&quot;&gt;Postgrey greylisting fuer postfix&lt;/a&gt; nach &lt;a href=&quot;/wiki/Archiv:Postgrey_greylisting_fuer_postfix&quot; title=&quot;Archiv:Postgrey greylisting fuer postfix&quot;&gt;Archiv:Postgrey greylisting fuer postfix&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 15. März 2025, 07:17 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;de&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(kein Unterschied)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Tommes</name></author>
	</entry>
	<entry>
		<id>https://www.synology-forum.de/wiki/index.php?title=Archiv:Postgrey_greylisting_fuer_postfix&amp;diff=470&amp;oldid=prev</id>
		<title>imported&gt;Jahlives: /* Voraussetzungen */</title>
		<link rel="alternate" type="text/html" href="https://www.synology-forum.de/wiki/index.php?title=Archiv:Postgrey_greylisting_fuer_postfix&amp;diff=470&amp;oldid=prev"/>
		<updated>2011-02-08T22:12:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Voraussetzungen&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 8. Februar 2011, 22:12 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Zeile 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** [http://search.cpan.org/dist/BerkeleyDB/ BerkeleyDB (Perl module)]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** [http://search.cpan.org/dist/BerkeleyDB/ BerkeleyDB (Perl module)]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** [http://www.sleepycat.com/download/db/index.shtml Berkeley DB (Library, version ≥ 4.1)]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** [http://www.sleepycat.com/download/db/index.shtml Berkeley DB (Library, version ≥ 4.1)]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [http://postgrey.schweikert.ch/pub/postgrey-1.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;32&lt;/del&gt;.tar.gz Postgrey Source]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;http://&lt;/ins&gt;http://postgrey.schweikert.ch/pub/postgrey-1.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;33&lt;/ins&gt;.tar.gz Postgrey Source]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Installation ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Installation ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Archiv an beliebigen Platz entpacken. In postgrey den Pfad zur Config und den Pfad (Verzeichnis) für die Datenbank angeben. Die Datenbank selber wird dann von postgrey beim Starten falls nicht vorhanden angelegt. Darum musst der User unter dem postgrey läuft auch Schreibrechte auf dieses Verzeichnis haben (läuft bei mir unter nobody).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Archiv an beliebigen Platz entpacken. In postgrey den Pfad zur Config und den Pfad (Verzeichnis) für die Datenbank angeben. Die Datenbank selber wird dann von postgrey beim Starten falls nicht vorhanden angelegt. Darum musst der User unter dem postgrey läuft auch Schreibrechte auf dieses Verzeichnis haben (läuft bei mir unter nobody).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Jahlives</name></author>
	</entry>
	<entry>
		<id>https://www.synology-forum.de/wiki/index.php?title=Archiv:Postgrey_greylisting_fuer_postfix&amp;diff=4163&amp;oldid=prev</id>
		<title>imported&gt;Jahlives: /* Optimierung */</title>
		<link rel="alternate" type="text/html" href="https://www.synology-forum.de/wiki/index.php?title=Archiv:Postgrey_greylisting_fuer_postfix&amp;diff=4163&amp;oldid=prev"/>
		<updated>2010-09-12T12:28:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Optimierung&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 12. September 2010, 12:28 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l50&quot;&gt;Zeile 50:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 50:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;...&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;...&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Mailstation]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Postfix]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Jahlives</name></author>
	</entry>
	<entry>
		<id>https://www.synology-forum.de/wiki/index.php?title=Archiv:Postgrey_greylisting_fuer_postfix&amp;diff=4162&amp;oldid=prev</id>
		<title>imported&gt;Jahlives: Die Seite wurde neu angelegt: „== Greylist mit postgrey == Normalerweise ist bei Postfix bereits eine Greylist Methode implementiert. Diese scheint aber im Umgang mit der Datenbank etwas Proble…“</title>
		<link rel="alternate" type="text/html" href="https://www.synology-forum.de/wiki/index.php?title=Archiv:Postgrey_greylisting_fuer_postfix&amp;diff=4162&amp;oldid=prev"/>
		<updated>2010-04-20T11:20:18Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „== Greylist mit postgrey == Normalerweise ist bei Postfix bereits eine Greylist Methode implementiert. Diese scheint aber im Umgang mit der Datenbank etwas Proble…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Greylist mit postgrey ==&lt;br /&gt;
Normalerweise ist bei Postfix bereits eine Greylist Methode implementiert. Diese scheint aber im Umgang mit der Datenbank etwas Probleme zu machen. Deshalb habe ich mich für diese ([http://postgrey.schweikert.ch/ http://postgrey.schweikert.ch/]) Version entschieden.&lt;br /&gt;
=== Voraussetzungen ===&lt;br /&gt;
* Zugang auf die DS als root via telnet oder ssh&lt;br /&gt;
* Umgang mit einem Konsoleneditor wie z.B. vi oder nano (via ipkg)&lt;br /&gt;
* Perl installiert (ich habe es mit der ipkg Version gemacht, weiss aber nicht ob die Default Version auch funzen würde)&lt;br /&gt;
* Perl Module&lt;br /&gt;
** [http://search.cpan.org/dist/Net-Server/ Net::Server]&lt;br /&gt;
** [http://search.cpan.org/dist/IO-Multiplex/ IO::Multiplex]&lt;br /&gt;
** [http://search.cpan.org/dist/BerkeleyDB/ BerkeleyDB (Perl module)]&lt;br /&gt;
** [http://www.sleepycat.com/download/db/index.shtml Berkeley DB (Library, version ≥ 4.1)]&lt;br /&gt;
* [http://postgrey.schweikert.ch/pub/postgrey-1.32.tar.gz Postgrey Source]&lt;br /&gt;
=== Installation ===&lt;br /&gt;
Archiv an beliebigen Platz entpacken. In postgrey den Pfad zur Config und den Pfad (Verzeichnis) für die Datenbank angeben. Die Datenbank selber wird dann von postgrey beim Starten falls nicht vorhanden angelegt. Darum musst der User unter dem postgrey läuft auch Schreibrechte auf dieses Verzeichnis haben (läuft bei mir unter nobody).&lt;br /&gt;
Auch sollte wieder der Pfad zum Perlinterpreter in postgrey falls nötig angepasst werden.&lt;br /&gt;
=== Konfiguration ===&lt;br /&gt;
postgrey hat in dem Sinne keine Konfig, sondern die Konfig wird beim Starten auf der Kommandozeile mittels Parameter übergeben&lt;br /&gt;
=== Starten ===&lt;br /&gt;
Zum Starten reicht auf der Kommandozeile ein&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/path/to/postgrey -d --inet=127.0.0.1:10050 --delay=60 --user=nobody --group=nobody&lt;br /&gt;
&amp;lt;/pre&amp;gt;damit sollte postgrey unter nobody:nobody auf Port 10050 und dem localhost laufen.&lt;br /&gt;
=== Integration in Postfix Prozess ===&lt;br /&gt;
Man könnte versucht sein in der main.cf einfach bei smtpd_recipient_restrictions einen weiteren check_policy_service einzubauen. Das wird aber in die Hose gehen, weil Postfix dann nur den zuletzt angegebenen Service nutzt. Die erste Var wird also von der zweiten Überschrieben.&lt;br /&gt;
Um das zu umgehen legt man in der main.cf am besten eine eigene Restriction Class an&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
smtpd_recipient_restrictions = ...,&lt;br /&gt;
check_policy_service inet:127.0.0.1:10040,&lt;br /&gt;
...&lt;br /&gt;
smtpd_restriction_classes = greylist&lt;br /&gt;
greylist = check_policy_service inet:127.0.0.1:10050&lt;br /&gt;
&amp;lt;/pre&amp;gt;greylist kann beliebig gewählt werden. Es darf nur nich so heissen wie eine default Action von Postfix (z.B. OK, DEFER oder REJECT)&lt;br /&gt;
Danach kann postfwd über action=greylist den Postfix anweisen eine Mail durch den Greylist Service zu schleusen z.B&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#postfwd.cf&lt;br /&gt;
....&lt;br /&gt;
id=GREY ; action=greylist&lt;br /&gt;
&amp;lt;/pre&amp;gt;Damit schickt postfwd alle Emails durch den postgrey Service, welcher dann entscheidet ob eine Email verworfen oder akzeptiert wird&lt;br /&gt;
=== Optimierung ===&lt;br /&gt;
So eingestellt wird postgrey bei Absendern Probleme machen, die Einmalempfangsadressen verwenden (wie z.B. viele Mailinglisten). Um das zu umgehen, kann man eine sender_access Datei anlegen&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dovecot.org OK&lt;br /&gt;
postfix.org   OK&lt;br /&gt;
&amp;lt;/pre&amp;gt;diese mit postmap behandeln und dann in der main.cf diese Datei VOR dem policy check einbauen. Es ist extrem wichtig, dass ihr sicherstellt, das VOR dem sender_access check und dem policy_check ein reject_unauth_destination steht. Sonst habt ihr ganz schnell einen offenen relay Server produziert&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
smtpd_recipient_restrictions = ...,&lt;br /&gt;
reject_unauth_destination,&lt;br /&gt;
check_sender_access hash:/path/to/sender_access,&lt;br /&gt;
check_policy_service inet:127.0.0.1:10040,&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Jahlives</name></author>
	</entry>
</feed>