<?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>Pario TechnoBlob &#187; SMTP</title>
	<atom:link href="http://pario.no/tag/smtp/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:17:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to configure postfix virtual domains</title>
		<link>http://pario.no/2007/09/09/how-to-configure-postfix-virtual-domains/</link>
		<comments>http://pario.no/2007/09/09/how-to-configure-postfix-virtual-domains/#comments</comments>
		<pubDate>Sun, 09 Sep 2007 16:42:41 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[virtual domains]]></category>

		<guid isPermaLink="false">http://hhj.no/wordpress/2007/09/09/how-to-configure-postfix-virtual-domains/</guid>
		<description><![CDATA[I will assume that your postfix configuration directory is /etc/postfix and your postfix version is around 2.0.14 1. Edit /etc/postfix/virtual This is a plaintext file where you can specify the domains and users to accept mail for. Each virtual domain should begin with a single line containing the domain name. The subsequent lines define addresses [...]]]></description>
			<content:encoded><![CDATA[<p>I will assume that your postfix configuration directory is /etc/postfix and your postfix version is around 2.0.14</p>
<p><strong>1. Edit /etc/postfix/virtual</strong> This is a plaintext file where you can specify the domains and users to accept mail for. Each virtual domain should begin with a single line containing the domain name. The subsequent lines define addresses at the domain that are deliverable. Mail will be delivered to local usernames on the right side, as demonstrated in the example below. The condition @domain allows you to deliver &#8220;all other&#8221; mail to the indicated user. You can list multiple domains in this file; just repeat the format demonstrated below.</p>
<pre>example.com		this-text-is-ignored
postmaster@example.com	postmaster
address1@example.com	destuser1
address2@example.com	destuser2
@example.com		destuser1</pre>
<p><strong>2. Edit /etc/postfix/main.cf</strong></p>
<p>You have to tell postfix where to look for these virtual alias mappings; the appropriate configuration directive is in the main postfix configuration file. This tells postfix to use the db-format (hash) version of your virtual mappings. Note that your system must have db support for this to work; also, the actual db file is not created until you run &#8216;postmap&#8217; in step 3.</p>
<pre>virtual_alias_maps = hash:/etc/postfix/virtual</pre>
<p><strong>3. Refresh configuration and mappings</strong></p>
<p>Since you&#8217;ve changed main.cf, you should restart the daemon. The second command below updates the virtual mappings; you must run this &#8216;postmap&#8217; command when you change your /etc/postfix/virtual file. The &#8216;postmap&#8217; command actually creates the hash db file that postfix looks for.</p>
<pre>postfix reload
postmap /etc/postfix/virtual</pre>
<p>Now try delivering mail to virtual domain addresses. If you encounter problems, check your mailer daemon system log and make sure your server configuration has been refreshed with &#8216;postfix reload&#8217; and the &#8216;postmap&#8217; commands.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDkvMDkvaG93LXRvLWNvbmZpZ3VyZS1wb3N0Zml4LXZpcnR1YWwtZG9tYWlucy88d3B0Yj5Ib3cgdG8gY29uZmlndXJlIHBvc3RmaXggdmlydHVhbCBkb21haW5zPHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/09/09/how-to-configure-postfix-virtual-domains/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Look for obvious signs of trouble in Postfix</title>
		<link>http://pario.no/2007/07/30/look-for-obvious-signs-of-trouble-in-postfix/</link>
		<comments>http://pario.no/2007/07/30/look-for-obvious-signs-of-trouble-in-postfix/#comments</comments>
		<pubDate>Mon, 30 Jul 2007 20:50:21 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[egrep]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[SMTP]]></category>

		<guid isPermaLink="false">http://hhj.no/wordpress/2007/07/30/look-for-obvious-signs-of-trouble-in-postfix/</guid>
		<description><![CDATA[Postfix logs all failed and successful deliveries to a logfile. The file is usually called /var/log/maillog or /var/log/mail; the exact pathname is defined in the /etc/syslog.conf file. When Postfix does not receive or deliver mail, the first order of business is to look for errors that prevent Postfix from working properly: % egrep '(warning&#124;error&#124;fatal&#124;panic):' /some/log/file [...]]]></description>
			<content:encoded><![CDATA[<p> Postfix logs all failed and successful deliveries to a logfile. The file is usually called /var/log/maillog or /var/log/mail; the exact pathname is defined in the /etc/syslog.conf file.</p>
<p><span id="more-260"></span>When Postfix does not receive or deliver mail, the first order of business is to look for errors that prevent Postfix from working properly:</p>
<pre>% <strong>egrep '(warning|error|fatal|panic):' /some/log/file | more</strong></pre>
<p>Note: the most important message is near the BEGINNING of the output.  Error messages that come later are less useful.</p>
<p>The nature of each problem is indicated as follows:</p>
<ul>
<li> &#8220;<strong>panic</strong>&#8221; indicates a problem in the software itself that only a programmer can fix. Postfix cannot proceed until this is fixed.</li>
<li> &#8220;<strong>fatal</strong>&#8221; is the result of missing files, incorrect permissions, incorrect configuration file settings that you can fix.  Postfix cannot proceed until this is fixed.</li>
<li> &#8220;<strong>error</strong>&#8221; reports an error condition. For safety reasons, a Postfix process will terminate when more than 13 of these happen.</li>
<li> &#8220;<strong>warning</strong>&#8221; indicates a non-fatal error. These are problems that you may not be able to fix (such as a broken DNS server elsewhere on the network) but may also indicate local configuration errors that could become a problem later.</li>
</ul>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDcvMzAvbG9vay1mb3Itb2J2aW91cy1zaWducy1vZi10cm91YmxlLWluLXBvc3RmaXgvPHdwdGI%2BTG9vayBmb3Igb2J2aW91cyBzaWducyBvZiB0cm91YmxlIGluIFBvc3RmaXg8d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/07/30/look-for-obvious-signs-of-trouble-in-postfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Postfix daemon programs more verbose</title>
		<link>http://pario.no/2007/07/30/making-postfix-daemon-programs-more-verbose/</link>
		<comments>http://pario.no/2007/07/30/making-postfix-daemon-programs-more-verbose/#comments</comments>
		<pubDate>Mon, 30 Jul 2007 20:47:51 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[SMTP]]></category>

		<guid isPermaLink="false">http://hhj.no/wordpress/2007/07/30/making-postfix-daemon-programs-more-verbose/</guid>
		<description><![CDATA[Append one or more &#8220;-v&#8221; options to selected daemon definitions in /etc/postfix/master.cf and type &#8220;postfix reload&#8220;. This will cause a lot of activity to be logged to the syslog daemon. For example, to make the Postfix SMTP server process more verbose: /etc/postfix/master.cf: smtp inet n - n - - smtpd -v To diagnose problems with [...]]]></description>
			<content:encoded><![CDATA[<p> Append one or more &#8220;<strong>-v</strong>&#8221; options to selected daemon definitions in /etc/postfix/<a href="http://www.postfix.org/master.5.html">master.cf</a> and type &#8220;<strong>postfix reload</strong>&#8220;. This will cause a lot of activity to be logged to the syslog daemon. For example, to make the Postfix SMTP server process more verbose:<br />
<span id="more-259"></span></p>
<pre>/etc/postfix/<a href="http://www.postfix.org/master.5.html">master.cf</a>:    smtp      inet  n       -       n       -       -       smtpd -v</pre>
<p>To diagnose problems with address rewriting specify a &#8220;<strong>-v</strong>&#8221; option for the <a href="http://www.postfix.org/cleanup.8.html">cleanup(8)</a> and/or <a href="http://www.postfix.org/trivial-rewrite.8.html">trivial-rewrite(8)</a> daemon, and to diagnose problems with mail delivery specify a &#8220;<strong>-v</strong>&#8221; option for the <a href="http://www.postfix.org/qmgr.8.html">qmgr(8)</a> or <a href="http://www.postfix.org/qmgr.8.html">oqmgr(8)</a> queue manager, or for the <a href="http://www.postfix.org/lmtp.8.html">lmtp(8)</a>, <a href="http://www.postfix.org/local.8.html">local(8)</a>, <a href="http://www.postfix.org/pipe.8.html">pipe(8)</a>, <a href="http://www.postfix.org/smtp.8.html">smtp(8)</a>, or <a href="http://www.postfix.org/virtual.8.html">virtual(8)</a> delivery agent.</p>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/www.postfix.org\/master.5.html","http:\/\/www.postfix.org\/master.5.html","http:\/\/www.postfix.org\/cleanup.8.html","http:\/\/www.postfix.org\/trivial-rewrite.8.html","http:\/\/www.postfix.org\/qmgr.8.html","http:\/\/www.postfix.org\/qmgr.8.html","http:\/\/www.postfix.org\/lmtp.8.html","http:\/\/www.postfix.org\/local.8.html","http:\/\/www.postfix.org\/pipe.8.html","http:\/\/www.postfix.org\/smtp.8.html","http:\/\/www.postfix.org\/virtual.8.html"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDcvMzAvbWFraW5nLXBvc3RmaXgtZGFlbW9uLXByb2dyYW1zLW1vcmUtdmVyYm9zZS88d3B0Yj5NYWtpbmcgUG9zdGZpeCBkYWVtb24gcHJvZ3JhbXMgbW9yZSB2ZXJib3NlPHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/07/30/making-postfix-daemon-programs-more-verbose/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generering av SSL sertificat</title>
		<link>http://pario.no/2007/05/18/generering-av-ssl-sertificat/</link>
		<comments>http://pario.no/2007/05/18/generering-av-ssl-sertificat/#comments</comments>
		<pubDate>Fri, 18 May 2007 00:30:12 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Courier-imap]]></category>
		<category><![CDATA[Dovecot]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://hhj.no/wordpress/2007/05/18/generering-av-ssl-sertificat/</guid>
		<description><![CDATA[Dovecot og Courier-imap klager til tider på at sertifikat ikke fungerer. Da kan man kjøre følgende kommando for å lage nytt sertifikat. Kommandoen kjøres fra /etc/ssl/dovecot/ openssl req -new -x509 -nodes -days 365 -out cert.crt -keyout cert.key cat cert.key cert.crt &#62; cert.pem Endre navnet på filene slik at de stemmer overns med configfilene til de [...]]]></description>
			<content:encoded><![CDATA[<p>Dovecot og Courier-imap klager til tider på at sertifikat ikke fungerer. Da kan man kjøre følgende kommando for å lage nytt sertifikat. Kommandoen kjøres fra <strong>/etc/ssl/dovecot/</strong></p>
<pre>
openssl req -new -x509 -nodes -days 365 -out cert.crt -keyout cert.key
cat cert.key cert.crt &gt; cert.pem</pre>
<p>Endre navnet på filene slik at de stemmer overns med configfilene til de respektive programmene.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDUvMTgvZ2VuZXJlcmluZy1hdi1zc2wtc2VydGlmaWNhdC88d3B0Yj5HZW5lcmVyaW5nIGF2IFNTTCBzZXJ0aWZpY2F0PHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/05/18/generering-av-ssl-sertificat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Courier-IMAP to Dovecot Migration Script</title>
		<link>http://pario.no/2007/05/17/courier-imap-to-dovecot-migration-script/</link>
		<comments>http://pario.no/2007/05/17/courier-imap-to-dovecot-migration-script/#comments</comments>
		<pubDate>Thu, 17 May 2007 20:49:59 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Courier-imap]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Dovecot]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[maildir]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[xargs]]></category>

		<guid isPermaLink="false">http://hhj.no/wordpress/2007/05/17/courier-imap-to-dovecot-migration-script/</guid>
		<description><![CDATA[I’ve just migrated a couple of servers from Courier-IMAP to Dovecot, and am very happy with the latter so far. I thought I’d share the courier2dovecot shell script I whipped together (based on the instructions I found in the migration how-to), for converting Courier-IMAP maildirs to Dovecot format. While the script is rather simple, it [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve just migrated a couple of servers from Courier-IMAP to <a href="http://www.dovecot.org/">Dovecot</a>, and am very happy with the latter so far. I thought I’d share the <strong>courier2dovecot </strong> shell script I whipped together (based on the instructions I found in the <a href="http://wiki.dovecot.org/">migration how-to</a>), for converting Courier-IMAP <a href="http://en.wikipedia.org/wiki/Maildir">maildirs</a> to Dovecot format.</p>
<p>While the script is rather simple, it can save a fair bit of typing when migrating some hundreds of mail accounts, especially since Courier stores some of its own state files recursively in each folder of the maildir hierarchy, making it a real pain to otherwise manually rename or remove all of them.</p>
<p>Here’s a plain-English summary of what the script currently does, when given a Courier maildir path as an argument:</p>
<ul>
<li>Check that the given path is indeed a valid Courier maildir, and exit if not.</li>
<li>Rename the file ‘courierimapsubscribed’ to ‘subscriptions’, and strip the ‘INBOX.’ prefix from its contents.</li>
<li>Recursively rename all of files of the name ‘courierimapuiddb’ to ‘dovecot-uidlist’.</li>
<li>Recursively delete all of files of the name ‘courierimaphieracl’, ‘courierimapacl’ and ‘courierimapkeywords’.</li>
</ul>
<p>The script will also verbosely print out each action it performs, handy for redirecting the output to a log file for a large migration.</p>
<p>Hopefully people about to jump ship from Courier to Dovecot find this useful. If anyone comes up with improvements to the script, please send them my way.</p>
<pre>
#!/bin/sh
#
# courier2dovecot -- Converts a Courier maildir to Dovecot format.
# Copyright (c) 2005 Arto Bendiken. Released under the GNU GPL.
# Newest version available from http://bendiken.net/scripts/
#
# 2005-10-21 initial version for Dovecot 1.0.
#
dir="$1"
if [ -z "$dir" ] || [ "$dir" = "-?" ] || [ "$dir" = "-h" ] || [ "$dir" = "--help" ]; then
  echo "Usage: $0 maildirpath"
  exit 1
fi
if [ ! -d "$dir" ] || [ ! -e "$dir/courierimapsubscribed" ]; then
  echo "$dir is not a path to a Courier maildir"
  exit 1
fi
find $dir -name courierimapsubscribed -print0 | xargs -0r rename -v 's/courierimapsubscribed/subscriptions/'
find $dir -name subscriptions -print0 | xargs -0r sed -i 's/INBOX\.//'
find $dir -name courierimapuiddb -print0 | xargs -0r rename -v 's/courierimapuiddb/dovecot-uidlist/'
find $dir -name courierimaphieracl -print0 | xargs -0r rm -vrf
find $dir -name courierimapacl -print0 | xargs -0r rm -vf
find $dir -name courierimapkeywords -print0 | xargs -0r rm -vrf</pre>
<p><strong>Comment to the script:</strong><br />
Hey Arto &amp; everyone using this script:</p>
<p>Be careful when trying to run this on <strong>Red Hat Enterprise Linux</strong> or <strong>CentOS 4</strong> systems. These operating systems ship with a different rename command than the Debian systems. You can also tell them apart based on the output when running ‘rename’ with no arguments.</p>
<p>This is the perl version which works:<br />
<code>Usage: rename [-v] [-n] [-f] perlexpr [filenames]</code></p>
<p>This is the RHEL/CentOS version that doesn’t:<br />
<code>call: rename.orig from to files…</code></p>
<p>Hope this helps someone out there, and thanks for the script Arto!</p>
<p>Source: <a href="http://bendiken.net/2005/11/03/courier-imap-to-dovecot-migration-script">http://bendiken.net/2005/11/03/courier-imap-to-dovecot-migration-script</a></p>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/www.dovecot.org\/","http:\/\/wiki.dovecot.org\/","http:\/\/en.wikipedia.org\/wiki\/Maildir","http:\/\/bendiken.net\/2005\/11\/03\/courier-imap-to-dovecot-migration-script"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDUvMTcvY291cmllci1pbWFwLXRvLWRvdmVjb3QtbWlncmF0aW9uLXNjcmlwdC88d3B0Yj5Db3VyaWVyLUlNQVAgdG8gRG92ZWNvdCBNaWdyYXRpb24gU2NyaXB0PHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/05/17/courier-imap-to-dovecot-migration-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

