<?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>Acelan's Life &#187; gmail</title>
	<atom:link href="http://blog.acelan.idv.tw/tag/gmail/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.acelan.idv.tw</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 07 Sep 2011 03:31:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Postfix on Ubuntu</title>
		<link>http://blog.acelan.idv.tw/2009/10/postfix-on-ubuntu/</link>
		<comments>http://blog.acelan.idv.tw/2009/10/postfix-on-ubuntu/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 10:35:45 +0000</pubDate>
		<dc:creator>AceLan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[dovecot]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[pop3s]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://blog.acelan.idv.tw/?p=8</guid>
		<description><![CDATA[I can&#8217;t receive email after fresh installing Ubuntu on my server. I copy the old postfix config(main.cf) to the new installed server, but the new email arrived. I found there is a statement in the main.cf
smtpd_client_restrictions = check_client_access hash:/etc/postfix/access
But there is no such a file under /etc/postfix directory, so I copied access and access.db from [...]]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t receive email after fresh installing Ubuntu on my server. I copy the old postfix config(main.cf) to the new installed server, but the new email arrived. I found there is a statement in the main.cf<br />
<code>smtpd_client_restrictions = check_client_access hash:/etc/postfix/access</code><br />
But there is no such a file under <code>/etc/postfix</code> directory, so I copied <code>access</code> and <code>access.db</code> from the old server, then I received spams.</p>
<p><span id="more-8"></span></p>
<p>To cowork with my gmail account, I add a pop3s account on gmail, so I need some extra settings to activate the pop3s service.<br />
Modify the setting in the /etc/dovecot/dovecot.conf<br />
<code>protocols = pop3s</code><br />
and uncomment this two lines<br />
<code>ssl_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem<br />
ssl_key_file = /etc/ssl/private/ssl-cert-snakeoil.key</code><br />
Then restart dovecot, you can try <code>telnet localhost 995</code> to see if the the port if opened.</p>
<p>For the postfix, you have to run the following commands.<br />
<code>openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650<br />
postconf -e 'smtpd_tls_auth_only = no'<br />
postconf -e 'smtp_use_tls = yes'<br />
postconf -e 'smtpd_use_tls = yes'<br />
postconf -e 'smtp_tls_note_starttls_offer = yes'<br />
postconf -e 'smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key'<br />
postconf -e 'smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt'<br />
postconf -e 'smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem'<br />
postconf -e 'smtpd_tls_loglevel = 1'<br />
postconf -e 'smtpd_tls_received_header = yes'<br />
postconf -e 'smtpd_tls_session_cache_timeout = 3600s'<br />
postconf -e 'tls_random_source = dev:/dev/urandom'</code></p>
<p>And add these two line in the /etc/postfix/master.cf<br />
<code>smtps inet n - n - - smtpd<br />
smtps inet n - n - - smtpd -v -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes</code></p>
<p>Done.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.acelan.idv.tw/2009/10/postfix-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

