anthonyfeng 发表于 2006-01-02 12:13

那种改法我亦没有试过,所以不了解。
运行下面的就知道其UID,GID

grep postfix /etc/passwd

fandy 发表于 2006-01-02 13:35

还有一个问题就是在/etc/dovecot.conf文件下:

auth_userdb = passwd(这一句代表什么意思)
auth_user = root
default_mail_env = maildir:/var/spool/mail/%u/
auth_userdb = mysql /etc/dovecot-mysql.conf (这一句代表什么意思)

不知道大大可不可以再解答一下啦!多谢!

anthonyfeng 发表于 2006-01-02 15:14

那两句auth_userdb重复了,auth_userdb = passwd 是不适用于本例的,可以删除,其含意是用系统用户作pop3 用户

auth_userdb = mysql /etc/dovecot-mysql.conf 含意是使用MySQL作用户名校验,操作MySQL所需的信息在/etc/dovecot-mysql.conf

yijiande 发表于 2006-01-02 15:31

已经解决是,我的配置文件写错了,更正就好了。谢谢!!!

楼主,我在运行SquirrelMail网页邮件登入后,出现如下错误提示,说IMAP问题,不明白,请教一下,谢谢。
ERROR:
ERROR : Connection dropped by imap-server.
Query: CAPABILITY


我的日志是:
Jan2 15:20:18 mail authdaemond: modules="authmysql", daemons=10
Jan2 15:20:18 mail authdaemond: Installing libauthmysql
Jan2 15:20:19 mail authdaemond: Installation complete: authmysql
Jan2 15:19:07 mail postfix/sendmail: fatal: flush queue mode requires no
recipient
Jan2 15:19:08 mail postfix/postfix-script: starting the Postfix mail system
Jan2 15:19:08 mail postfix/master: daemon started -- version 2.2.7, conf
iguration /etc/postfix
Jan2 15:25:58 mail dovecot: Dovecot starting up
Jan2 15:25:59 mail dovecot-auth: MySQL: connected to localhost
Jan2 15:26:51 mail imap-login: Disconnected [::ffff:127.0.0.1]
Jan2 15:27:00 mail imap-login: Login: a@d1.com [::ffff:127.0.0.1]
Jan2 15:27:00 mail imap(a@d1.com): Failed to create storage with data: ldir:/v
ar/spool/mail/a@d1.com/
Jan2 15:27:00 mail dovecot: child 3174 (imap) returned error 89
Jan2 15:27:42 mail imap-login: Login: a@d1.com [::ffff:127.0.0.1]
Jan2 15:27:42 mail imap(a@d1.com): Failed to create storage with data: ldir:/v
ar/spool/mail/a@d1.com/
Jan2 15:27:42 mail dovecot: child 3176 (imap) returned error 89

[ 本帖最后由 yijiande 于 2006-1-2 16:04 编辑 ]

anthonyfeng 发表于 2006-01-02 16:24

根据这一句
Jan2 15:27:00 mail imap(a@d1.com): Failed to create storage with data: ldir:/v
ar/spool/mail/a@d1.com/

有可能是/etc/dovecot-mysql.conf 501,502 之类的设置没有搞好,或/var/spool/mail 权限不正确,运行
# chown postfix.postfix /var/spool/mail -R

建议先测试pop3 是否正常。

[ 本帖最后由 anthonyfeng 于 2006-1-2 19:53 编辑 ]

yijiande 发表于 2006-01-02 16:52

请教一下,楼主,我基本上完成。但是有一个问题。我在d1.com上建立了两个帐号,分别是a和b,我用这个两个对发邮件,用FOXMAIL,但是发现在发信的时候SMTP上的认证要去掉才行,如打上认证的话,就会失败,不知道,怎么回事?

anthonyfeng 发表于 2006-01-02 19:02

发给yahoo.com 之类的mail box 有错误吗?
很可能是authlib 设置不正确,你运行下面的看一下:

# cd /usr/local/courier-authlib/sbin
# ./authtest a@d1.com
Authentication succeeded.

   Authenticated: a@d1.com(uid 501, gid 502)
    Home Directory: /var/spool/mail/a@d1.com/
         Maildir: /var/spool/mail/a@d1.com/
             Quota: (none)
Encrypted Password: $1$117dec81$gkX1cdZlkJZy3surMCFAS0
Cleartext Password: (none)
         Options: (none)

anthonyfeng 发表于 2006-01-02 19:14

因为是抄回来的,postdrop 组有什么用我亦不太了解,可能编译、安装postfix 时需要吧。
在x window 内运行system-config-users 可以了解所有系统用户。

原帖由 yijiande 于 2006-1-1 21:02 发表
谢谢!!!应该是/var/spool/mail 文件夹权限问题,问一下,我的postfix的uid,gid都是501,而502是postdrop(这个组中没有成员),不知道做什么用的。请教一下。
另外想问一下,如何在文本方式中得到现系统中已经存 ...

anthonyfeng 发表于 2006-01-02 19:21

另说一下本例中有一个功能是缺失的,就是用户不能自行修改密码。参考下面的文章有相关的教程:

http://anti-spam.org.cn/forums/index.php?s=7949d9143931cc4859230eaf3174e456&showtopic=3357&st=0

fandy 发表于 2006-01-02 20:04

为什么使用以下的命令时会出现以下的情况:

# telnet localhost 25
Trying 127.0.0.1...
Connected to ldap.easy.com (127.0.0.1).
Escape character is '^]'.
ehlo localhost

然后就没有反应啦!


/var/spool/mail 权限我已经做好啦!

日志为:

# tail /var/log/maillog
Jan2 20:23:29 ldap postfix/master: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Jan2 20:24:29 ldap postfix/smtpd: fatal: open database /etc/aliases.db: No such file or directory
Jan2 20:24:30 ldap postfix/master: warning: process /usr/libexec/postfix/smtpd pid 3489 exit status 1
Jan2 20:24:30 ldap postfix/master: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Jan2 20:25:30 ldap postfix/smtpd: fatal: open database /etc/aliases.db: No such file or directory
Jan2 20:25:31 ldap postfix/master: warning: process /usr/libexec/postfix/smtpd pid 3553 exit status 1
Jan2 20:25:31 ldap postfix/master: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Jan2 20:26:31 ldap postfix/smtpd: fatal: open database /etc/aliases.db: No such file or directory
Jan2 20:26:32 ldap postfix/master: warning: process /usr/libexec/postfix/smtpd pid 3554 exit status 1
Jan2 20:26:32 ldap postfix/master: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

再运行以下的命令时以下:

# postmap -q a@easy.com mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf

# postmap -q a@easy.com mysql:/etc/postfix/mysql_virtual_mailbox_ma
ps.cf
a@easy.com/

问题已解决:

运行以下的命令:

# cd /etc
# postalias aliases

就可以正常的运行啦!

[ 本帖最后由 fandy 于 2006-1-2 20:35 编辑 ]
页: 1 2 [3] 4 5 6 7 8 9 10 11 12
查看完整版本: 原创:在RHEL 4 上配置全功能的Postfix 服务器