asp12# cat /usr/local/etc/authlib/authdaemonrc | grep -v ^# | grep -v ^$
authmodulelist="authmysql"
authmodulelistorig="authmysql"
daemons=5
authdaemonvar=/var/local/sbin/authdaemond
subsystem=mail
DEBUG_LOGIN=2
DEFAULTOPTIONS="wbnodsn=1"
LOGGEROPTS=""
# cat /usr/local/etc/authlib/authmysqlrc | grep -v ^# | grep -v ^$
MYSQL_USERNAME postfix
MYSQL_PASSWORD
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_OPT 0
MYSQL_DATABASE mail
MYSQL_CHARACTER_SET utf8
MYSQL_USER_TABLE users
MYSQL_CLEAR_PWFIELD passwd
MYSQL_UID_FIELD '89'
MYSQL_GID_FIELD '89'
MYSQL_LOGIN_FIELD login
MYSQL_HOME_FIELD '/var/spool/mail/'
MYSQL_NAME_FIELD name
MYSQL_MAILDIR_FIELD maildir
MYSQL_QUOTA_FIELD quota
MYSQL_WHERE_CLAUSE active='1'
cat /usr/local/etc/courier-imap/pop3d | grep -v ^# | grep -v ^$
PIDFILE=/var/run/pop3d.pid
MAXDAEMONS=40
MAXPERIP=4
POP3AUTH="PLAIN LOGIN"
POP3AUTH_ORIG="PLAIN LOGIN"
POP3_PROXY=0
PORT=110
ADDRESS=192.168.0.5
TCPDOPTS="-nodnslookup -noidentlookup"
LOGGEROPTS="-name=courier-imap"
POP3DSTART=YES
MAILDIRPATH=Maildir
Mysql –u root
mysql>create database mail;
mysql>GRANT select ON `mail`.* TO 'postfix'@'127.0.0.1' IDENTIFIED BY '';
mysql> select * from users;
+--------------------------+----------+------+-----+-------------------+
| login passwd | uid | gid | maildir
+--------------------------+----------+------+-----+-------------------+
| test@server.domain | test | 89 | 89 | /var/spool/mail/|
|admin@server.domain | admin | 89 | 89 | /var/spoolmail/ |
+--------------------------+----------+------+-----+-------------------+
# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there.
user test@server.domain
+OK Password required.
pass test
-ERR Temporary problem, please try again later
Connection closed by foreign host.
в mailloge:
server couriertcpd: connection, ip=[::ffff::127.0.0.1]
server couriertcpd: authdaemod: s_connect() failed: Connection refused
server couriertcpd: [Hint: perhaps authdaemond is not running?]
server couriertcpd: LOGIN FAILED, user-test, ip=[::ffff::127.0.0.1]
server couriertcpd: authenticaition error: Connection refused
в mysql.log пусто