主题: 如何 实现 虚拟用户 smtpd 认证
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本:
- 使用的 Linux/BSD 发行版名称及版本号:
- 与您的问题相关的日志信息:
====
对 iredmail 装了删 删了装 不断重复
总算对iredmail 有点理解 为了加深这方面的理解
现在自己开始对iredmail 组件进行独个安装
求指导下
现在已经 搭建 postfix + dovecot +mysql+postfixadmin+roudcubemail 已经正常生产
要配置smtpd认证 请问从何入手
看了些教程 使用courier-authlib 软体 但都没配置成功
都是验证失败
/etc/authmysqlrc
MYSQL_SERVER localhost
MYSQL_PORT 3306
MYSQL_USERNAME postfix
MYSQL_PASSWORD postfix
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_DATABASE postfix
MYSQL_USER_TABLE mailbox
MYSQL_CRYPT_PWFIELD password
MYSQL_UID_FIELD '1001'
MYSQL_GID_FIELD '1001'
MYSQL_LOGIN_FIELD username
MYSQL_HOME_FIELD concat('/var/mail/vmail',homedir)
MYSQL_NAME_FIELD name
MYSQL_MAILDIR_FIELD concat('/var/mail/vmail',maildir)
mail 日志
Sep 14 02:46:36 www postfix/smtpd[24970]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Sep 14 02:46:36 www postfix/smtpd[24970]: connect from unknown[192.168.128.13]
Sep 14 02:46:56 www postfix/smtpd[24970]: warning: SASL authentication failure: could not verify password
Sep 14 02:46:56 www postfix/smtpd[24970]: warning: unknown[192.168.128.13]: SASL LOGIN authentication failed: generic failure
Sep 14 02:46:56 www authdaemond: failed to connect to mysql server (server=mysql.example.com, userid=admin): Unknown MySQL s)
Sep 14 02:46:56 www postfix/smtpd[24970]: lost connection after AUTH from unknown[192.168.128.13]
Sep 14 02:46:56 www postfix/smtpd[24970]: disconnect from unknown[192.168.128.13]
Sep 14 02:46:58 www postfix/smtpd[24970]: connect from unknown[192.168.128.13]
[root@www ~]# tail /var/log/maillog
Sep 14 02:47:16 www postfix/smtpd[24970]: lost connection after AUTH from unknown[192.168.128.13]
Sep 14 02:47:16 www postfix/smtpd[24970]: disconnect from unknown[192.168.128.13]
Sep 14 02:47:18 www dovecot: auth-worker(default): mysql: Connected to localhost (postfix)
Sep 14 02:47:18 www dovecot: pop3-login: Login: user=<root@post.yan>, method=PLAIN, rip=::ffff:192.168.128.13, lip=::ffff:198
Sep 14 02:47:18 www dovecot: dict: mysql: Connected to localhost (postfix)
Sep 14 02:47:18 www dovecot: POP3(root@post.yan): Disconnected: Logged out top=0/0, retr=0/0, del=0/13, size=10049032
Sep 14 02:47:18 www dovecot: dict: Leaked a t_pop() call in I/O handler (nil)
Sep 14 02:47:18 www dovecot: dict: Raw backtrace: dict [0x8054c81] -> dict [0x8054b9c] -> dict(io_loop_handler_run+0x1db) [0]
Sep 14 02:47:18 www dovecot: child 24983 (dict) killed with signal 6
Sep 14 02:47:18 www postfix/smtpd[24970]: connect from unknown[192.168.128.13]
Sep 14 02:47:38 www authdaemond: failed to connect to mysql server (server=mysql.example.com, userid=admin): Unknown MySQL s)
Sep 14 02:47:38 www postfix/smtpd[24970]: warning: SASL authentication failure: could not verify password