免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: anthonyfeng
打印 上一主题 下一主题

[Mail] 原创:在RHEL 4 上配置全功能的Postfix 服务器 [复制链接]

论坛徽章:
0
21 [报告]
发表于 2006-01-02 12:13 |只看该作者
那种改法我亦没有试过,所以不了解。
运行下面的就知道其UID,GID

grep postfix /etc/passwd

论坛徽章:
0
22 [报告]
发表于 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 (这一句代表什么意思)

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

论坛徽章:
0
23 [报告]
发表于 2006-01-02 15:14 |只看该作者
那两句auth_userdb重复了,auth_userdb = passwd 是不适用于本例的,可以删除,其含意是用系统用户作pop3 用户

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

论坛徽章:
0
24 [报告]
发表于 2006-01-02 15:31 |只看该作者
已经解决是,我的配置文件写错了,更正就好了。谢谢!!!

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


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

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

论坛徽章:
0
25 [报告]
发表于 2006-01-02 16:24 |只看该作者
根据这一句
Jan  2 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 编辑 ]

论坛徽章:
0
26 [报告]
发表于 2006-01-02 16:52 |只看该作者
请教一下,楼主,我基本上完成。但是有一个问题。我在d1.com上建立了两个帐号,分别是a和b,我用这个两个对发邮件,用FOXMAIL,但是发现在发信的时候SMTP上的认证要去掉才行,如打上认证的话,就会失败,不知道,怎么回事?

论坛徽章:
0
27 [报告]
发表于 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)

论坛徽章:
0
28 [报告]
发表于 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(这个组中没有成员),不知道做什么用的。请教一下。
另外想问一下,如何在文本方式中得到现系统中已经存 ...

论坛徽章:
0
29 [报告]
发表于 2006-01-02 19:21 |只看该作者
另说一下本例中有一个功能是缺失的,就是用户不能自行修改密码。参考下面的文章有相关的教程:

http://anti-spam.org.cn/forums/i ... topic=3357&st=0

论坛徽章:
0
30 [报告]
发表于 2006-01-02 20:04 |只看该作者
为什么使用以下的命令时会出现以下的情况:

[root@ldap ~]# 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 权限我已经做好啦!

日志为:

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

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

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

[root@ldap ~]# 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 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP