LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 01-03-2010, 01:59 AM   #1
gezley
Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware-64, Crux-64, NetBSD-64
Posts: 558

Rep: Reputation: 270Reputation: 270Reputation: 270
Postfix Slackbuild with Cyrus-SASL, LDAP and MySQL


Slackware 13 64 - full installation
Postfix from slackbuilds dot org
Dovecot from same

Hi
has anyone recompiled Postfix using the Slackbuild script, modifying the script to include support for Cyrus-SASL, OpenLDAP, and MySQL in the build, while retaining Dovecot SASL and TLS?
If so I would appreciate it if they could post the CCARGS and AUXLIBS commands. I am having some difficulty getting this working.
Thank you.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-03-2010, 04:51 AM   #2
gezley
Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware-64, Crux-64, NetBSD-64
Posts: 558

Original Poster
Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally Posted by gezley View Post
has anyone recompiled Postfix using the Slackbuild script, modifying the script to include support for Cyrus-SASL, OpenLDAP, and MySQL in the build, while retaining Dovecot SASL and TLS?
If so I would appreciate it if they could post the CCARGS and AUXLIBS commands.
Hi
I struggled through this and I think I have finally succeeded. This is the first time I have recompiled a Slackware package by editing the slackbuild, and it has been a very rewarding experience. Here is what I did:

1) Used standard Slack openssl
2) Used standard Slack cyrus-sasl
3) Recompiled OpenLDAP - first I downloaded the updated source from the OpenLDAP site and then I edited the slackbuild so that the version number matched the updated source; and second I edited the slackbuild script so that the OpenLDAP server was enabled (the server is disabled by default in Slackware 13-64). I did this by changing "disable-slapd" and "disable-slurpd" to "enable-" in both cases.
4) Used standard Slack mysql
5) Created dovecot user and group, and installed dovecot from slackbuilds
6) Created postfix user and group, and postdrop group. Recompiled Postfix - downloaded up-to-date source from postfix.org and edited slackbuild accordingly. Then edited slackbuild to compile support for cyrus-sasl, mysql and openldap in, using the following CCARGS and AUXLIBS command:

make makefiles \
CCARGS='-DUSE_SASL_AUTH -DUSE_TLS \
-DUSE_CYRUS_SASL -DHAS_MYSQL \
-DHAS_LDAP -I/usr/include/sasl \
-I/usr/include/mysql' \
AUXLIBS="-L/usr/lib64/mysql -lssl \
-lcrypto -lsasl2 -lmysqlclient -lz -lm \
-lldap -llber"

Dovecot SASL and TLS are compiled in by default.

I wanted Cyrus SASL because I need my Postfix server to act as a client to my Fastmail SMTP server, and Dovecot SASL is server-only.

Everything seems to have gone OK; now I need to work on the Postfix config to get the server relaying outbound mail to the Fastmail servers, and then configure getmail to collect mail from them. I hope to use Dovecot IMAP to read the mail on my local Postfix server.

I will keep you informed as I go along. I find this way of installing packages very simple once you get the hang of editing slackbuilds to support different compile-time options and to compile from up-to-date source. It's certainly more exciting and instructive than what I have been used to, which is Next>Next>Next>Finish in Windows and apt-get install in Debian! It also allows you to download and install updated source quite easily. Very impressed.

I hope this is helpful to someone else along the way.


Last edited by gezley; 01-03-2010 at 05:57 AM. Reason: Some clarification, and tidying of code.
 
3 members found this post helpful.
Old 06-10-2010, 09:42 AM   #3
mario_sv
LQ Newbie
 
Registered: Dec 2009
Distribution: Slackware
Posts: 10

Rep: Reputation: 2
I also needed something like that, so here are slackbuilds that i patched:

Patched cyrus-sasl slackbuild to support mysql:
http://slackbuilds.slackverse.org/_p....0/cyrus-sasl/

Patched openldap slackbuild to support server mode:
http://slackbuilds.slackverse.org/_p...13.0/openldap/

Patched postfix slackbuild to support also cyrus sasl, and mysql (and latest postfix version):
http://slackbuilds.slackverse.org/_patched/SBo/postfix/

Patched dovecot script to support various databases (and latest dovecot version):
http://slackbuilds.slackverse.org/_patched/SBo/dovecot/

You can read PATCHED file in each dir, and you can see the difference by comparing ORIG files.


Hope it helps, enjoy!

Last edited by mario_sv; 10-10-2010 at 07:29 AM. Reason: updated links
 
Old 06-10-2010, 09:42 AM   #4
mario_sv
LQ Newbie
 
Registered: Dec 2009
Distribution: Slackware
Posts: 10

Rep: Reputation: 2
...

Last edited by mario_sv; 10-10-2010 at 07:30 AM. Reason: duplicate post :/
 
Old 12-17-2012, 11:59 AM   #5
Slackevo
LQ Newbie
 
Registered: Jan 2011
Distribution: Slackware 13.1 i386
Posts: 5

Rep: Reputation: 0
Post patches

Mario,

Slackverse.org doesn't seem to exist anymore.

I realized I need to recompile with sasl options and build postfix in order to relay mail through gmail.

Maillog reports "unsupported SASL client implementation: cyrus and Fatal SASL Client initialization" everytime I attempt to send a test mail through gmail.

Could you post the contents of your build script in this forum?

Thanks!

Slackware 13.37 x86 --Full DVD Install
Slackbuild Postfix source for 13.37

Last edited by Slackevo; 12-17-2012 at 12:23 PM.
 
Old 12-18-2012, 05:20 AM   #6
mario_sv
LQ Newbie
 
Registered: Dec 2009
Distribution: Slackware
Posts: 10

Rep: Reputation: 2
Sorry, there was an error in dns (it could take a few hours until zone is fixed). Here are updated links for those slackbuilds:

http://slackbuilds.slackverse.org/pa...37/cyrus-sasl/
http://slackbuilds.slackverse.org/pa...3.37/openldap/
http://slackbuilds.slackverse.org/pa...13.37/dovecot/
http://slackbuilds.slackverse.org/pa...13.37/postfix/

However, if you are running slackware-14.0, you should probably get updated postfix/dovecot slackbuilds from slackbuilds.org
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix + Cyrus-SASL seprob Linux - Server 5 11-18-2009 09:12 AM
postfix cyrus sasl md5 problem xiutuo Linux - Server 3 09-14-2009 11:30 AM
Postfix and cyrus-sasl -failed to make install :( OTIM Linux - Server 1 11-27-2007 07:10 AM
Fedora, cyrus imap / sasl, Kerberos, LDAP rhoekstra Linux - Security 0 01-26-2005 04:48 AM
postfix+cyrus-sasl+impd installation conf..help Robin01 Linux - Newbie 0 02-29-2004 06:24 PM


All times are GMT -5. The time now is 03:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration