<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Checking that the mailserver works</title>
	<atom:link href="http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/checking-that-the-mailserver-works/feed/" rel="self" type="application/rss+xml" />
	<link>http://diymacserver.com</link>
	<description></description>
	<lastBuildDate>Wed, 02 May 2012 02:04:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/checking-that-the-mailserver-works/comment-page-1/#comment-7525</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 26 Aug 2010 04:46:08 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=771#comment-7525</guid>
		<description>http://www.mxtoolbox.com/blacklists.aspx, if you are you can&#039;t fix it. You could try to use any of the forms used by some of the blacklisters to get whitelisted.</description>
		<content:encoded><![CDATA[<p><a href="http://www.mxtoolbox.com/blacklists.aspx" rel="nofollow">http://www.mxtoolbox.com/blacklists.aspx</a>, if you are you can&#8217;t fix it. You could try to use any of the forms used by some of the blacklisters to get whitelisted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Connor</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/checking-that-the-mailserver-works/comment-page-1/#comment-7522</link>
		<dc:creator>Connor</dc:creator>
		<pubDate>Wed, 25 Aug 2010 21:11:46 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=771#comment-7522</guid>
		<description>How do I check blacklisted IPs and how do I fix it?</description>
		<content:encoded><![CDATA[<p>How do I check blacklisted IPs and how do I fix it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/checking-that-the-mailserver-works/comment-page-1/#comment-7519</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Wed, 25 Aug 2010 16:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=771#comment-7519</guid>
		<description>@Connor, did you check the blacklist info? This looks like the IP&#039;s from your ISP are blacklisted.</description>
		<content:encoded><![CDATA[<p>@Connor, did you check the blacklist info? This looks like the IP&#8217;s from your ISP are blacklisted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Connor</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/checking-that-the-mailserver-works/comment-page-1/#comment-7518</link>
		<dc:creator>Connor</dc:creator>
		<pubDate>Wed, 25 Aug 2010 11:20:59 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=771#comment-7518</guid>
		<description>Error Message:


This is the mail system at host 141-146.5-85.cust.bluewin.ch.
I&#039;m sorry to have to inform you that your message could not
be delivered to one or more recipients. It&#039;s attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system

: host gmail-smtp-in.l.google.com[74.125.77.27] said:
   550-5.7.1 [85.5.146.141] The IP you&#039;re using to send mail is not authorized
   to 550-5.7.1 send email directly to our servers. Please use the SMTP relay
   at your 550-5.7.1 service provider instead. Learn more at
   550 5.7.1 http://mail.google.com/support/bin/answer.py?answer=10336
   v8si3224831eeh.26 (in reply to end of DATA command)
Reporting-MTA: dns; 141-146.5-85.cust.bluewin.ch
X-Postfix-Queue-ID: 2E76610EC30
X-Postfix-Sender: rfc822; crallion@crallion.com
Arrival-Date: Wed, 25 Aug 2010 13:09:35 +0200 (CEST)

Final-Recipient: rfc822; connor.cn@gmail.com
Original-Recipient: rfc822;connor.cn@gmail.com
Action: failed
Status: 5.7.1
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.1 [85.5.146.141] The IP you&#039;re using to send
   mail is not authorized to 550-5.7.1 send email directly to our servers.
   Please use the SMTP relay at your 550-5.7.1 service provider instead. Learn
   more at                          550 5.7.1
   http://mail.google.com/support/bin/answer.py?answer=10336 v8si3224831eeh.26

(Original Message was Here)


So anyway, it looks like it doesn&#039;t have much to do with your server setup, but I was just wondering if anyone else has received this error message, since gmail is pretty popular.  I haven&#039;t tried it with hotmail, or other big ones yet, but I have tested with another private mail server, which it successfully sent the mail to.  I really need the ability to send it to a gmail account, so I was wondering if anyone had a fix.</description>
		<content:encoded><![CDATA[<p>Error Message:</p>
<p>This is the mail system at host 141-146.5-85.cust.bluewin.ch.<br />
I&#8217;m sorry to have to inform you that your message could not<br />
be delivered to one or more recipients. It&#8217;s attached below.<br />
For further assistance, please send mail to postmaster.<br />
If you do so, please include this problem report. You can<br />
delete your own text from the attached returned message.<br />
The mail system</p>
<p>: host gmail-smtp-in.l.google.com[74.125.77.27] said:<br />
   550-5.7.1 [85.5.146.141] The IP you&#8217;re using to send mail is not authorized<br />
   to 550-5.7.1 send email directly to our servers. Please use the SMTP relay<br />
   at your 550-5.7.1 service provider instead. Learn more at<br />
   550 5.7.1 <a href="http://mail.google.com/support/bin/answer.py?answer=10336" rel="nofollow">http://mail.google.com/support/bin/answer.py?answer=10336</a><br />
   v8si3224831eeh.26 (in reply to end of DATA command)<br />
Reporting-MTA: dns; 141-146.5-85.cust.bluewin.ch<br />
X-Postfix-Queue-ID: 2E76610EC30<br />
X-Postfix-Sender: rfc822; <a href="mailto:crallion@crallion.com">crallion@crallion.com</a><br />
Arrival-Date: Wed, 25 Aug 2010 13:09:35 +0200 (CEST)</p>
<p>Final-Recipient: rfc822; <a href="mailto:connor.cn@gmail.com">connor.cn@gmail.com</a><br />
Original-Recipient: rfc822;connor.cn@gmail.com<br />
Action: failed<br />
Status: 5.7.1<br />
Remote-MTA: dns; gmail-smtp-in.l.google.com<br />
Diagnostic-Code: smtp; 550-5.7.1 [85.5.146.141] The IP you&#8217;re using to send<br />
   mail is not authorized to 550-5.7.1 send email directly to our servers.<br />
   Please use the SMTP relay at your 550-5.7.1 service provider instead. Learn<br />
   more at                          550 5.7.1<br />
   <a href="http://mail.google.com/support/bin/answer.py?answer=10336" rel="nofollow">http://mail.google.com/support/bin/answer.py?answer=10336</a> v8si3224831eeh.26</p>
<p>(Original Message was Here)</p>
<p>So anyway, it looks like it doesn&#8217;t have much to do with your server setup, but I was just wondering if anyone else has received this error message, since gmail is pretty popular.  I haven&#8217;t tried it with hotmail, or other big ones yet, but I have tested with another private mail server, which it successfully sent the mail to.  I really need the ability to send it to a gmail account, so I was wondering if anyone had a fix.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/checking-that-the-mailserver-works/comment-page-1/#comment-7516</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Wed, 25 Aug 2010 07:19:06 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=771#comment-7516</guid>
		<description>@Richard

I was able to fix it.  By trying to log in via the Terminal, I noticed that for some reason, I was able to login over localhost but not over 127.0.0.1.  It probably has something to do with the DB config, or the router setup, maybe even virtual hosts.  

All I ended up doing to fix the problem was change &quot;127.0.0.1&quot; in the mysql_virtual_* files to &quot;localhost&quot;, which worked well.

Also, upon further research into dovecot configuration, I figured that in &quot;dovecot-sql.conf&quot;, the user query and password query lines have better syntax like this:

user_query = SELECT &#039;/usr/local/virtual/%d/%n&#039; as home, \
 concat(&quot;*:storage=&quot;, quota) AS quota_rule FROM mailbox \
 WHERE username = &quot;%u&quot; AND active = &quot;1&quot;

password_query = SELECT username as user, password, \
 &#039;/usr/local/virtual/%d/%n&#039; as userdb_home, \
 concat(&quot;*:storage=&quot;, quota) AS userdb_quota_rule \
 FROM mailbox WHERE username = &#039;%u&#039; AND active = &#039;1&#039;

In the storage line, I changed it from your&#039;s to &quot;*:storage=&quot; because &quot;dirsize:storage=&quot; is old and less efficient.
Also, with this configuration, you need to have these lines on your dovecot.conf file

mail_location =maildir:~/Maildir
mail_uid = 102
mail_gid = 102

and the userdb should be changed to (adding the prefetch, for one query):

  userdb prefetch {
  }
  userdb sql {
    args = /etc/dovecot/dovecot-sql.conf
  }

If you have other reasons or suggestions for using your original syntax, please tell, as the more info I have, the better.

This puts the userdb and passdb into one mysql query.</description>
		<content:encoded><![CDATA[<p>@Richard</p>
<p>I was able to fix it.  By trying to log in via the Terminal, I noticed that for some reason, I was able to login over localhost but not over 127.0.0.1.  It probably has something to do with the DB config, or the router setup, maybe even virtual hosts.  </p>
<p>All I ended up doing to fix the problem was change &#8220;127.0.0.1&#8243; in the mysql_virtual_* files to &#8220;localhost&#8221;, which worked well.</p>
<p>Also, upon further research into dovecot configuration, I figured that in &#8220;dovecot-sql.conf&#8221;, the user query and password query lines have better syntax like this:</p>
<p>user_query = SELECT &#8216;/usr/local/virtual/%d/%n&#8217; as home, \<br />
 concat(&#8220;*:storage=&#8221;, quota) AS quota_rule FROM mailbox \<br />
 WHERE username = &#8220;%u&#8221; AND active = &#8220;1&#8243;</p>
<p>password_query = SELECT username as user, password, \<br />
 &#8216;/usr/local/virtual/%d/%n&#8217; as userdb_home, \<br />
 concat(&#8220;*:storage=&#8221;, quota) AS userdb_quota_rule \<br />
 FROM mailbox WHERE username = &#8216;%u&#8217; AND active = &#8217;1&#8242;</p>
<p>In the storage line, I changed it from your&#8217;s to &#8220;*:storage=&#8221; because &#8220;dirsize:storage=&#8221; is old and less efficient.<br />
Also, with this configuration, you need to have these lines on your dovecot.conf file</p>
<p>mail_location =maildir:~/Maildir<br />
mail_uid = 102<br />
mail_gid = 102</p>
<p>and the userdb should be changed to (adding the prefetch, for one query):</p>
<p>  userdb prefetch {<br />
  }<br />
  userdb sql {<br />
    args = /etc/dovecot/dovecot-sql.conf<br />
  }</p>
<p>If you have other reasons or suggestions for using your original syntax, please tell, as the more info I have, the better.</p>
<p>This puts the userdb and passdb into one mysql query.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/checking-that-the-mailserver-works/comment-page-1/#comment-7514</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Tue, 24 Aug 2010 19:41:16 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=771#comment-7514</guid>
		<description>@Jack, Can you try changing the line with &quot;host = 127.0.0.1&quot; into &quot;hosts = unix:/tmp/mysqld.sock&quot; in all the mysql_virtual_* files just to see that there aren&#039;t any network issues.</description>
		<content:encoded><![CDATA[<p>@Jack, Can you try changing the line with &#8220;host = 127.0.0.1&#8243; into &#8220;hosts = unix:/tmp/mysqld.sock&#8221; in all the mysql_virtual_* files just to see that there aren&#8217;t any network issues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/checking-that-the-mailserver-works/comment-page-1/#comment-7513</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Tue, 24 Aug 2010 19:40:11 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=771#comment-7513</guid>
		<description>@Conner, &quot;your.mailserver.tld&quot;=&quot;your full isp hostname&quot;.

Could be many things, what is the actual error message that Google returns. It could be that your ISP has blocked port 25 (you need to open up the submission port). Your firewall is blocking incoming traffic. etc.</description>
		<content:encoded><![CDATA[<p>@Conner, &#8220;your.mailserver.tld&#8221;=&#8221;your full isp hostname&#8221;.</p>
<p>Could be many things, what is the actual error message that Google returns. It could be that your ISP has blocked port 25 (you need to open up the submission port). Your firewall is blocking incoming traffic. etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Connor</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/checking-that-the-mailserver-works/comment-page-1/#comment-7511</link>
		<dc:creator>Connor</dc:creator>
		<pubDate>Tue, 24 Aug 2010 16:08:24 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=771#comment-7511</guid>
		<description>My server works, but when I try to send email to a gmail account (haven&#039;t tested anything else yet), the email is returned because it says that gmail wont directly accept email from my ISP, or something along those lines.

When you said this:

250-your.mailserver.tld
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-STARTTLS
250 8BITMIME

You meant 

250-&quot;your.ISP-HOSTNAME.tld&quot;, right?
Because when editing the postfix conf, I had these, which I obviously followed:

# The hostname is the hostname you get from your ISP.
# Don’t take one from your virtual domains
myhostname = server.isp-domain.tld
# you can reduce the debug level to level 0 when every is working.
debug_peer_level = 2

Was I not supposed to use my ISP&#039;s domain??  Why won&#039;t Google accept mail from my server?</description>
		<content:encoded><![CDATA[<p>My server works, but when I try to send email to a gmail account (haven&#8217;t tested anything else yet), the email is returned because it says that gmail wont directly accept email from my ISP, or something along those lines.</p>
<p>When you said this:</p>
<p>250-your.mailserver.tld<br />
250-PIPELINING<br />
250-SIZE 10240000<br />
250-ETRN<br />
250-STARTTLS<br />
250 8BITMIME</p>
<p>You meant </p>
<p>250-&#8221;your.ISP-HOSTNAME.tld&#8221;, right?<br />
Because when editing the postfix conf, I had these, which I obviously followed:</p>
<p># The hostname is the hostname you get from your ISP.<br />
# Don’t take one from your virtual domains<br />
myhostname = server.isp-domain.tld<br />
# you can reduce the debug level to level 0 when every is working.<br />
debug_peer_level = 2</p>
<p>Was I not supposed to use my ISP&#8217;s domain??  Why won&#8217;t Google accept mail from my server?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/checking-that-the-mailserver-works/comment-page-1/#comment-7508</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Mon, 23 Aug 2010 21:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=771#comment-7508</guid>
		<description>I checked the log file when I tried:

a login jack@mydomain.com password

and recieved:

a NO [UNAVAILABLE] Temporary authentication failure.

This was in system.log when I try to login with openssl

Aug 23 23:11:02 Mac-Server postfix/trivial-rewrite[20327]: warning: connect to mysql server 127.0.0.1: Can&#039;t connect to MySQL server on &#039;127.0.0.1&#039; (61)
Aug 23 23:11:02 Mac-Server postfix/trivial-rewrite[20327]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock&#124;fold_fix): table lookup problem
Aug 23 23:11:03 Mac-Server postfix/smtpd[20211]: warning: problem talking to service rewrite: Unknown error: 0
Aug 23 23:11:03 Mac-Server postfix/master[10373]: warning: process /usr/libexec/postfix/trivial-rewrite pid 20327 exit status 1
Aug 23 23:11:03 Mac-Server postfix/master[10373]: warning: /usr/libexec/postfix/trivial-rewrite: bad command startup -- throttling

The mysql_virtual_alias_maps.cf file appears fine, with a copy/paste of your code, and the real postfix db passwd filled in (of course).

Any help??</description>
		<content:encoded><![CDATA[<p>I checked the log file when I tried:</p>
<p>a login <a href="mailto:jack@mydomain.com">jack@mydomain.com</a> password</p>
<p>and recieved:</p>
<p>a NO [UNAVAILABLE] Temporary authentication failure.</p>
<p>This was in system.log when I try to login with openssl</p>
<p>Aug 23 23:11:02 Mac-Server postfix/trivial-rewrite[20327]: warning: connect to mysql server 127.0.0.1: Can&#8217;t connect to MySQL server on &#8217;127.0.0.1&#8242; (61)<br />
Aug 23 23:11:02 Mac-Server postfix/trivial-rewrite[20327]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem<br />
Aug 23 23:11:03 Mac-Server postfix/smtpd[20211]: warning: problem talking to service rewrite: Unknown error: 0<br />
Aug 23 23:11:03 Mac-Server postfix/master[10373]: warning: process /usr/libexec/postfix/trivial-rewrite pid 20327 exit status 1<br />
Aug 23 23:11:03 Mac-Server postfix/master[10373]: warning: /usr/libexec/postfix/trivial-rewrite: bad command startup &#8212; throttling</p>
<p>The mysql_virtual_alias_maps.cf file appears fine, with a copy/paste of your code, and the real postfix db passwd filled in (of course).</p>
<p>Any help??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/checking-that-the-mailserver-works/comment-page-1/#comment-7507</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Mon, 23 Aug 2010 20:52:55 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=771#comment-7507</guid>
		<description>Thanks a lot.  I knew to check mail.log, but didn&#039;t think to check system.log.  It turned out that there was an error with Dovecot.

There was another error, which you explain how to fix here:
http://switch.richard5.net/2006/08/19/fatal-open-lock-file-pidmasterpid/

However, it appears this fix did not fix the problem, beacause I had the error earlier, I fixed it per your instructions, and now it appears that on reboot, it started up again.  Can I just unload the file from launchctl and then delete it (or rename)?  Or is that an insufficient fix?</description>
		<content:encoded><![CDATA[<p>Thanks a lot.  I knew to check mail.log, but didn&#8217;t think to check system.log.  It turned out that there was an error with Dovecot.</p>
<p>There was another error, which you explain how to fix here:<br />
<a href="http://switch.richard5.net/2006/08/19/fatal-open-lock-file-pidmasterpid/" rel="nofollow">http://switch.richard5.net/2006/08/19/fatal-open-lock-file-pidmasterpid/</a></p>
<p>However, it appears this fix did not fix the problem, beacause I had the error earlier, I fixed it per your instructions, and now it appears that on reboot, it started up again.  Can I just unload the file from launchctl and then delete it (or rename)?  Or is that an insufficient fix?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

