发新话题
打印

centos4+extmail+extman+FCGI+postfix+ldap+courier-imap+maildrop+SA+amavis+SASL+TLS+clamav

请问一下楼主,我的邮件系统也是按照您的文档来搭建的,每天接收和发送的邮件加起来大概有一万多封,我查看图形日志邮件队列图的参数如下:
active  total:1842msgs  avg:1.07msgs/min max:11msgs/min
hold    total:0msgs  avg:0msgs/min max:0msgs/min
deferred  total:65593msgs  avg:36.79msgs/min max:40msgs/min
Incoming  total:2779msgs  avg:1.6msgs/min max:6msgs/min
请问怎样才可以提高邮件系统的性能,另外请问此邮件系统的并发量是多少,default_process_limit一般设多大合适?

TOP

引用:
下面是引用lxfeig于2007-01-17 15:07发表的:
请问一下楼主,我的邮件系统也是按照您的文档来搭建的,每天接收和发送的邮件加起来大概有一万多封,我查看图形日志邮件队列图的参数如下:
active   total:1842msgs  avg:1.07msgs/min max:11msgs/min
hold    total:0msgs  avg:0msgs/min max:0msgs/min
deferred   total:65593msgs  avg:36.79msgs/min max:40msgs/min
Incoming  total:2779msgs  avg:1.6msgs/min max:6msgs/min
.......
1万来个email属于比较低的流量,默认的设置应该能比较好的运行了。如果用户没有反应邮件收发缓慢的话,一般不需要做什么调整。
请引用或摘抄本站文章信息的朋友,保留本站链接及作者信息,保护版权,谢谢。

构建高性能大容量开源邮件系统- ExtMail

Postfix在中国官方网站

TOP

为了安全起见,我把ldap、extmail、extman、authldaprc配置文件里的密码都设经过crypt加密的就不行,而使用明文密码就没问题。请问一下是不是不能设成加密密码?

TOP

引用:
下面是引用lxfeig于2007-01-17 15:24发表的:
为了安全起见,我把ldap、extmail、extman、authldaprc配置文件里的密码都设经过crypt加密的就不行,而使用明文密码就没问题。请问一下是不是不能设成加密密码?
什么意思?将密码crypt??是将数据库的密码加密后写到webmail.cf,webman.cf里?
请引用或摘抄本站文章信息的朋友,保留本站链接及作者信息,保护版权,谢谢。

构建高性能大容量开源邮件系统- ExtMail

Postfix在中国官方网站

TOP

是的,我先用slappasswd -h {crypt}命令生成加密密钥{CRYPT}MRiJNbObnzVlA,然后把SYS_LDAP_PASS = secret改成SYS_LDAP_PASS = {CRYPT}MRiJNbObnzVlA

TOP

很多同事经常反应外面发过来的邮件好多接收不到,用163的邮箱就可以收,我的邮件系统日志大部分报错和下面差不多,请问一下老大是什么原因?
Jan 14 08:26:24 mail postfix/smtpd[26849]: NOQUEUE: reject: RCPT from unknown[192.168.1.2]: 504 <57CC8D40FB8A4F5>: Helo command rejected: need fully-qualified hostname; from=<v9huang2009@yahoo.com.cn> to=<likanggui@foresee.com.cn> proto=ESMTP helo=<57CC8D40FB8A4F5>

TOP

为啥牛人这么多?
none

TOP

谢谢了,赶紧去看看,学习学习!!

TOP

引用:
下面是引用ethan于2006-03-15 17:33发表的centos4+extmail+extman+FCGI+postfix+ldap+courier-imap+maildrop+SA+amavis+SASL+TLS+clamav:
Updated : Please redownload the centos.zip. I have updated the guide to include TLS and spam filtering stuff ( clamav +amavis-new+ sa) . Please test it and feedback to me so that i can write the auto installer.  

This is suitable for beginer and enjoy the guide , this one without the spam filltering stuff yet but i will put in as soon as i finish it. Please ask in this forum if things not clear or have mistake.


.......
我剛才注冊成為用戶了,為何還不能下載?

TOP

文章 - Ethan
Redhat Certifed Technician , Paypal Certified Developer

TOP

ethan,我按照文档安装在我的gentoo的系统上,webmail和webman已经没有问题了,authldaprc文件和文档是一样的,可是不能pop3认证不能通过,log如下
Mar 19 20:10:40 mail pop3d: Connection, ip=[::ffff:192.168.123.252]
Mar 19 20:10:40 mail authdaemond: received auth request, service=pop3, authtype=login
Mar 19 20:10:40 mail authdaemond: authldap: trying this module
Mar 19 20:10:40 mail authdaemond: using search filter: (&(active=1)(mail=harley@**.com))
Mar 19 20:10:40 mail slapd[7798]: conn=2 op=2 SRCH base="o=extmailAccount,dc=yeong**,dc=com" scope=2 deref=0 filter="(&(active=1)(mail=harley@**.com))"
Mar 19 20:10:40 mail slapd[7798]: conn=2 op=2 SRCH attr=homeDirectory cn userPassword mail mailQuota
Mar 19 20:10:40 mail slapd[7798]: <= bdb_equality_candidates: (active) index_param failed (18)
Mar 19 20:10:40 mail slapd[7798]: <= bdb_equality_candidates: (mail) index_param failed (18)
Mar 19 20:10:40 mail authdaemond: one entry returned, DN: mail=harley@**.com,virtualDomain=**com,o=extmailAccount,dc=**,dc=com
Mar 19 20:10:40 mail authdaemond: raw ldap entry returned:
Mar 19 20:10:40 mail authdaemond: | mail: harley@**.com
Mar 19 20:10:40 mail authdaemond: | homeDirectory: **.com/harley
Mar 19 20:10:40 mail authdaemond: | cn: harley
Mar 19 20:10:40 mail authdaemond: | mailQuota: 10485760S
Mar 19 20:10:40 mail authdaemond: | userPassword: {CRYPT}R6evCuwp6icH.
Mar 19 20:10:40 mail authdaemond: authldaplib: refuse to authenticate harley@**.com: uid=0, gid=0 (zero uid or gid not permitted)
Mar 19 20:10:40 mail authdaemond: authldaplib: sysusername=<null>, sysuserid=0, sysgroupid=0, homedir=**.com/harley, address=harley@**.com, fullname=harley, maildir=<null>, quota=10485760S, options=<null>
Mar 19 20:10:40 mail authdaemond: authldaplib: clearpasswd=<null>, passwd={CRYPT}R6evCuwp6icH.
Mar 19 20:10:40 mail slapd[7798]: conn=2 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=
Mar 19 20:10:40 mail pop3d: LOGIN FAILED, user=harley@**.com, ip=[::ffff:192.168.123.252]
Mar 19 20:10:40 mail pop3d: authentication error: Input/output error
Mar 19 20:10:40 mail authdaemond: password matches successfully
Mar 19 20:10:40 mail authdaemond: authldap: TEMPFAIL - no more modules will be tried

另外我用maildrop测试,log和上面一样
#maildrop -d harley@***.com
maildrop: Temporary authentication failure

vi /etc/sasl2/smtpd.conf

pwcheck_method:saslauthd
mech_list: PLAIN LOGIN
log_level: 3
authdaemond_path:/var/lib/courier/authdaemon/socket

mail ~ # ldapsearch -x -LLL -b "o=extmailAccount,dc=***,dc=com" "(objectclass=*)"
dn: o=extmailAccount,dc=***,dc=com
objectClass: organization
o: extmailAccount

dn: virtualDomain=***.com,o=extmailAccount,dc=***,dc=com
virtualDomain: ***.com
createDate: 2007-03-17 16:01:58
expireDate: 2008-03-16 16:01:39
description:: 6Jma5Ly85Z+fIHllb25nLWRhLmNvbQ==
domainMaxAlias: 100
domainMaxUsers: 100
domainMaxQuota: 104857600S
domainMaxNetStore: 104857600S
Transport: maildrop
active: 1
objectClass: top
objectClass: extmailDomain

dn: mail=harley@***.com,virtualDomain=***.com,o=extmailAccount,dc=ye
ong-da,dc=com
mail: harley@***.com
virtualDomain: ***.com
uid: harley
objectClass: top
objectClass: uidObject
objectClass: extmailUser
mailMessageStore: ***.com/harley/Maildir/
homeDirectory: ***.com/harley
createDate: 2007-03-17 16:02:15
cn: harley
uidNumber: 1000
gidNumber: 1000
netdiskQuota: 10485760S
active: 1
mailQuota: 10485760S
expireDate: 2008-03-16 16:02:00
disablesmtpd: 0
disablesmtp: 0
disablewebmail: 0
disablenetdisk: 0
disableimap: 1
disablepop3: 0
userPassword:: e0NSWVBUfVI2ZXZDdXdwNmljSC4=

我google了很多文档,可是找不到答案,希望得到帮助,谢谢!

TOP

引用:
下面是引用大副大于2007-03-19 16:22发表的Re:centos4+extmail+extman+FCGI+postfix+ldap+c:
ethan,我按照文档安装在我的gentoo的系统上,webmail和webman已经没有问题了,authldaprc文件和文档是一样的,可是不能pop3认证不能通过,log如下
Mar 19 20:10:40 mail pop3d: Connection, ip=[::ffff:192.168.123.252]
Mar 19 20:10:40 mail authdaemond: received auth request, service=pop3, authtype=login
Mar 19 20:10:40 mail authdaemond: authldap: trying this module
Mar 19 20:10:40 mail authdaemond: using search filter: (&(active=1)(mail=harley@**.com))
.......
问题在这里:
引用:
Mar 19 20:10:40 mail authdaemond: authldaplib: refuse to authenticate harley@**.com: uid=0, gid=0 (zero uid or gid not permitted)
zero uid or gid not permitted

您检查1下uid/gid的有关配置,估计是字段写错了。
请引用或摘抄本站文章信息的朋友,保留本站链接及作者信息,保护版权,谢谢。

构建高性能大容量开源邮件系统- ExtMail

Postfix在中国官方网站

TOP

谢谢楼上的回答,问题已经解决,新的问题是,我在extman操作新加用户的时候,log出现很多类似的错误
bdb_equality_candidates: (active) index_param failed (18)
bdb_equality_candidates: (mail) index_param failed (18)
bdb_equality_candidates: (virtualDomain) index_param failed (18)
但是我用ldap工具看到生成的资料都正常

我现在发邮件给自己的话会出现 unknow user,这是怎么回事呢?

TOP

引用:
下面是引用大副大于2007-03-21 10:48发表的Re:centos4+extmail+extman+FCGI+postfix+ldap+c:
谢谢楼上的回答,问题已经解决,新的问题是,我在extman操作新加用户的时候,log出现很多类似的错误
bdb_equality_candidates: (active) index_param failed (18)
bdb_equality_candidates: (mail) index_param failed (18)
bdb_equality_candidates: (virtualDomain) index_param failed (18)
但是我用ldap工具看到生成的资料都正常
.......
这些错误暂时还不清楚具体是怎么产生的,您看看ldap的工具里有没有可以修复index的?

另外,发给自己user unknow,估计是您的投递部分没有设置好,导致找不到用户记录吧?
请引用或摘抄本站文章信息的朋友,保留本站链接及作者信息,保护版权,谢谢。

构建高性能大容量开源邮件系统- ExtMail

Postfix在中国官方网站

TOP

发新话题