<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.qnap.com/mediawiki/index.php?title=Dovecot_Compilation&amp;feed=atom&amp;action=history</id>
	<title>Dovecot Compilation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.qnap.com/mediawiki/index.php?title=Dovecot_Compilation&amp;feed=atom&amp;action=history"/>
	<link rel="alternate" type="text/html" href="https://wiki.qnap.com/mediawiki/index.php?title=Dovecot_Compilation&amp;action=history"/>
	<updated>2022-08-31T22:33:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://wiki.qnap.com/mediawiki/index.php?title=Dovecot_Compilation&amp;diff=932&amp;oldid=prev</id>
		<title>Glenn: +Category:Adding new services</title>
		<link rel="alternate" type="text/html" href="https://wiki.qnap.com/mediawiki/index.php?title=Dovecot_Compilation&amp;diff=932&amp;oldid=prev"/>
		<updated>2015-10-26T09:36:04Z</updated>

		<summary type="html">&lt;p&gt;+&lt;a href=&quot;/wiki/Category:Adding_new_services&quot; title=&quot;Category:Adding new services&quot;&gt;Category:Adding new services&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:36, 26 October 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l35&quot; &gt;Line 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;And don't forget: Changes to /etc are often not permanent and need to be repeated after rebooting your QNAP. If you start a new shell (e.g. by writing a compile-script for dovecot), you probably have to redefine e.g. $PATH.&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;And don't forget: Changes to /etc are often not permanent and need to be repeated after rebooting your QNAP. If you start a new shell (e.g. by writing a compile-script for dovecot), you probably have to redefine e.g. $PATH.&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Adding new services]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Glenn</name></author>
	</entry>
	<entry>
		<id>https://wiki.qnap.com/mediawiki/index.php?title=Dovecot_Compilation&amp;diff=122&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;= Dovecot&lt;br&gt;  =  When trying to use a QNAP as mailserver, one can decide to use the available QNAP-provided mailservers ... whatever the benefits of this approach, it is ofte...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.qnap.com/mediawiki/index.php?title=Dovecot_Compilation&amp;diff=122&amp;oldid=prev"/>
		<updated>2015-06-16T10:12:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Dovecot&amp;lt;br&amp;gt;  =  When trying to use a QNAP as mailserver, one can decide to use the available QNAP-provided mailservers ... whatever the benefits of this approach, it is ofte...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Dovecot&amp;lt;br&amp;gt;  =&lt;br /&gt;
&lt;br /&gt;
When trying to use a QNAP as mailserver, one can decide to use the available QNAP-provided mailservers ... whatever the benefits of this approach, it is often not sufficient. For example it is not possible, to use ldap-based authentification together with an IMAP-server.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Compile Dovecot&amp;lt;br&amp;gt;  ==&lt;br /&gt;
&lt;br /&gt;
=== IPKG&amp;lt;br&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
First install ipkg. Then install a number of needed packages:&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;ipkg install autoconf automake bash binutils bzip2 coreutils cyrus-sasl cyrus-sasl-libs diffutils findutils \&lt;br /&gt;
gawk gcc gdbm gnutls gnutls-dev grep groff gzip libc-dev libdb libdb52 libgcrypt libstdc++ make man ncurses \&lt;br /&gt;
ncursesw openldap openldap-libs openssl openssl-dev pcre perl readline sed tar zlib&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
Then make sure, that '/opt/bin' and '/opt/sbin' are FIRST in $PATH&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/opt/bin:/opt/sbin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
Then add freshly installed libraries to the list of available ones &lt;br /&gt;
&amp;lt;pre&amp;gt;echo /opt/lib &amp;amp;gt;&amp;amp;gt; /etc/ld.so.conf&lt;br /&gt;
&lt;br /&gt;
ldconfig&amp;lt;/pre&amp;gt; &lt;br /&gt;
Then compile:&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;make distclean&lt;br /&gt;
./configure --prefix=/opt --with-ldap=yes --with-ssldir=/opt/etc/ssl&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
If configure fails e.g. with a syntax-error spawn by gawk or awk, your PATH is defective and the pre-installed QNAP versions of sed or gawk are used. Please fix your path.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
If make fails with an error like &amp;quot;object name conflicts&amp;quot;, you probably don't have a real sort installed - or (again) your PATH is defective. &lt;br /&gt;
&lt;br /&gt;
So you might want to make *sure* that sed/find/sort/(g)awk are called from the /opt-directories and not from e.g. /bin or /usr/bin.You can check which version is used by running&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;which sed&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
If everyhing is working fine - congratulations, you can now configure dovecot at /opt/etc/dovecot &lt;br /&gt;
&lt;br /&gt;
And don't forget: Changes to /etc are often not permanent and need to be repeated after rebooting your QNAP. If you start a new shell (e.g. by writing a compile-script for dovecot), you probably have to redefine e.g. $PATH.&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>