Re: Maildrop with MySQL look-up?

2008-09-03 Thread Hong
Found out how to do it:

# portinstall mail/maildrop -m "WITH_AUTHLIB=YES"

Choose MySQL as one of the possible authentication methods in the config
choices.

Hong

On Tue, Sep 02, 2008 at 04:48:33PM -0700, Hong wrote:
> Hi,
> 
> How do I enable MySQL look-up when I install maildrop from the port system? I
> looked at the Makefile:
> 
> # New ports collection makefile for:maildrop
> # Date created: 16 November 1998
> # Whom: Tom Hukins <[EMAIL PROTECTED]>
> #
> # $FreeBSD: ports/mail/maildrop/Makefile,v 1.50 2008/08/21 06:17:37 rafan Exp 
> $
> #
> 
> # The following compile-time options are available:
> # WITH_AUTHLIB=yes  Enable optional support for Courier Auth Library
> # WITH_FAM=yes  Enable optional support for File Alteration Monitor
> # WITH_GDBM=yes Enable database extensions using GDBM (default: off)
> # MAILDROP_SUID=,
> # MAILDROP_SGID=   Maildrop will be installed with suid permissions for
> #   MAILDROP_SUID, and sgid permissions for MAILDROP_SGID.
> # MAILDROP_TRUSTED_USERS= Specify users allowed to use the -d option
> # NO_MAILWRAPPER=yesIf defined, let configure guess which sendmail binary
> #   to use
> 
> There doesn't seem to be a way to enable mysql for the maildrop in the port 
> system directly.
> 
> Thanks,
> 
> Hong
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Maildrop with MySQL look-up?

2008-09-02 Thread Hong
Hi,

How do I enable MySQL look-up when I install maildrop from the port system? I
looked at the Makefile:

# New ports collection makefile for:maildrop
# Date created: 16 November 1998
# Whom: Tom Hukins <[EMAIL PROTECTED]>
#
# $FreeBSD: ports/mail/maildrop/Makefile,v 1.50 2008/08/21 06:17:37 rafan Exp $
#

# The following compile-time options are available:
# WITH_AUTHLIB=yes  Enable optional support for Courier Auth Library
# WITH_FAM=yes  Enable optional support for File Alteration Monitor
# WITH_GDBM=yes Enable database extensions using GDBM (default: off)
# MAILDROP_SUID=,
# MAILDROP_SGID=   Maildrop will be installed with suid permissions for
#   MAILDROP_SUID, and sgid permissions for MAILDROP_SGID.
# MAILDROP_TRUSTED_USERS= Specify users allowed to use the -d option
# NO_MAILWRAPPER=yesIf defined, let configure guess which sendmail binary
#   to use

There doesn't seem to be a way to enable mysql for the maildrop in the port 
system directly.

Thanks,

Hong
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: maildrop with mysql

2008-01-28 Thread Reinhold
To answer my own question, I had the authmysqlrc file set up wrong.

Its working now


On Mon, January 28, 2008 13:06, Reinhold wrote:
> Hi,
>
>
> I'm trying to setup maildrop to work with my postf, dovecot and mysql
> mail server. I installed maildrop successfully.
> This is what I used to install it
>
>
> cd /usr/ports/mail/maildrop; make WITH_AUTHLIB=yes WITH_MAILDIRQUOTA=yes
> install clean At the blue prompt I selected mysql and it installed with
> out any problems.
>
> I then edited the /usr/local/etc/authlib/authmysqlrc file and added my
> mysql info to it but when I run the following I get this error
>
> echo "test" | maildrop -V 5 -d [EMAIL PROTECTED] maildrop[44965]: Temporary
> authentication failure.
>
> This is what I see in my maillog file
> authdaemond: stopping authdaemond children
> authdaemond: modules="authmysql", daemons=5
> authdaemond: Installing libauthmysql
> authdaemond: Installation complete: authmysql
> Temporary authentication failure.
>
>
> Here is the config files for authdaemonrc and authmysqlrc
> cat /usr/local/etc/authlib/authdaemonrc
>
> authmodulelist="authmysql" authmodulelistorig="authuserdb authvchkpw
> authpam authldap authmysql authpgsql" daemons=5
> authdaemonvar=/var/run/authdaemond subsystem=mail DEBUG_LOGIN=0
> DEFAULTOPTIONS="wbnodsn=1"
> LOGGEROPTS=""
>
>
>
> and autmysqlrc
>
> MYSQL_SERVERlocalhost
> MYSQL_USERNAME  postuser
> MYSQL_PASSWORD  changedpasswd
> MYSQL_PORT  3306
> MYSQL_OPT   0
> MYSQL_DATABASE  postfix
> MYSQL_USER_TABLEmailbox
> MYSQL_CRYPT_PWFIELD MD5
> MYSQL_CLEAR_PWFIELD clear
> MYSQL_UID_FIELD 125
> MYSQL_GID_FIELD 125
> MYSQL_LOGIN_FIELD   username
> MYSQL_HOME_FIELD'/usr/local/virtual'
> MYSQL_NAME_FIELDname
> MYSQL_MAILDIR_FIELD maildir
>
>
> I want to use maildrop to move all the emails that gets flagged as spam
> to be moved into the Junk mail folder.
>
> Any help will be apeaciated
> Thanks
> Reinhold
>
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
>
>


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


maildrop with mysql

2008-01-28 Thread Reinhold
Hi,

I'm trying to setup maildrop to work with my postf, dovecot and mysql mail
server.
I installed maildrop successfully.
This is what I used to install it

cd /usr/ports/mail/maildrop; make WITH_AUTHLIB=yes WITH_MAILDIRQUOTA=yes
install clean
At the blue prompt I selected mysql and it installed with out any problems.

I then edited the /usr/local/etc/authlib/authmysqlrc file and added my
mysql info to it but when I run the following I get this error

echo "test" | maildrop -V 5 -d [EMAIL PROTECTED]
maildrop[44965]: Temporary authentication failure.

This is what I see in my maillog file
authdaemond: stopping authdaemond children
authdaemond: modules="authmysql", daemons=5
authdaemond: Installing libauthmysql
authdaemond: Installation complete: authmysql
Temporary authentication failure.

Here is the config files for authdaemonrc and authmysqlrc
cat /usr/local/etc/authlib/authdaemonrc

authmodulelist="authmysql"
authmodulelistorig="authuserdb authvchkpw authpam authldap authmysql
authpgsql"
daemons=5
authdaemonvar=/var/run/authdaemond
subsystem=mail
DEBUG_LOGIN=0
DEFAULTOPTIONS="wbnodsn=1"
LOGGEROPTS=""


and autmysqlrc

MYSQL_SERVERlocalhost
MYSQL_USERNAME  postuser
MYSQL_PASSWORD  changedpasswd
MYSQL_PORT  3306
MYSQL_OPT   0
MYSQL_DATABASE  postfix
MYSQL_USER_TABLEmailbox
MYSQL_CRYPT_PWFIELD MD5
MYSQL_CLEAR_PWFIELD clear
MYSQL_UID_FIELD 125
MYSQL_GID_FIELD 125
MYSQL_LOGIN_FIELD   username
MYSQL_HOME_FIELD'/usr/local/virtual'
MYSQL_NAME_FIELDname
MYSQL_MAILDIR_FIELD maildir

I want to use maildrop to move all the emails that gets flagged as spam to
be moved into the Junk mail folder.

Any help will be apeaciated
Thanks
Reinhold

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"