https://wiki.qnap.com/mediawiki/index.php?title=Dovecot_Compilation&feed=atom&action=historyDovecot Compilation - Revision history2024-03-29T05:01:39ZRevision history for this page on the wikiMediaWiki 1.39.3https://wiki.qnap.com/mediawiki/index.php?title=Dovecot_Compilation&diff=932&oldid=prevGlenn: +Category:Adding new services2015-10-26T09:36:04Z<p>+<a href="/wiki/Category:Adding_new_services" title="Category:Adding new services">Category:Adding new services</a></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:36, 26 October 2015</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l35">Line 35:</td>
<td colspan="2" class="diff-lineno">Line 35:</td></tr>
<tr><td class="diff-marker"></td><td style="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;"><br/></td><td class="diff-marker"></td><td style="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;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div>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.<br></div></td><td class="diff-marker"></td><td style="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;"><div>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.<br></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Adding new services]]</ins></div></td></tr>
</table>Glennhttps://wiki.qnap.com/mediawiki/index.php?title=Dovecot_Compilation&diff=122&oldid=prevAdmin: Created page with "= Dovecot<br> = 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..."2015-06-16T10:12:45Z<p>Created page with "= Dovecot<br> = 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..."</p>
<p><b>New page</b></p><div>= Dovecot<br> =<br />
<br />
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.<br> <br />
<br />
== Compile Dovecot<br> ==<br />
<br />
=== IPKG<br> ===<br />
<br />
First install ipkg. Then install a number of needed packages:<br> <br />
<pre>ipkg install autoconf automake bash binutils bzip2 coreutils cyrus-sasl cyrus-sasl-libs diffutils findutils \<br />
gawk gcc gdbm gnutls gnutls-dev grep groff gzip libc-dev libdb libdb52 libgcrypt libstdc++ make man ncurses \<br />
ncursesw openldap openldap-libs openssl openssl-dev pcre perl readline sed tar zlib<br />
</pre> <br />
Then make sure, that '/opt/bin' and '/opt/sbin' are FIRST in $PATH<br> <br />
<pre>export PATH=/opt/bin:/opt/sbin:$PATH<br />
</pre> <br />
Then add freshly installed libraries to the list of available ones <br />
<pre>echo /opt/lib &gt;&gt; /etc/ld.so.conf<br />
<br />
ldconfig</pre> <br />
Then compile:<br> <br />
<pre>make distclean<br />
./configure --prefix=/opt --with-ldap=yes --with-ssldir=/opt/etc/ssl<br />
make<br />
make install<br />
</pre> <br />
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.<br> <br />
<br />
If make fails with an error like "object name conflicts", you probably don't have a real sort installed - or (again) your PATH is defective. <br />
<br />
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<br> <br />
<pre>which sed<br />
</pre> <br />
If everyhing is working fine - congratulations, you can now configure dovecot at /opt/etc/dovecot <br />
<br />
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.<br></div>Admin