<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sebastian Mogilowskis Blog &#187; postfix</title>
	<atom:link href="http://www.mogilowski.net/lang/en-us/tag/postfix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mogilowski.net</link>
	<description>Just another blog about administration, linux and other stuff</description>
	<lastBuildDate>Tue, 17 Jan 2012 13:42:30 +0000</lastBuildDate>
	<language>en-us</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Greylisting with sqlgrey, postfix and mysql on Debian Lenny</title>
		<link>http://www.mogilowski.net/lang/en-us/2009/02/10/greylisting-with-sqlgrey-postfix-and-mysql-on-debian-lenny</link>
		<comments>http://www.mogilowski.net/lang/en-us/2009/02/10/greylisting-with-sqlgrey-postfix-and-mysql-on-debian-lenny#comments</comments>
		<pubDate>Tue, 10 Feb 2009 09:17:14 +0000</pubDate>
		<dc:creator>sebastian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mailserver]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[postgrey]]></category>
		<category><![CDATA[sqlgrey]]></category>

		<guid isPermaLink="false">http://www.mogilowski.net/?p=284</guid>
		<description><![CDATA[This article describes howto setup sqlgrey with postfix and mysql on Debian Lenny. The normal graylisting with postgrey store the whitelist in a berkeley database which needs to be replicated on a mailserver cluster. With sqlgrey you can do that replication with a mysql database. First create a Database &#8220;sqlgrey&#8221; with an user &#8220;sqlgrey&#8221; on [...]]]></description>
			<content:encoded><![CDATA[<p><span lang="en-us">This article describes howto setup sqlgrey with postfix and mysql on Debian Lenny. </span></p>
<p><span lang="en-us">The normal graylisting with postgrey store the whitelist in a berkeley database which needs to be replicated on a mailserver cluster. With sqlgrey you can do that replication with a mysql database.</span></p>
<p><span lang="en-us">First create a Database &#8220;sqlgrey&#8221; with an user &#8220;sqlgrey&#8221; on your database server. (The tables will be created by sqlgrey.)</span></p>
<h3><span lang="en-us">1. Install sqlgrey:</span></h3>
<pre>
aptitude install sqlgrey
</pre>
<h3><span lang="en-us">2. Edit the sqlgrey configuration file:</span></h3>
<pre>
vim /etc/sqlgrey/sqlgrey.conf
</pre>
<p><span lang="en-us">Edit the database settings:</span></p>
<pre>
## Database settings
db_type = mysql
db_name = sqlgrey
db_host = YOUR_DATABASE_SERVER
db_port = default
db_user = sqlgrey
db_pass = YOUR_PASS_WORD
db_cleandelay = 1800
clean_method = sync
</pre>
<h3><span lang="en-us">4. Add sqlgrey to the postfix configuration:</span></h3>
<pre>
vim /etc/postfix/main.cf
</pre>
<p><span lang="en-us">Append the recipient restrictions:</span></p>
<pre>
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_unknown_client,
reject_invalid_hostname,
check_policy_service inet:127.0.0.1:2501,
permit
</pre>
<h3><span lang="en-us">5. Restart the services:</span></h3>
<pre>
/etc/init.d/sqlgrey restart
/etc/init.d/postfix restart
</pre>
<h3><span lang="en-us">6. Controll</span></h3>
<p><span lang="en-us">Watch the content of the table &#8220;connect&#8221; it contains the sender information of every incoming mail.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mogilowski.net/lang/en-us/2009/02/10/greylisting-with-sqlgrey-postfix-and-mysql-on-debian-lenny/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Postfix with Spamassassin filter your mails</title>
		<link>http://www.mogilowski.net/lang/en-us/2008/09/22/postfix-with-spamassassin-filter-your-mails</link>
		<comments>http://www.mogilowski.net/lang/en-us/2008/09/22/postfix-with-spamassassin-filter-your-mails#comments</comments>
		<pubDate>Mon, 22 Sep 2008 09:33:27 +0000</pubDate>
		<dc:creator>sebastian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://www.mogilowski.net/?p=55&#038;lang=de-de</guid>
		<description><![CDATA[This article describes how to filter spammails with spamassassin and deliver them into a own postbox. A script delete the mails in this box after 7 days. I&#8217;m using a Postfix Mailserver on Debian Etch with amavis and spamassasin. Fist we want to catch only realy hard spam. Normaly no real mail get an Spamscore [...]]]></description>
			<content:encoded><![CDATA[<p><span lang="en-us">This article describes how to filter spammails with spamassassin and deliver them into a own postbox. A script delete the mails in this box after 7 days.</span></p>
<p><span lang="en-us">I&#8217;m using a Postfix Mailserver on Debian Etch with amavis and spamassasin.</span></p>
<p><span lang="en-us">Fist we want to catch only realy hard spam. Normaly no real mail get an Spamscore over 7 points.  Change the required hits in the spamassasin configuration.</span></p>
<pre>vim /etc/spamassassin/local.cf</pre>
<pre>required_hits 7.0</pre>
<p><span lang="en-us">After that configurate the redirection in the postfix configuration:</span></p>
<pre>vim /etc/postfix/main.cf</pre>
<pre>
# Spam Forward
header_checks = regexp:/etc/postfix/header_checks
</pre>
<pre>
vim /etc/postfix/header_checks
</pre>
<pre>
/^X-Spam-Flag: YES/ REDIRECT spam@yourdomain.com
</pre>
<pre>/etc/init.d/postfix reload</pre>
<p><span lang="en-us">Now all Mails with the Spam-Flag=Yes will be delivered to the spam@yourdomain.com account on your mailserver. If you miss any important mail, you can check this account.</span></p>
<p><span lang="en-us">Now create a script which delete this mails after 7 days.</span></p>
<pre>vim /usr/local/bin/deleteOldSpam.sh</pre>
<pre>
#!/bin/bash
find /path/to/your/mailhome/cur -type f -mtime +7 -exec rm {} \;
</pre>
<p>After that create an cronjob for this script:</p>
<pre>crontab -e</pre>
<pre>
0  1 * * * /usr/local/bin/deleteOldSpam.sh # Delete old Spammails
</pre>
<p><span lang="en-us">Now every day at 01:00 all spammails older than 7 days will be deleted.</span></p>
<p><span lang="en-us">Don&#8217;t forget to modify /path/to/your/mailhome/cur to the path where you store the mails of your spam account user.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mogilowski.net/lang/en-us/2008/09/22/postfix-with-spamassassin-filter-your-mails/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching 29/48 queries in 0.028 seconds using apc
Object Caching 567/567 objects using apc
Content Delivery Network via cdn.mogilowski.net

Served from: www.mogilowski.net @ 2012-02-07 06:09:30 -->
