Can anyone point me at a "how-to" guide for using smtp auth with qpsmtpd and vpopmail?
1) Are you running vpopmail with MySQL?
2) If YES on #1, did you compile vpopmail with the [recommended] "--enable-clear-passwd=y" option?
If both #1 and #2 are true, all you have to do is add the following line to your config/plugins file:
auth/auth_vpopmail_sql
and then update the following lines in plugins/auth/auth_vpopmail_sql:
my $connect = "dbi:mysql:dbname=vpopmail";
my $dbuser = "vpopmailuser";
my $dbpasswd = "**********";to correspond to the database you are using for authentication. I think it is probably safer to create a readonly user with rights to the vpopmail database and use that for authentication purposes here.
If only #1 is true (you didn't store clear passwords), you need to comment out this line from plugins/auth/auth_vpopmail_sql:
#$self->register_hook("auth-cram-md5", "authsql");since cram-md5 requires that the plaintext password be available locally. You can still use the "plain" and "login" methods, but your passwords will be transmitted in the clear (well, actually trivially hidden).
If you are not using vpopmail with MySQL, there isn't a plugin that currently supports other vpopmail auth databases, although it may be possible to create one using Mail::vpopmail:
http://search.cpan.org/~jkister/Mail-vpopmail-0.50/
HTH
John
