Michael Mayer wrote:

I think I can remember a way for Postfix to access MySQL directly, but this might be slow plus you need compiled-in MySQL support (the Postfix version that comes with Fedora 6 does not have this).

It's fast enough. If you need postfx-mysql, download and install the Fedora postfix srpm and look into the spec file. You should find an option to enable building the postfix-mysql package, if it ain't enabled already.

If there is no option, you can manually add the mysql options to the configure or gcc line or whereever it went. I've done this for various Fedora and Suse (SLES) distro versions.

After building you'll get a postfix-mysql package which you can then install. So you won't have to replace your installed postfix package.

I am using postfix with mysql support on F6 right now, I remember making the postfix-mysql package was trivial for F6.


As for the postfix configuration, it looks like this for me, I'm pretty sure I found it in the dbmail README or wiki.

mail:/etc/postfix # grep local_recipient_maps main.cf
local_recipient_maps = mysql:/etc/postfix/sql-recipients.cf

mail:/etc/postfix # cat sql-recipients.cf
user = dbmail
password = ubersecretpassword
hosts = 127.0.0.1
dbname = dbmail
table = dbmail_aliases
select_field = alias
where_field = alias

And don't forget to create the .db file with "postmap sql-recipients.cf".

HTH,

--
Aleksander Kamenik
System Administrator
Krediidiinfo AS
an Experian Company
Phone: +372 665 9649
Email: [EMAIL PROTECTED]

http://www.krediidiinfo.ee/
http://www.experiangroup.com/
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to