freebsdrocks.net was started originally as nospam.mine.nu.
# cd /usr/ports/mail/ezmlm-idx
# make clean distclean
# make extract
# cp /usr/ports/distfiles/ezmlm-idx-7.2.2.tar.gz ~root
# make clean distclean
# cd ~root
# tar zxvf ezmlm-idx-7.2.2.tar.gz
# cd ezmlm-idx-7.2.2
# chown -R root:wheel *
# cd lang
# ln -s en_US default
# cd ..
# make
# make man
# ./ezmlm-test
...
Cleaning up...
So far all we have done is install ezmlm-idx. Now what we need to do it link ezmlm-idx with mysql. This is how to set it up. First we need to log into mysql, create the database and assign a user and password. Do not deviate from using a different database other than ezmlm. It will not work but the username and password you can change to anything you like.
# mysql -u root -p
[ENTER PASSWORD]
> create database ezmlm;
> GRANT select,insert,update,delete,create,drop ON ezmlm.* TO ezmlmuser@localhost IDENTIFIED BY 'ezmlmpassword';
> FLUSH PRIVILEGES;
> quit
# vi conf-cc
gcc -O -g -I/usr/local/include/mysql -I/usr/include/pgsql
# vi conf-ld
cc -g -rdynamic -B /usr/local/lib/mysql
# make mysql
# ./ezmlm-test -s mysql -u root -p PASS
# make install