<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.frotmail.nl/index.php?action=history&amp;feed=atom&amp;title=Installatie_Postfix_SASL</id>
	<title>Installatie Postfix SASL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.frotmail.nl/index.php?action=history&amp;feed=atom&amp;title=Installatie_Postfix_SASL"/>
	<link rel="alternate" type="text/html" href="https://wiki.frotmail.nl/index.php?title=Installatie_Postfix_SASL&amp;action=history"/>
	<updated>2026-08-06T03:37:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.frotmail.nl/index.php?title=Installatie_Postfix_SASL&amp;diff=62&amp;oldid=prev</id>
		<title>Eric: Created page with &quot;= SASL = Download sasl van   ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/  uitpakken:  tar -zvxf cyrus-sasl-2.1.21.tar.gz  cd cyrus-sasl-2.1.21  Compilen:  ./configure  make  make install  Intressant leesvoer:    CYRUS SASL  Before installing CYRUS, you should know that mysql libraries are assumed to be  stored in /usr/local/mysql/lib/mysql and header files  are in /usr/local/mysql/include/mysql  directories. If you are using Redhat, your mileage may differ a little bit. You...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.frotmail.nl/index.php?title=Installatie_Postfix_SASL&amp;diff=62&amp;oldid=prev"/>
		<updated>2022-04-05T09:20:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= SASL = Download sasl van   ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/  uitpakken:  tar -zvxf cyrus-sasl-2.1.21.tar.gz  cd cyrus-sasl-2.1.21  Compilen:  ./configure  make  make install  Intressant leesvoer:    CYRUS SASL  Before installing CYRUS, you should know that mysql libraries are assumed to be  stored in /usr/local/mysql/lib/mysql and header files  are in /usr/local/mysql/include/mysql  directories. If you are using Redhat, your mileage may differ a little bit. You...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= SASL =&lt;br /&gt;
Download sasl van &lt;br /&gt;
 ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/&lt;br /&gt;
&lt;br /&gt;
uitpakken:&lt;br /&gt;
 tar -zvxf cyrus-sasl-2.1.21.tar.gz&lt;br /&gt;
 cd cyrus-sasl-2.1.21&lt;br /&gt;
&lt;br /&gt;
Compilen:&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Intressant leesvoer: &lt;br /&gt;
&lt;br /&gt;
 CYRUS SASL&lt;br /&gt;
 Before installing CYRUS, you should know that mysql libraries are assumed to be&lt;br /&gt;
 stored in /usr/local/mysql/lib/mysql and header files  are in /usr/local/mysql/include/mysql&lt;br /&gt;
 directories. If you are using Redhat, your mileage may differ a little bit. Yours will be probably&lt;br /&gt;
 in /usr/lib/mysql or something like that. So don&amp;#039;t panic if cyrus displays errors about libraries then start&lt;br /&gt;
 looking for where your libraries are stored.&lt;br /&gt;
&lt;br /&gt;
 $cd /usr/local&lt;br /&gt;
 $wget  -c  ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.20.tar.gz&lt;br /&gt;
 $tar zxf  cyrus-sasl-2.1.20.tar.gz&lt;br /&gt;
 $cd cyrus-sasl-2.1.20&lt;br /&gt;
 $export CPPFLAGS=&amp;quot;-I/usr/local/mysql/include/mysql&amp;quot;&lt;br /&gt;
 $./configure \&lt;br /&gt;
 --enable-anon \&lt;br /&gt;
 --enable-plain \&lt;br /&gt;
 --enable-login \&lt;br /&gt;
 --enable-sql \&lt;br /&gt;
 --disable-krb4 \&lt;br /&gt;
 --disable-otp \&lt;br /&gt;
 --disable-cram \&lt;br /&gt;
 --disable-digest \&lt;br /&gt;
 --with-mysql=/usr/local/mysql/lib/mysql \&lt;br /&gt;
 --without-pam \&lt;br /&gt;
 --without-saslauthd \&lt;br /&gt;
 --without-pwcheck \&lt;br /&gt;
 --with-dblib=berkeley \&lt;br /&gt;
 --with-bdb-libdir=/usr/local/bdb/lib \&lt;br /&gt;
 --with-bdb-incdir=/usr/local/bdb/include \&lt;br /&gt;
 --with-openssl=/usr/local/ssl \&lt;br /&gt;
 --with-plugindir=/usr/local/lib/sasl2&lt;br /&gt;
 $make&lt;br /&gt;
 #make install&lt;br /&gt;
 #ln -s /usr/local/lib/sasl2 /usr/lib/sasl2&lt;br /&gt;
 #echo &amp;quot;/usr/local/lib/&amp;quot; &amp;gt;&amp;gt; /etc/ld.so.conf&lt;br /&gt;
 #ldconfig &lt;br /&gt;
&lt;br /&gt;
Dan roept hij dat je libs ergens anders worden geplaatst als waar ze nodig zijn, los dit op met een symlinkje:&lt;br /&gt;
 ln /usr/local/lib/sasl2 /usr/lib/sasl2&lt;br /&gt;
&lt;br /&gt;
Omdat mijn postfix install later niet helemaal goed ging lijkt het me goed om hier een keertje ldconfig te draaien&lt;br /&gt;
 ldconfig&lt;br /&gt;
&lt;br /&gt;
=Postfix=&lt;br /&gt;
&lt;br /&gt;
==intro==&lt;br /&gt;
&lt;br /&gt;
Nu hebben we SASL zelf geïnstalleerd en gaan we verder met postfix, hiervoor kunnen we de procedure volgen van [[Installatie Postfix]] maar met een paar kleine aanpassingen.&lt;br /&gt;
&lt;br /&gt;
==Pre-make==&lt;br /&gt;
Voor we make gaan runnen moesten we dit commando uitvoeren:&lt;br /&gt;
 make -f Makefile.init makefiles \                         &lt;br /&gt;
     &amp;#039;CCARGS=-DHAS_MYSQL -I/usr/include/mysql&amp;#039; \     &lt;br /&gt;
     &amp;#039;AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Echter om SASL mee te compilen wordt dit het volgende:&lt;br /&gt;
 make -f Makefile.init makefiles \                         &lt;br /&gt;
     &amp;#039;CCARGS=-DHAS_MYSQL -DUSE_SASL_AUTH -I/usr/include/mysql -I/usr/local/include/sasl&amp;#039; \     &lt;br /&gt;
     &amp;#039;AUXLIBS=-L/usr/lib/mysql -L/usr/local/lib -lmysqlclient -lz -lm -lsasl2&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Post install==&lt;br /&gt;
Na de installatie van postfix moeten we voor SASL nog wat extra opties configureren:&lt;br /&gt;
&lt;br /&gt;
Activeer SASL in de server&lt;br /&gt;
&lt;br /&gt;
/etc/postfix/main.cf:&lt;br /&gt;
    smtpd_sasl_auth_enable = yes&lt;br /&gt;
&lt;br /&gt;
Ingelogde users mogen relayen op de server&lt;br /&gt;
&lt;br /&gt;
/etc/postfix/main.cf:&lt;br /&gt;
    smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated ...&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Eric</name></author>
	</entry>
</feed>