<?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>Musings of an Apple Systems Administrator &#187; mail</title>
	<atom:link href="http://www.jonsblog.org/tag/mail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jonsblog.org</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 11 Jan 2012 19:33:26 +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>Stay off of blacklists: Limit postfix recipients</title>
		<link>http://www.jonsblog.org/2011/11/30/stay-off-of-blacklists-limit-postfix-recipients/</link>
		<comments>http://www.jonsblog.org/2011/11/30/stay-off-of-blacklists-limit-postfix-recipients/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 18:24:30 +0000</pubDate>
		<dc:creator>Jon Brown</dc:creator>
				<category><![CDATA[Mail Server]]></category>
		<category><![CDATA[OSX Server Configuration]]></category>
		<category><![CDATA[OSX System Administration]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.jonsblog.org/?p=458</guid>
		<description><![CDATA[I have heard this story it seems over and over again, I also have been the topic of many email horror stories. They usually go like this

“I just setup a new server and within days we were on a corporate email blacklist, I contacted the company in question and asked why are we on your blacklist, why won’t you deliver our email. They shared with me an email log of thousands of emails being sent from my mail server through several legitimate email accounts. I ensured that my server was not an open relay so I asked these users, if they had indeed sent this many emails in one shot without any kind of unsubscribe link in the footer of their email. They had! I was so shocked, now what do I do?”

This is an uncomfortable and very perilous position. You want to allow your users to send email to get their job done however you as a systems administrator need to comply with the “Can Spam Act” passed by the FCC to ensure that email continues to flow. You also have companies out there who will block you for violating this act as a precaution on their part. All the while your users can not be bothered to learn about proper email procedures.]]></description>
			<content:encoded><![CDATA[<p>I have heard this story it seems over and over again, I also have been the topic of many email horror stories. They usually go like this</p>
<blockquote><p>&#8220;I just setup a new server and within days we were on a corporate email blacklist, I contacted the company in question and asked why are we on your blacklist, why won&#8217;t you deliver our email. They shared with me an email log of thousands of emails being sent from my mail server through several legitimate email accounts. I ensured that my server was not an open relay so I asked these users, if they had indeed sent this many emails in one shot without any kind of unsubscribe link in the footer of their email. They had! I was so shocked, now what do I do?&#8221;</p></blockquote>
<p>This is an uncomfortable and very perilous position. You want to allow your users to send email to get their job done however you as a systems administrator need to comply with the &#8220;Can Spam Act&#8221; passed by the FCC to ensure that email continues to flow. You also have companies out there who will block you for violating this act as a precaution on their part. All the while your users can not be bothered to learn about proper email procedures. </p>
<p>In my experience the only thing you can do at this point is to limit how many emails are allowed to be sent at any given time. If you are using OSX Server for Mail or Postfix for Sendmail then this walkthrough will talk about how to limit email recipients and stay off those dreaded blacklists.</p>
<p>Here are the basics that you should know, the following are all settings that can be added to the /etc/postfix/main.cf file of your postfix setup.</p>
<p><strong>smtpd_recipient_limit (default 1000)</strong> parameter controls how many recipients the SMTP server will take per message delivery request. You can&#8217;t restrict this to a to/cc/bcc field &#8211; <strong>it&#8217;s for all recipients</strong>. For that you&#8217;d have to use a regular expression in header_checks to arbitrarily limit the length of each header to something reasonable.<span id="more-458"></span></p>
<p><strong>smtpd_recipient_overshoot_limit (default 1000)</strong> The number of recipients that a remote SMTP client can send in excess of the hard limit specified with smtpd_recipient_limit, before the Postfix SMTP server increments the per-session error count for each excess recipient.</p>
<p><strong>smtpd_hard_error_limit (default 20)</strong> parameter to know at what number of errors it will disconnect.</p>
<p>So you technically need to consider the 3 values here which affect both inbound &amp; outbound mail. Then there&#8217;s the throttling tools.</p>
<p><strong>smtpd_client_recipient_rate_limit (default: 0 no limit)</strong> The maximum number of recipient addresses that an SMTP client may specify in the time interval specified via anvil_rate_time_unit (default: 60s -careful adjusting this affects other things)&#8221; and note that this is &#8220;regardless of whether or not Postfix actually accepts those recipients&#8221; Those over will receive a 450 4.7.1 Error: too many recipients from [the.client.ip.address] It&#8217;s up to the client to deliver those recipients at some later time.</p>
<p><strong>smtpd_client_connection_rate_limit (default: 0)</strong> The maximal number of connection attempts any client is allowed to make to this service per time unit. The time unit is specified with the anvil_rate_time_unit configuration parameter.</p>
<p><strong>smtpd_client_message_rate_limit (default: 0)</strong> The maximal number of message delivery requests that any client is allowed to make to this service per time unit, regardless of whether or not Postfix actually accepts those messages. The time unit is specified with the anvil_rate_time_unit configuration parameter.</p>
<p>The purpose of these features are to limit abuse, as opposed to regulating legitimate mail traffic, but I use them that way in order to mitigate spam blacklisting. In my organization we limit the recipients from one email to 25 you can see the code from my sample /etc/postfix/main.cf. If your file does not have these values you can add them to the bottom of the file.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">smtpd_recipient_limit = <span style="color: #000000;">50</span>
smtpd_recipient_overshoot_limit = <span style="color: #000000;">51</span>
smtpd_hard_error_limit = <span style="color: #000000;">20</span>
smtpd_client_recipient_rate_limit = <span style="color: #000000;">50</span>
smtpd_client_connection_rate_limit = <span style="color: #000000;">10</span>
smtpd_client_message_rate_limit = <span style="color: #000000;">25</span>
default_extra_recipient_limit = <span style="color: #000000;">50</span>
duplicate_filter_limit = <span style="color: #000000;">50</span>
default_destination_recipient_limit = <span style="color: #000000;">50</span>
smtp_destination_recipient_limit = <span style="color: #007800;">$default_destination_recipient_limit</span></pre></td></tr></table></div>

<p>Once done you need to restart postfix</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> postfix reload</pre></div></div>

<p>I hope that you all found this article and walkthrough educational, as always please feel free to interact with me by posting questions and comments and I will answer them as best as I can. If you feel like any of this is wrong or could be improved upon also please leave a comment below, thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonsblog.org/2011/11/30/stay-off-of-blacklists-limit-postfix-recipients/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10.6.2 Mail Server draws a blank, subject?</title>
		<link>http://www.jonsblog.org/2010/01/26/10-6-2-mail-server-draws-a-blank-subject/</link>
		<comments>http://www.jonsblog.org/2010/01/26/10-6-2-mail-server-draws-a-blank-subject/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 00:14:43 +0000</pubDate>
		<dc:creator>Jon Brown</dc:creator>
				<category><![CDATA[Mail Server]]></category>
		<category><![CDATA[OSX Server Configuration]]></category>
		<category><![CDATA[blank]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[subject]]></category>

		<guid isPermaLink="false">http://www.jonsblog.org/?p=71</guid>
		<description><![CDATA[So we upgraded from 10.5.8 Mail server to 10.6.2 and everything went very smoothly. Mailstores were migrated and the transition from Cyrus to Dovecot was great. However once all the email was moved over and all the settings were double, and triple checked. People started complaining that every once in a while their email was [...]]]></description>
			<content:encoded><![CDATA[<p>So we upgraded from 10.5.8 Mail server to 10.6.2 and everything went very smoothly. Mailstores were migrated and the transition from Cyrus to Dovecot was great. However once all the email was moved over and all the settings were double, and triple checked. People started complaining that every once in a while their email was not getting through the server, it was getting bounced back to the sender. At first I thought that it was an internal issue with the users on our network, then I got a complaint from someone from outside the organization trying to send an email to one of our users.</p>
<p>Great, another strange Apple bug I thought until someone was able to forward me the bounced email to my personal email account. Further insight in the error showed that the message was getting bounced back due to a blank subject line.  As you can see from the example below its due to a blank or empty subject heading. Yes, apparently Apple has added this as an actual &#8220;Feature&#8221;. You can turn this off however by commenting out the only line of code in the file /etc/postfix/custom_header_checks.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">=====================================
This is the mail system at host mail.xxxxxxx.org.
&nbsp;
I<span style="color: #ff0000;">'m sorry to have to inform you that your message could not
be delivered to one or more recipients. It'</span>s attached below.
&nbsp;
For further assistance, please send mail to postmaster.
&nbsp;
If you <span style="color: #000000; font-weight: bold;">do</span> so, please include this problem report. You can
delete your own text from the attached returned message.
&nbsp;
The mail system
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;</span>user<span style="color: #000000; font-weight: bold;">@</span>domain.org<span style="color: #000000; font-weight: bold;">&gt;</span>: host
mail.domain.org http:<span style="color: #000000; font-weight: bold;">//</span>xx.xxx.xxx.xxx said: <span style="color: #000000;">550</span> 5.7.1 empty subject
=====================================</pre></td></tr></table></div>

<p><span id="more-71"></span><br />
Turn off the mail service before you do this. Once the mail service is off edit the file using sudo pico.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>^subject: <span style="color: #000000; font-weight: bold;">*</span>$<span style="color: #000000; font-weight: bold;">/</span> REJECT empty subject header <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
into:
&nbsp;
<span style="color: #666666; font-style: italic;">#/^subject: *$/ REJECT empty subject header in /etc/</span></pre></td></tr></table></div>

<p>Start mail back up again and you will notice that the blank subject line blues are gone away.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonsblog.org/2010/01/26/10-6-2-mail-server-draws-a-blank-subject/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>10.6.2 Roundcube &amp; LDAP</title>
		<link>http://www.jonsblog.org/2010/01/18/10-6-2-roundcube-ldap/</link>
		<comments>http://www.jonsblog.org/2010/01/18/10-6-2-roundcube-ldap/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 05:30:20 +0000</pubDate>
		<dc:creator>Jon Brown</dc:creator>
				<category><![CDATA[Mail Server]]></category>
		<category><![CDATA[OSX Server Configuration]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[roundcube]]></category>
		<category><![CDATA[squirrelmail]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://www.jonsblog.org/?p=11</guid>
		<description><![CDATA[So like many other organizations mine was finally fed up with Horde as a webmail system. They had used squirrel mail in the past and was unimpressed by the graphical interface but admitted that it while it lacked glamour it always did perform as they would have expected. Before I had started there their mail [...]]]></description>
			<content:encoded><![CDATA[<p>So like many other organizations mine was finally fed up with Horde as a webmail system. They had used squirrel mail in the past and was unimpressed by the graphical interface but admitted that it while it lacked glamour it always did perform as they would have expected. Before I had started there their mail system was running on a Linux box using Plesk and running Horde as their primary webmail interface. Immediately I got them into an XServe running OSX mail since their entire organization consisted of Apple iMacs figured it was the way to go, and got them setup with Squirrelmail and Roundcube.</p>
<p>I found Roundcube to be extremely easy to setup, however sort of hard to configure and tweak for use on an OSX Server. The biggest drawback to the old mail system was that while everyone had email accounts they were local accounts meaning their was no LDAP database at work so there was no way to have an auto complete or global LDAP address book  that most of the people at our organization really craved. I decided that when moving to 10.6.2 we would have to get this feature established and I am documenting this here clearly as I found there was limited documentation for and I know there are many people using 10.6.2 and Roundcube together. </p>
<p>Once Roundcube is installed head over to main.inc.php in the Roundcube config directory. I wanted the user to have access to the LDAP address book and also have the ability to have their own so on this line make sure that SQL is chosen as the primarty type of address book if this is your intent.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$rcmail_config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'address_book_type'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'sql'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>in the main.inc.php file the LDAP settings are kind of tricky. It gives  you an example of a functional LDAP setup below for an organization named Verisign locate these lines in the main.inc.php file<br />
<span id="more-11"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// In order to enable public ldap search, configure an array like the Verisign</span>
<span style="color: #666666; font-style: italic;">// example further below. if you would like to test, simply uncomment the example.</span>
<span style="color: #000088;">$rcmail_config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'ldap_public'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>Verisign<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Notice that the third line is un-commented meaning that it is an active setting. Which means that what we are about to do below will not register until we comment out this line otherwise there will be two active configurations and neither will work this really tripped me up and had me stumped for days until I realized that I had two</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #000088;">$rcmail_config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'ldap_public'</span><span style="color: #009900;">&#93;</span></pre></td></tr></table></div>

<p> attributes at work at the same time so next comment this out as below.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// In order to enable public ldap search, configure an array like the Verisign</span>
<span style="color: #666666; font-style: italic;">// example further below. if you would like to test, simply uncomment the example.</span>
<span style="color: #666666; font-style: italic;">// $rcmail_config['ldap_public'] = array(Verisign);</span></pre></td></tr></table></div>

<p>Once this is done go down to the example below and start uncommenting the LDAP configuration lines one by one and filling out the information as you go here is an example of my configuration for the Name use whatever name you want the address book to show up as in the roundcube address book area. Your host name should be the fully qualified domain name of your directory server. Your default port on an ODM is 389. Only use TLS if you are using a secure SSL connection and always use User Specific so that the user is what is causing the OD Bind during lookups rather than the Directory Admin.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$rcmail_config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'ldap_public'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Verisign'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
  <span style="color: #0000ff;">'name'</span>          <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Company Name'</span><span style="color: #339933;">,</span>
  <span style="color: #0000ff;">'hosts'</span>         <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'fullyqualified.domainofdirectoryserver.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
  <span style="color: #0000ff;">'port'</span>          <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">389</span><span style="color: #339933;">,</span>
  <span style="color: #0000ff;">'use_tls'</span>	    <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
  <span style="color: #0000ff;">'user_specific'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span></pre></td></tr></table></div>

<p>Next you must define the Base Search DN which is always your fully qualified domain name split up using dc= so if your directory name was directory.verisign.com then your base dn would be dc=directory, dc=verisign, dc=com. Here is what is not documented in many places it took me a long time to figure out that the Bind DN must have an active user or the directory admins UID here as well as cn=users, so that it knows how to find that user. I also configured mine to be non writable because I was unsure how safe this would be with the ODM.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #0000ff;">'base_dn'</span>       <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'dc=fullyqualified,dc=domainofdirectoryserver,dc=com'</span><span style="color: #339933;">,</span>
  <span style="color: #0000ff;">'bind_dn'</span>       <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'uid=DirAdmin,cn=users,dc=fullyqualified,dc=domainofdirectoryserver,dc=com'</span><span style="color: #339933;">,</span>
  <span style="color: #0000ff;">'bind_pass'</span>     <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'DirAdmin_Password'</span><span style="color: #339933;">,</span>
  <span style="color: #0000ff;">'writable'</span>      <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span></pre></td></tr></table></div>

<p>In order to get an actual accurate listing in the address book you must tweak the settings to include the specific user settings int he ODM LDAP directory.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #0000ff;">'LDAP_Object_Classes'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;top&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;person&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;inetOrgPerson&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;abxldapPerson&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> 
  <span style="color: #0000ff;">'required_fields'</span>     <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;givenName&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;cn&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;sn&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;mail&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>    
  <span style="color: #0000ff;">'LDAP_rdn'</span>      <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'mail'</span><span style="color: #339933;">,</span> 
  <span style="color: #0000ff;">'ldap_version'</span>  <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span>      
  <span style="color: #0000ff;">'search_fields'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'givenName'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'cn'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'sn'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'mail'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>  <span style="color: #666666; font-style: italic;">// fields to search in</span>
  <span style="color: #0000ff;">'name_field'</span>    <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'cn'</span><span style="color: #339933;">,</span>    
  <span style="color: #0000ff;">'email_field'</span>   <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'mail'</span><span style="color: #339933;">,</span>  
  <span style="color: #0000ff;">'surname_field'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sn'</span><span style="color: #339933;">,</span>   
  <span style="color: #0000ff;">'firstname_field'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'givenName'</span><span style="color: #339933;">,</span> 
  <span style="color: #0000ff;">'sort'</span>          <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'givenName'</span><span style="color: #339933;">,</span>    
  <span style="color: #0000ff;">'scope'</span>         <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sub'</span><span style="color: #339933;">,</span>  
  <span style="color: #0000ff;">'filter'</span>        <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'givenName=*'</span><span style="color: #339933;">,</span>     
  <span style="color: #0000ff;">'fuzzy_search'</span>  <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>These settings will help you establish the correct mappings to Last Name, First Name, Email Address and Full Name or Given Name. These settings were very hard to find as there was limited documentation on both Apples part and on the Roundcube forums. Once done here I set it up to auto complete from the sql address book first and then to default over to the LDAP address book.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// An ordered array of the ids of the addressbooks that should be searched</span>
<span style="color: #666666; font-style: italic;">// when populating address autocomplete fields server-side. ex: array('sql','Verisign');</span>
<span style="color: #000088;">$rcmail_config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'autocomplete_addressbooks'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sql'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Verisign'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>In parting my only piece of advice is to use the configuration here and remove the term Verisign and replace that variable with one that makes sense for you and your organization. Lastly if this does not work make sure that you have the correct domain name of the server and also ensure that you have enabled users to access the LDAP directory in Workgroup Manager.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonsblog.org/2010/01/18/10-6-2-roundcube-ldap/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>10.5.8 Server Upgrade : Mail</title>
		<link>http://www.jonsblog.org/2010/01/17/leopard-server-upgrade-mail-10-6-2/</link>
		<comments>http://www.jonsblog.org/2010/01/17/leopard-server-upgrade-mail-10-6-2/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 05:11:24 +0000</pubDate>
		<dc:creator>Jon Brown</dc:creator>
				<category><![CDATA[Mail Server]]></category>
		<category><![CDATA[OSX Server Configuration]]></category>
		<category><![CDATA[OSX System Administration]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://www.jonsblog.org/?p=5</guid>
		<description><![CDATA[Recently I have undergone a massive change, we have decided at our organization to go with Snow Leopard server in place of our Leopard Servers. Knowing that this could be problematic to use Apples built in GUI for migrating data I decided to start with a 100% clean configured Snow Leopard server and slowly start [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I have undergone a massive change, we have decided at our organization to go with Snow Leopard server in place of our Leopard Servers. Knowing that this could be problematic to use Apples built in GUI for migrating data I decided to start with a 100% clean configured Snow Leopard server and slowly start to migrate items over to the new server. Our current Leopard Server was running an DNS, Open Directory Master, Mail, and Wiki Server services. I have decided to share my experience in migrating our mail from one server to another.</p>
<p>setup the 10.6.2 Snow Leopard server clean before I did anything I setup DNS on the server and manually retyped and rechecked all of the DNS records from the 10.5 server to the 10.6.2 server. Once I verified that the DNS records were set. I checked the server&#8217;s DNS by running sudo changeip -checkhostname and it came back clean. Great good to go, or so I thought.</p>
<p>I had setup split horizon DNS on the server, the Open Directory Master, has already been setup on a single use Mac Mini Server. The Mac Mini Server is running the ODM and DNS. The DNS on the Mini is self referencing and my router has the public ip mapped to the private. The new Mail server (10.6.2) also running DNS had a record pointing to the public ip of the ODM. Great, next step bind the mail server to the ODM so that I can start to migrate mail accounts.</p>
<p>I was working on this project around 10:00pm in the evening not knowing how long that it would take to migrate the accounts from Cyrus to Dovecot, but I had studied the Apple upgrade instructions for weeks prior so I felt like I had it totally under control. I followed the instructions and used the code from page 42 of the manual.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>libexec<span style="color: #000000; font-weight: bold;">/</span>dovecot<span style="color: #000000; font-weight: bold;">/</span>migrate_mail_data.pl <span style="color: #660033;">--moveMail</span> <span style="color: #000000;">0</span> <span style="color: #660033;">--cyrusBin</span> <span style="color: #ff0000;">&quot;/Volumes/10.5 Server Volume Name/usr/bin/cyrus/bin&quot;</span> <span style="color: #660033;">--database</span> <span style="color: #ff0000;">&quot;/Volumes/10.5 Server Volume Name/var/imap&quot;</span> <span style="color: #660033;">--sourceSpool</span> <span style="color: #ff0000;">&quot;/Volumes/10.5 Server Volume Name/var/spool/imap&quot;</span> <span style="color: #660033;">--targetSpool</span> <span style="color: #ff0000;">&quot;/var/spool/imap/dovecot/mail&quot;</span></pre></div></div>

<p><span id="more-5"></span><br />
The script will tell you if your doing something wrong, which is helpful. My biggest question was how long would it take to migrate 30GB of mail to the new mail server. The answer, exactly two hours. I had decided that instead of using a firewire cable to connect the two servers together that I would simply pop the HD out of the old mail server and put it into the new server. This made a huge difference in the time of migration.</p>
<p>Once it finished I turned on mail, and everything started working fine. Great! I cleaned up my tools and logged out of the server and went home around 2am. The next few days were pure hell. As mentioned above I decided to use split horizon DNS. It was my first attempt at doing this and what I had noticed in the logs were a myriad of disconnect warnings every 5 min the mail server was getting disconnected from the ODM and then reconnecting causing some major issues.</p>
<p>The log files were filling up so fast that they were causing kernel panics, I had to reboot the server many times once every couple of hours, I decided to call Apple. The Apple representative captured my logs, and promptly told me that I would have to reformat the hard drive and completely start over. I told him that this was a clean install and that no way would I be starting over. He offered no other solution or advice other than telling me that it was not normal for a new server to have kernel panics this early in the game.</p>
<p>I decided to check my DNS turns out that the route statement in the router, was not properly entered. It was getting to the server but it was unable to retain a connection. I re-entered the route statement correctly and then rebooted the router. Almost immediately the issues stopped. Apple has come a long way in their migration capabilities if your ever having issues with your 10.6.2 mail service DNS is almost always the culprit!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonsblog.org/2010/01/17/leopard-server-upgrade-mail-10-6-2/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

