cnhawk386 发表于 2007-10-13 17:13

原帖由 cnhawk386 于 2007-10-12 10:51 发表 http://bbs.chinaunix.net/images/common/back.gif
SYS_MYSQL_TABLE = mailbox
SYS_MYSQL_ATTR_USERNAME = username
SYS_MYSQL_ATTR_DOMAIN = domain
SYS_MYSQL_ATTR_PASSWD = password
以上用来指定验正用户登录里所用到的表,以及用户名、域名和用户密码分 ...


no answer????

zdyldy 发表于 2007-10-14 11:59

#/usr/local/postfix/sbin/postconf-a
cyrus
dovecot
#vi /etc/postfix/main.cf
############################CYRUS-SASL############################
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd
smtpd_banner = Welcome to our $myhostname ESMTP,Warning: Version not Available!

#vi /usr/local/lib/sasl2/smtpd.conf
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN

#/usr/local/postfix/sbin/postfix reload


# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.                              (看看这里啊,为什么自己就把连接关闭了呢.)                        
##


下面是贴子给出的正确的配置,可是我在执行 telnet localhost 25的时候就自动关闭了.帮我解决一下啊.

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 Welcome to our mail.benet.org ESMTP,Warning: Version not Available!
ehlo mail.benet.org
250-mail.benet.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN               
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN





#/usr/local/postfix/sbin/postconf-a
cyrus
dovecot
#vi /etc/postfix/main.cf
############################CYRUS-SASL############################
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd
smtpd_banner = Welcome to our $myhostname ESMTP,Warning: Version not Available!

#vi /usr/local/lib/sasl2/smtpd.conf
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN

#/usr/local/postfix/sbin/postfix reload

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.               自动关闭了,是怎么回事啊?                     
#

下面是给出的正确的配置.


# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 Welcome to our mail.benet.org ESMTP,Warning: Version not Available!
ehlo mail.benet.org
250-mail.benet.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN            
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN



我的第二问题就是,我公司有100个用户,我怎么把用户添加进来呢.给我写一例子好么.例如其中一个用户是yuanll

公司的域名是test.org               机器名是mail.test.org

cndefu 发表于 2007-10-15 16:01

真的是超精华版呀

Weikey 发表于 2007-10-15 16:19

强烈建议楼主把安装过程做成一个HTML文档哦(顺便把一些常见问题也编辑进去)!这样最直观了!阅读也更方便!流芳百世啊!我代表党和人民感谢你!

[ 本帖最后由 Weikey 于 2007-10-15 16:27 编辑 ]

zdyldy 发表于 2007-10-15 18:36

# perl Makefile.PL
Can't locate DBI/DBD.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at Makefile.PL line 23.
# make
make: *** 没有指明目标并且找不到makefile 停止
#


请问 marion 老大这是什么意思啊。

marion 发表于 2007-10-15 21:45

回复 #142 cnhawk386 的帖子

这个我还真的没有尝试过,不敢妄言。不知道其他朋友有没有解决办法?:em14:

我回头去查一查相关材料,如果你有了结果,也希望能共享出来。

[ 本帖最后由 marion 于 2007-10-15 21:46 编辑 ]

marion 发表于 2007-10-15 21:48

回复 #145 Weikey 和#144楼cndefu 的帖子

多承二位谬赞,如果对大家有所帮助,也算是没有白忙活了……

marion 发表于 2007-10-15 21:51

回复 #146 zdyldy 的帖子

你的第一步“ perl Makefile.PL”由于依赖关系不满足而没有完成,错误提示“Can't locate DBI/DBD.pm ”已经指明缺乏DBI/DBD.pm ;若想省功夫,直接去发行版光盘上找到perl-DBI的rpm包安装应该可以解决此问题。

zdyldy 发表于 2007-10-16 17:58

回复 #146 zdyldy 的帖子


你的第一步“ perl Makefile.PL”由于依赖关系不满足而没有完成,错误提示“Can't locate DBI/DBD.pm ”已经指明缺乏DBI/DBD.pm ;若想省功夫,直接去发行版光盘上找到perl-DBI的rpm包安装应该可以解决此问题。



非常感谢,问题解决了。

zdyldy 发表于 2007-10-16 18:12

marion 老大,我现在除了病毒库那块,前面的都安装完了,有两个问题没有解决。

第一个问题是:

这是我运行的结果,系统自动关闭了。安装完postfix的时候是没有问题的,完全可用。可是安装完cyrus-sasl后,来启用这个认证,就这样了。

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.
#


这是日志信息。

Oct 16 16:42:45 mail postfix/master: warning: process /usr/local/postfix/libexec/smtpd pid 5351 exit status 1
Oct 16 16:42:45 mail postfix/master: warning: /usr/local/postfix/libexec/smtpd: bad command startup -- throttling
Oct 16 16:43:45 mail postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Oct 16 16:43:45 mail postfix/smtpd: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
Oct 16 16:43:45 mail postfix/smtpd: fatal: no SASL authentication mechanisms
Oct 16 16:43:46 mail postfix/master: warning: process /usr/local/postfix/libexec/smtpd pid 5376 exit status 1
Oct 16 16:43:46 mail postfix/master: warning: /usr/local/postfix/libexec/smtpd: bad command startup -- throttling

第二个问题是:


我在流览器里输入http://mail.test.com 进入extmail页面。

我是不是该点击注册用户呢,来建立我公司的所有用户。还是该怎么把我公司的用户全添加到邮箱里呢。

当我点击注册用户时,跳转到了令外一个界面,提示    指定域名test.com域名不存在。

我把图截下来了,可是怎么发上去呢。
页: 5 6 7 8 9 10 11 12 13 14 [15] 16 17 18 19 20 21 22 23 24
查看完整版本: RHEL4上安装基于postfix的全功能邮件服务器(全部使用目前最新源码包构建)