Date: Wed, 05 Dec 2007 17:34:39 -0800 From: Xin LI <delphij@delphij.net> To: jekillen <jekillen@prodigy.net> Cc: freebsd-ports <freebsd-ports@freebsd.org> Subject: Re: rebuilding Postfix to ad MySQL support Message-ID: <475751AF.4020103@delphij.net> In-Reply-To: <2cbc5d8d7f9f7b5f0c8ee35cff89a189@prodigy.net> References: <2cbc5d8d7f9f7b5f0c8ee35cff89a189@prodigy.net>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 jekillen wrote: > Hello; > Can I get some advice: > I have Postfix installed from package at system install. > I am trying to set up Cyrus Imap and Cyradm. These > have specified use of mysql for database types. After > carefully crafting the configuration files for Postfix, I > am informed tha Postfix does not support MySQL tables > as it stands. I have received instruction from Postfix list > about how to add the support: > > $ make -f Makefile.init makefiles \ > 'CCARGS=-DHAS_MYSQL -I/usr/local/include/mysql' \ > 'AUXLIBS=-L/usr/local/lib/mysql -lmysqlclient -lz -lm' > > Wietsed > > I assume this is done in the Postfix port dir (and, impatiently, > I am wondering if this is the correct syntax for csh). > My question is: > should I de-install the existing Postfix package first? > I have laboriously crafted main.cf and the various > database files. I could copy them somewhere else > and re instate them. But why if the existing configuration > files won't be bothered. > Please forgive my novice* user level. I am learning as I go > along. I am a hobbyist at this stage. Perhaps tomorrow, > who knows? > * I am a little beyond 'newby' but not by much. > Thank you in advance > Jeff K Ah, he assumes that you do all build manually, but with ports system that would be much easier. First, synchronize your ports tree (portsnap fetch update or portsnap fetch extract); Second, go to /usr/ports/mail/postfix, do: make config Then a dialog box would appear, choose what you want (MySQL). Then, do 'make clean all deinstall install' as root; then do 'make clean'. Note that if you have portupgrade installed the last step can be automatized with 'portupgrade -Nf mail/postfix'. Hope this helps. Cheers, - -- Xin LI <delphij@delphij.net> http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHV1GvhcUczkLqiksRAqx1AKC6pqPDDqE/7GvMSKtemI7Wlqs+CgCfZrP/ ggfaSkHVtnx6xzgQJCzDsJg= =tN5t -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?475751AF.4020103>