<?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>Bits of Arrogance &#187; SASL</title>
	<atom:link href="https://www.crummylogic.com/wordpress/?feed=rss2&#038;tag=sasl" rel="self" type="application/rss+xml" />
	<link>https://www.crummylogic.com/wordpress</link>
	<description>Making myself pervasive</description>
	<lastBuildDate>Wed, 04 Oct 2017 17:25:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.4</generator>
	<item>
		<title>CentOS sieve authentication using saslauthd</title>
		<link>https://www.crummylogic.com/wordpress/?p=404</link>
		<comments>https://www.crummylogic.com/wordpress/?p=404#comments</comments>
		<pubDate>Sun, 03 Jul 2016 21:37:44 +0000</pubDate>
		<dc:creator><![CDATA[jrdalrymple]]></dc:creator>
				<category><![CDATA[Technology junk]]></category>
		<category><![CDATA[Cyrus]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SASL]]></category>
		<category><![CDATA[sieve]]></category>

		<guid isPermaLink="false">http://www.crummylogic.com/wordpress/?p=404</guid>
		<description><![CDATA[Quick solution to an infuriating problem. Cyrus IMAP server is installed and authenticating just fine using saslauthd to my Active Directory: /etc/imapd.conf: ...snip... sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN LOGIN ...snip... /etc/sysconfig/saslauthd: SOCKETDIR=/run/saslauthd MECH=ldap FLAGS="-r" However I can&#8217;t get my sieve clients including sieveshell to authenticate: [root@mailserver /]# sieveshell --user="first.last@example.com" --authname="first.last@example.com" localhost connecting &#8230; <a href="https://www.crummylogic.com/wordpress/?p=404" class="more-link">Continue reading <span class="screen-reader-text">CentOS sieve authentication using saslauthd</span> <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Quick solution to an infuriating problem.</p>
<p>Cyrus IMAP server is installed and authenticating just fine using saslauthd to my Active Directory:</p>
<p>/etc/imapd.conf:</p>
<pre>
...snip...
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN LOGIN
...snip...
</pre>
<p>/etc/sysconfig/saslauthd:</p>
<pre>
SOCKETDIR=/run/saslauthd
MECH=ldap
FLAGS="-r"
</pre>
<p>However I can&#8217;t get my sieve clients including sieveshell to authenticate:</p>
<pre>
[root@mailserver /]# sieveshell --user="first.last@example.com" --authname="first.last@example.com" localhost
connecting to localhost
connect: Connection refused
unable to connect to server at /bin/sieveshell line 170.
</pre>
<p>Telnet-ing in yielded no auth mech&#8217;s presented:</p>
<pre>
[root@mailserver /]# telnet localhost sieve
Trying ::1...
Connected to localhost.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.4.17-Fedora-RPM-2.4.17-8.el7_1"
"SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope relational regex subaddress copy"
"STARTTLS"
"UNAUTHENTICATE"
OK
</pre>
<p>No auth mech&#8217;s listed, e.g. PLAIN, LOGIN, etc. What gives? The search string &#8220;timsieved sasl_auth_mech&#8221; yielded 3 results on Google, luckily <a href="https://www.wogri.at/tutorials/cyrus-sieve/">this page</a> was one of them. How often is it simply that some package you need isn&#8217;t installed?</p>
<pre>
[root@mailserver /]# yum -y install cyrus-sasl-plain
</pre>
<p>That&#8217;s it:</p>
<pre>
[root@mailserver /]# telnet localhost sieve
Trying ::1...
Connected to localhost.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.4.17-Fedora-RPM-2.4.17-8.el7_1"
"SASL" "PLAIN LOGIN"
"SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope relational regex subaddress copy"
"STARTTLS"
"UNAUTHENTICATE"
OK
</pre>
<p>Another takeaway I learned &#8211; if you want disable TLS for just Cyrus sieve adjust your /etc/cyrus.conf as such:</p>
<pre>
  sieve         cmd="timsieved" -C /etc/sieve.conf listen="sieve" prefork=0
</pre>
<p>And just modify the /etc/sieve.conf file to suit your needs. I know this has caused me issues in the past and never knew it could be tuned separate of imapd.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.crummylogic.com/wordpress/?feed=rss2&#038;p=404</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
