免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 11940 | 回复: 18
打印 上一主题 下一主题

[Mail] warning: SASL authentication failure [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-27 10:59 |只看该作者 |倒序浏览
50可用积分
postfix PostfixAdmin  MySQL  Cyrus-sasl  Courier-authlib  Dovecot
使用outlook连接时候反复要求输入密码, 就是连接不上


Sep 26 13:43:54 mail pop3-login: Disconnected [::ffff:192.168.77.11]
Sep 26 13:44:05 mail last message repeated 5 times
Sep 26 13:44:06 mail postfix/smtpd[8453]: connect from unknown[192.168.77.11]
Sep 26 13:44:06 mail postfix/smtpd[8453]: warning: SASL authentication failure: cannot connect to Courier authdaemond: Permission denied
Sep 26 13:44:06 mail postfix/smtpd[8453]: warning: unknown[192.168.77.11]: SASL LOGIN authentication failed
Sep 26 13:44:06 mail postfix/smtpd[8453]: lost connection after AUTH from unknown[192.168.77.11]
Sep 26 13:44:06 mail postfix/smtpd[8453]: disconnect from unknown[192.168.77.11]


我参照的手册  后面防垃圾和OPENSSL WEBMAIL 没做  其他都照做了:
  1. RedHat Postfix + MySQL + Cyrus-sasl + Dovecot 用RPM方式实现


  2. RedHat Enterprise Linux Server 4.2 + Postfix + PostfixAdmin + MySQL + Cyrus-sasl + Courier-authlib + Dovecot + Antivir-Mailgate + MailScanner + OpenSSL + Extmail

  3. 作者:Fandy
  4. 电子邮箱:[email]cbbc@163.com[/email]、[email]cbbc@avl.com.cn[/email]
  5. QQ号码:332018422
  6. 建立日期:2006年01月01日,最后修改日期:2006年01月12日
  7. 版本号:v 0.2
  8. 版权说明:本文章的内容归作者版权所有,同时也接受大家的转贴,但一定要保存作者信息和出处,多谢!

  9. 近来网上流行的热门文章“在RHEL 4 上配置全功能的Postfix 服务器”,是不份相当不错的好文章。但是也存在着一些操作和配置说明不清晰的地方,本人看了一些配置过程后就有一种冲动就是想写一编更加完整和功能更加强大的文章。

  10. 文章的特色就是采用“图文并茂”和软件包安装环境使用详尽说明的方式,目的就是令读者更加容易了解全功能邮件系统的安装和配置。可以做到初学Linux的新手也能配置一个功能强大Postfix邮件服务器!

  11. 不足的地方:小弟Linux水平有限所以会存在错误的地方请大家加以改正错误,以方便及时改正错误和完善文章的内容,多谢!(注在配置以下的信息前,以下的操作请使用root用户来操作)


  12. Setp0、参考资料:

  13. 1、      在RHEL 4 上配置全功能的Postfix 服务器;

  14. 2、      Red Hat 企业版4.1 + F-Prot Antivirus + MailScanner 4.46.2-2安装笔记;

  15. 3、      Red Hat 企业版4.2 + Master DNS + Slave DNS安装笔记;


  16. Setp1、RedHat Enterprise Linux Server 4.2系统安装截图说明:

  17. 磁盘配置:
  18. 设备               类型           大小

  19. /                           ext3               39911

  20.                           swap               1024




  21. 网络基本配置:
  22. etho IP/Gateway:192.168.1.253/255.255.255.0

  23. 主机名:mail.easy.com

  24. 网关:192.168.1.1

  25. 主/次DNS:192.168.1.254/192.168.1.253/202.96.128.68



  26. 防火墙基本配置:
  27. ⊙ 无防火墙

  28. ⊙ 是否启用 SELinux:已禁用



  29. 安装方式的选项:
  30. ⊙ 定制要安装的软件包(C)



  31. 桌面选项:
  32. (√) X窗口系统 (选取全部)

  33. (√) GNOME桌面环境 (选取全部)



  34. 应用程序选项:
  35. (√) 工程和科学 (选取默认)

  36. (√) 图形化互联网 (选取默认)

  37. (√) 基于文本的互联网 (选取默认)

  38. (√) 办公/生产率 (选取默认)



  39. 服务器选项:
  40. (√) 服务器配置工具 (选取全部)

  41. (√) 万维网服务器 (选取全部)

  42. (√) 邮件服务器(自行选全部)

  43. (√) Windows文件服务器 (选取全部)

  44. (√) DNS名称服务器 (选取全部)

  45. (√) SQL数据库 (选取全部)



  46. 邮件服务器的细节选项:
  47. (√) perl-Cyrus - Cyrus IMAP server utility Perl modules.

  48. (√) spamassassin - Spam filter for email which can be invoked from mail delivery age...



  49. 开发选项:
  50. (√) 开发工具 (选择全部)



  51. 系统选项:
  52. (√) 管理工具 (选取默认)

  53. (√) 打印支持 (选取默认)



  54. 杂项选项:
  55. 全部不要选择;


  56. Step2、OpenSSL详细配置过程:

  57. 特别说明:因为使用rpm方式来安装,所以openssl.cnf配置文件存放地址为:/usr/share/ssl/

  58. 修改/usr/share/ssl/目录下openssl.cnf文件,详细内容如下:

  59. 详细内容:
  60. default_days= 365 (设定凭证可使用之天数)
  61. 更改为:
  62. default_days= 3650

  63. default_bits= 1024 (设定金钥长度(bits))
  64. 更改为:
  65. default_bits= 2048



  66. Step3、PostfixAdmin软件源代码安装和配置过程:

  67. 软件包格式:postfixadmin-2.1.0.tgz     

  68. 软件包的大小(KB):157KB

  69. 下载地址:[url]http://high5.net/postfixadmin/do[/url] ... tfixadmin-2.1.0.tgz

  70. PostfixAdmin软件包安装过程如下:

  71. 详细操作:
  72. # tar -zxvf postfixadmin-2.1.0.gz -C /var/www/html

  73. # cd /var/www/html

  74. # mv postfixadmin-2.1.0 postfixadmin

  75. 修改Apache系统的/etc/http/conf/httpd.conf配置文件:

  76. 详细内容:
  77. ServerAdmin [email]you@example.com[/email]
  78. 更改为:
  79. ServerAdmin [email]fandy@easy.com[/email]

  80. #ServerName [url]www.example.com:80[/url]
  81. 更改为:
  82. ServerName mail.easy.com:80

  83. AddDefaultCharset utf-8
  84. 更改为:
  85. AddDefaultCharset GB2312

  86. DirectoryIndex index.html index.html.var
  87. 更改为:
  88. DirectoryIndex index.html index.html.var index.php index.cgi

  89. 启动 Apache、MySQL 服务器:

  90. 详细操作:
  91. # service httpd start

  92. # service mysqld start

  93. 设定Mysql服务器root管理员的密码:

  94. 详细操作:
  95. # mysqladmin -u root password ‘jinbiao’

  96. 测试Mysql服务器是否正常运行:

  97. 详细操作:
  98. # mysql -u root -p

  99. Enter password:
  100. Welcome to the MySQL monitor. Commands end with ; or \g.
  101. Your MySQL connection id is 1 to server version: 5.0.17-log

  102. Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

  103. mysql>

  104. 测试Apache是否正常运行,打开Mozilla Firefor或者Internet Explorer等浏览器输入以下地址:

  105. 详细操作:
  106. [url]http://mail.easy.com[/url]



  107. 建立 PostfixAdmin 所需要的数据表和config.inc.php文件:

  108. 详细操作:
  109. # cd /var/www/html/postfixadmin

  110. # mysql -u root -p < DATABASE_MYSQL.TXT
  111. Enter password:jinbiao (输入mysqladmin管理员root的密码)

  112. # cp config.inc.php.sample config.inc.php

  113. # sed -i "s/\@change-this-to-your.domain.tld/\@easy.com/g" config.inc.php

  114. # sed -i "s/change-this-to-your.domain.tld/mail.easy.com/g" config.inc.php

  115. 修改/usr/local/apache/htdocs/postfixadmin/config.inc.php文件的相关内容:

  116. 详细内容:
  117. $CONF['default_language'] = 'en';
  118. 更改为:
  119. $CONF['default_language'] = 'cn';

  120. 测试PostfixAdmin检查是否通过,打开Mozilla Firefor或者Internet Explorer等浏览器输入以下地址:

  121. 详细操作:
  122. [url]http://mail.easy.com/postfixadmin/index.php[/url]



  123. 详细操作:
  124. [url]http://mail.easy.com/postfixadmin/setup.php[/url]



  125. 测试PostfixAdmin检查通过后,为了系统安全着想请删除或者是移除setup.php文件:

  126. 详细操作:
  127. # cd /usr/local/apache/htdocs/postfixadmin

  128. # mv setup.php backup-setup.php

  129. 移除setup.php文件后,打开Mozilla Firefor或者Internet Explorer等浏览器输入以下地址:

  130. 详细操作:
  131. [url]http://mail.easy.com/postfixadmin/login.php[/url]



  132. 移除setup.php文件后,打开Mozilla Firefor或者Internet Explorer等浏览器输入以下地址:

  133. 详细操作:
  134. [url]http://mail.easy.com/postfixadmin/admin/[/url]



  135. 进入PostfixAdmin的admin介面后,根据页面提示信息需要删除或者是移除以下三个文件:

  136. 详细操作:
  137. # /usr/local/apache/htdocs/postfixadmin

  138. # mv motd.txt backup-motd.txt

  139. # mv motd-admin.txt backup-motd-admin.txt

  140. # mv motd-users.txt backup-motd-users.txt

  141. 移除motd.txt、motd-admin.txt、motd-users.txt文件后,打开Mozilla Firefor或者Internet Explorer等浏览器输入以下地址,然后就可以正常的建立和删除域名、用户邮箱:

  142. 详细操作:
  143. [url]http://mail.easy.com/postfixadmin/admin/index.php[/url]



  144. 利用PostfixAdmin的admin介面新建easy.com和fandy.com域名,打开Mozilla Firefor或者Internet Explorer等浏览器输入以下地址:

  145. 详细操作:
  146. [url]http://mail.easy.com/postfixadmin/admin/create-domain.php[/url]




  147. 利用PostfixAdmin的admin介面为easy.com和fandy.com域名分别新建一个用户邮箱,打开Mozilla Firefor或者Internet Explorer等浏览器输入以下地址:

  148. 详细操作:
  149. [url]http://mail.easy.com/postfixadmin/admin/create-mailbox.php[/url]




  150. 将Apache、Mysql服务器设置为开机自动启动:

  151. 详细操作:
  152. # chkconfig --level 33 httpd on (设置Apache服务器为开机自启动)

  153. # chkconfig --level 33 mysqld on (设置MySQL服务器为开机自启动)



  154. Step4、Postfix软件源代码安装和配置过程:

  155. 软件包格式:postfix-2.2.5-1.mysql.sasl2.vda.rhel4.i386.rpm     

  156. 特别说明:本软件包默认以支持MySQL、SASL、VDA、TLS等功能;

  157. 软件包的大小(KB):3408KB

  158. 下载地址:[url]http://www.proficuous.com/postfi[/url] ... /index_4_2.2.5.html

  159. 安装Postfix前,请先删除系统安装时所自带的Sendmail软件包:

  160. 详细操作:
  161. # service sendmail stop (停止sendmail系统的运行)

  162. # rpm -e sendmail --nodeps (从操作系统中删除sendmail软件包)

  163. Postfix软件包详细安装过程:

  164. 详细操作:
  165. # rpm -ivh postfix-2.2.5-1.mysql.sasl2.vda.rhel4.i386.rpm (安装postfix软件包)

  166. Preparing...           ########################################### [100%]
  167.     1:postfix           ########################################### [100%]

  168. 建立存放用户邮件目录和设置相关权限:

  169. 详细操作:
  170. # mkdir /home/mailbox (建立存放用户邮件目录)

  171. # chown -R postfix.postfix /home/mailbox (分配存放用户电子邮件目录的用户权限)

  172. 查询postfix用户和所属组的ID资料:

  173. 详细操作:
  174. # id postfix (查询postfix用户、所属组的ID)

  175. uid=102(postfix) gid=103(postfix) groups=103(postfix),12(mail)

  176. 用户ID:102   所属组ID:103

  177. 使用postalias命令建立aliases.db文件:

  178. 详细操作:
  179. # cd /etc/

  180. # postalias aliases (建立aliases.db文件)

  181. 修改/etc/postfix/mail.cf文件,以下为完整文件的详细内容::

  182. 详细配置内容:
  183. #=====================BASE=========================#

  184. myhostname = mail.easy.com
  185. mydomain = easy.com
  186. myorigin = $mydomain
  187. mydestination = $myhostname localhost localhost.$mydomain
  188. mynetworks = 192.168.1.0/24 127.0.0.0/8
  189. inet_interfaces = all

  190. #=====================Vritual Mailbox settings=========================#

  191. virtual_mailbox_base = /home/mailbox (输入存放用户邮件目录)
  192. virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
  193. virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
  194. virtual_alias_domains =
  195. virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
  196. virtual_uid_maps = static:102 (输入postfix用户的ID)
  197. virtual_gid_maps = static:103 (输入postfix用户组的ID)
  198. virtual_transport = virtual
  199. maildrop_destination_recipient_limit = 1
  200. maildrop_destination_concurrency_limit = 1

  201. #====================QUOTA========================#

  202. message_size_limit = 14336000
  203. virtual_mailbox_limit = 20971520
  204. virtual_create_maildirsize = yes
  205. virtual_mailbox_extended = yes
  206. virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
  207. virtual_mailbox_limit_override = yes
  208. virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, \
  209. please try again later. (请在一行内输写完)
  210. virtual_overquota_bounce = yes

  211. 继续main.cf文件内容:

  212. 详细配置内容:
  213. #====================SASL========================#

  214. broken_sasl_auth_clients = yes
  215. smtpd_recipient_restrictions = (可以在一行内输写完,也可以按以下的输写方法)
  216. permit_mynetworks,
  217. permit_sasl_authenticated,
  218. reject_invalid_hostname,
  219. reject_non_fqdn_hostname,
  220. reject_unknown_sender_domain,
  221. reject_non_fqdn_sender,
  222. reject_non_fqdn_recipient,
  223. reject_unknown_recipient_domain,
  224. reject_unauth_pipelining,
  225. reject_unauth_destination,
  226. permit
  227. smtpd_sasl_auth_enable = yes
  228. smtpd_sasl_local_domain = $myhostname
  229. smtpd_sasl_security_options = noanonymous
  230. smtpd_sasl_application_name = smtpd
  231. smtpd_banner=$myhostname ESMTP "Version not Available"

  232. #====================OTHER========================#

  233. readme_directory = no
  234. sample_directory = /etc/postfix
  235. sendmail_path = /usr/sbin/sendmail
  236. html_directory = no
  237. setgid_group = postdrop
  238. command_directory = /usr/sbin
  239. manpage_directory = /usr/local/man
  240. daemon_directory = /usr/libexec/postfix
  241. newaliases_path = /usr/bin/newaliases
  242. mailq_path = /usr/bin/mailq
  243. queue_directory = /var/spool/postfix
  244. mail_owner = postfix


  245. 在/etc/postfix/目录下建立mysql_virtual_alias_maps.cf配置文件,以下为完整文件的详细内容:

  246. 详细内容:
  247. user = postfix
  248. password = postfix
  249. hosts = localhost
  250. dbname = postfix
  251. table = alias
  252. select_field = goto
  253. where_field = address

  254. 在/etc/postfix/目录下建立mysql_virtual_domains_maps.cf配置文件,以下为完整文件的详细内容:

  255. 详细内容:
  256. user = postfix
  257. password = postfix
  258. hosts = localhost
  259. dbname = postfix
  260. table = domain
  261. select_field = description
  262. where_field = domain

  263. 在/etc/postfix/目录下建立mysql_virtual_mailbox_maps.cf配置文件,以下为完整文件的详细内容:

  264. 详细内容:
  265. user = postfix
  266. password = postfix
  267. hosts = localhost
  268. dbname = postfix
  269. table = mailbox
  270. select_field = maildir
  271. where_field = username'

  272. 在/etc/postfix/目录下建立mysql_virtual_mailbox_limit_maps.cf配置文件,以下为完整文件的详细内容:

  273. 详细内容:
  274. user = postfix
  275. password = postfix
  276. hosts = localhost
  277. dbname = postfix
  278. table = mailbox
  279. select_field = quota
  280. where_field = username

  281. 在/usr/local/lib/sasl2/目录下修改smtpd.conf用户认证文件,详细内容如下(注:如果/usr/local/lib/
  282. sasl2/目录下没有smtpd.conf可能新建),以下为完整文件的详细内容:

  283. 详细内容:
  284. pwcheck_method: authdaemond
  285. log_level: 3
  286. mech_list: PLAIN LOGIN
  287. authdaemond_path: /var/spool/authdaemon/socket

  288. 复制/usr/local/lib/sasl2/目录下smtpd.conf到/usr/local/lib/sasl/目录:

  289. 详细操作:
  290. # cp /usr/local/lib/sasl2/smtpd.conf /usr/local/lib/sasl/

  291. 启动Postfix服务器:

  292. 详细操作:
  293. # service postfix start

  294. 测试SMTP服务器下easy.com域是否正常:

  295. 详细内容:
  296. # telnet localhost 25 (远程连接到localhost端口为25)
  297. Trying 127.0.0.1...
  298. Connected to localhost.localdomain (127.0.0.1).
  299. Escape character is '^]'.
  300. 220 mail.easy.com ESMTP "Version not Available"
  301. ehlo easy.com (测试easy.com是否正常)
  302. 250-mail.easy.com
  303. 250-PIPELINING
  304. 250-SIZE 14336000
  305. 250-VRFY
  306. 250-ETRN
  307. 250-AUTH LOGIN PLAIN
  308. 250-AUTH=LOGIN PLAIN
  309. 250 8BITMIME
  310. quit (退出本次测试)
  311. 221 Bye
  312. Connection closed by foreign host.



  313. 测试SMTP服务器下fandy.com域是否正常:

  314. 详细内容:
  315. # telnet localhost 25 (远程连接到localhost端口为25)
  316. Trying 127.0.0.1...
  317. Connected to localhost.localdomain (127.0.0.1).
  318. Escape character is '^]'.
  319. 220 mail.easy.com ESMTP "Version not Available"
  320. ehlo fandy.com (测试fandy.com是否正常)
  321. 250-mail.easy.com
  322. 250-PIPELINING
  323. 250-SIZE 14336000
  324. 250-VRFY
  325. 250-ETRN
  326. 250-AUTH LOGIN PLAIN
  327. 250-AUTH=LOGIN PLAIN
  328. 250 8BITMIME
  329. quit (退出本次测试)
  330. 221 Bye
  331. Connection closed by foreign host.


  332. Step5、Courier-authlib软件包安装和配置过程:

  333. 软件包格式: courier-authlib-0.58-1.ce4.i386.rpm
  334. courier-authlib-devel-0.58-1.ce4.i386.rpm
  335. courier-authlib-mysql-0.58-1.ce4.i386.rpm

  336. 软件包的大小(KB):121KB、32KB、13KB

  337. 下载地址:[url]http://www.phantom.atknet.ru/archives/cat_1011941725.html[/url]

  338. 安装Courier-authlib软件包安装过程如下(注:请严格按照以下的安装顺序来安装软件包):

  339. 详细操作:
  340. # rpm -ivh courier-authlib-0.58-1.ce4.i386.rpm (安装courier-authlib软件包)

  341. # rpm -ivh courier-authlib-devel-0.58-1.ce4.i386.rpm (安装courier-authlib-devel软件包)

  342. # rpm -ivh courier-authlib-mysql-0.58-1.ce4.i386.rpm (安装courier-authlib-mysql软件包)

  343. 更改authdaemon文件夹的属性:

  344. 详细操作:
  345. # chmod 755 /var/spool/authdaemon

  346. 修改/etc/authlib/目录下的authdaemonrc文件,修改内容以下:

  347. 详细内容:
  348. authmodulelist=" authpam authpgsql authldap authmysql authcustom authpipe"
  349. 更改为:
  350. authmodulelist="authmysql"

  351. authmodulelistorig="authpam authpgsql authldap authmysql authcustom authpipe"
  352. 更改为:
  353. authmodulelistorig="authmysql"

  354. daemons=5
  355. 更改为:
  356. daemons=10





  357. 修改/etc/authlib/目录下的authmysqlrc文件,以下为完整文件的详细内容:

  358. 详细内容:
  359. MYSQL_SERVER      localhost
  360. MYSQL_USERNAME      postfix
  361. MYSQL_PASSWORD      postfix
  362. MYSQL_SOCKET      /var/lib/mysql/mysql.sock
  363. MYSQL_DATABASE      postfix
  364. MYSQL_USER_TABLE      mailbox
  365. MYSQL_CRYPT_PWFIELD      password
  366. MYSQL_UID_FIELD      '102' (输入postfix用户的ID)
  367. MYSQL_GID_FIELD      '103' (输入postfix用户组的ID)
  368. MYSQL_LOGIN_FIELD      username
  369. MYSQL_HOME_FIELD      concat('/home/mailbox/',maildir)
  370. MYSQL_MAILDIR_FIELD      concat('/home/mailbox/',maildir)
  371. MYSQL_NAME_FIELD      name

  372. 将Courier-authlib设置为开机自动启动:

  373. 详细操作:
  374. # chkconfig --level 33 courier-authlib on

  375. # service courier-authlib start



  376. Step6、Dovecot软件包安装和配置过程:

  377. 软件包格式: dovecot-0.99.14-1.2.el4.rf.i386.rpm

  378. 软件包的大小(KB):604KB

  379. 下载地址:[url]http://distro.ibiblio.org/pub/li[/url] ... th/devel/repo/RPMS/

  380. 安装Dovecot软件包安装过程如下(注:也可以使用系统自带软件,看个人喜欢啦(^_^)):

  381. 详细操作:
  382. # rpm -ivh dovecot-0.99.14-1.2.el4.rf.i386.rpm (安装Dovecot软件包)

  383. 修改/etc/目录下dovecot.conf文件,以下为完整文件的详细内容:

  384. 详细内容:
  385. base_dir = /var/run/dovecot/
  386. protocols = imap pop3
  387. imap_listen = [::]
  388. pop3_listen = [::]
  389. login_dir = /var/run/dovecot-login
  390. login = imap
  391. login = pop3
  392. mbox_locks = fcntl
  393. auth = default
  394. auth_mechanisms = plain
  395. auth_user = root
  396. default_mail_env = maildir:/home/mailbox/%u/
  397. auth_userdb = mysql /etc/dovecot-mysql.conf
  398. auth_passdb = mysql /etc/dovecot-mysql.conf
  399. first_valid_uid = 102 (输入postfix用户的ID)

  400. 在/etc/目录下新建dovecot-mysql.conf文件,以下为完整文件的详细内容:

  401. 详细内容:
  402. db_host = localhost
  403. db_port = 3306
  404. db_unix_socket = /var/lib/mysql/mysql.sock
  405. db = postfix
  406. db_user = postfix
  407. db_passwd = postfix
  408. db_client_flags = 0
  409. default_pass_scheme = PLAIN-MD5
  410. password_query = SELECT password FROM mailbox WHERE username = '%u'
  411. user_query = SELECT maildir, 102 AS uid, 103 AS gid FROM mailbox WHERE username = '%u'
  412. 将Dovecot设置为开机自动启动:

  413. 详细操作:
  414. # chkconfig --level 33 dovecot on

  415. # service dovecot start

  416. 测试POP3服务器是否正常:

  417. 详细内容:
  418. # telnet localhost 110 (远程连接到localhost端口为110)
  419. Trying 127.0.0.1...
  420. Connected to localhost.localdomain (127.0.0.1).
  421. Escape character is '^]'.
  422. +OK dovecot ready.
  423. quit (退出本次测试)
  424. +OK Logging out
  425. Connection closed by foreign host.


  426. Step7、F-Prot Antivirus软件包安装和配置过程:

  427. 软件包格式: fp-linux-ws.rpm

  428. 软件包的大小(KB):3970KB

  429. 下载地址:[url]http://files.f-prot.com/files/linux-x86/fp-linux-ws.rpm[/url]

  430. 安装F-Prot Antivirus软件包前,请先启动SpamAssassin服务器:

  431. 详细操作:
  432. # service spamassassin start (启动SpamAssassin服务器)

  433. 安装F-Prot Antivirus软件包安装过程如下:

  434. 详细操作:
  435. # rpm -ivh fp-linux-ws.rpm (安装F-Prot Antivirus软件包)

  436. Preparing...           ########################################### [100%]
  437.   1:fp-linux-ws         ########################################### [100%]
  438. ***************************************
  439. * F-Prot Antivirus Updater       *
  440. ***************************************

  441. There's a new version of:
  442. "Document/Office/Macro viruses" signatures on the web.
  443. Starting to download...
  444. Download completed.

  445. There's a new version of:
  446. "Application/Script viruses and Trojans" signatures on the web.
  447. Starting to download...
  448. Download completed.

  449. Preparing to install Application/Script viruses and Trojans signatures.
  450. Application/Script viruses and Trojans signatures have successfully been installed.

  451. Preparing to install Document/Office/Macro viruses signatures.
  452. Document/Office/Macro viruses signatures have successfully been installed.


  453. ***************************************
  454. * Update completed successfully. *
  455. ***************************************

  456. 升级的F-Prot Antivirus病毒库的操作:

  457. 详细操作:
  458. # cd /usr/local/f-prot/tools/

  459. # ./check-updates.pl (升级命令)

复制代码

[ 本帖最后由 very_99 于 2007-9-27 14:10 编辑 ]

最佳答案

查看完整内容

你的UID为102,GID为104的用户是哪个?它有访问数据库的权限么?

论坛徽章:
0
2 [报告]
发表于 2007-09-27 10:59 |只看该作者
你的UID为102,GID为104的用户是哪个?它有访问数据库的权限么?

论坛徽章:
0
3 [报告]
发表于 2007-09-27 11:15 |只看该作者
Sep 26 13:44:06 mail postfix/smtpd[8453]: warning: SASL authentication failure: cannot connect to Courier authdaemond: Permission denied

这句表明你的postfix daemon没有权限连接courier-authlib的进程,建议:
1、检查主配置文件中sasl段的设定是否正确;
2、检查一下authdaemon和quthmysqlrc配置文件,确保你的指定连接用户;

论坛徽章:
0
4 [报告]
发表于 2007-09-27 11:45 |只看该作者
  1. broken_sasl_auth_clients = yes
  2. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname
  3. , reject_non_fqdn_hostname, reject_unknown_sender_domain, reject_non_fqdn_sender, reject_non_fqdn_re
  4. cipient, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_unauth_destination, permi
  5. t
  6. smtpd_sasl_auth_enable = yes
  7. smtpd_sasl_local_domain = $myhostname
  8. smtpd_sasl_security_options = noanonymous
  9. smtpd_sasl_application_name = smtpd
  10. smtpd_banner=$myhostname ESMTP "Version not Available"
复制代码



请看

论坛徽章:
0
5 [报告]
发表于 2007-09-27 11:50 |只看该作者
  1. [root@mail authlib]# more  authdaemonrc|grep  -v "#"


  2. authmodulelist="authmysql"


  3. authmodulelistorig="authmysql"


  4. daemons=10


  5. authdaemonvar=/var/spool/authdaemon


  6. DEBUG_LOGIN=0


  7. DEFAULTOPTIONS=""


  8. LOGGEROPTS=""
复制代码



  1. [root@mail authlib]# more  authmysqlrc|grep  -v "#"



  2. MYSQL_SERVER            localhost
  3. MYSQL_USERNAME          postfix
  4. MYSQL_PASSWORD          postfix

  5. MYSQL_SOCKET            /var/lib/mysql/mysql.sock


  6. MYSQL_PORT              0


  7. MYSQL_OPT               0


  8. MYSQL_DATABASE          postfix


  9. MYSQL_USER_TABLE        mailbox


  10. MYSQL_CRYPT_PWFIELD     password



  11. MYSQL_UID_FIELD         '102'


  12. MYSQL_GID_FIELD         '104'


  13. MYSQL_LOGIN_FIELD       username


  14. MYSQL_HOME_FIELD        concat('/var/mail/mailbox',maildir)


  15. MYSQL_NAME_FIELD        name

  16. MYSQL_MAILDIR_FIELD     concat('/var/mail/mailbox',maildir)
复制代码

论坛徽章:
0
6 [报告]
发表于 2007-09-27 11:53 |只看该作者
以上几个参数什么意思啊?

论坛徽章:
0
7 [报告]
发表于 2007-09-27 11:54 |只看该作者
原帖由 very_99 于 2007-9-27 11:45 发表
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname
, reject_non_fqdn_hostname, reject_unknown_sender_domain, rej ...


这段设置没什么问题, 但是你的saslauthd的设置呢?
你用/etc/sysconfig/saslauthd里的MECH是什么?

[ 本帖最后由 富贵猫 于 2007-9-27 11:58 编辑 ]

论坛徽章:
0
8 [报告]
发表于 2007-09-27 12:14 |只看该作者
[root@mail authlib]# more  /etc/sysconfig/saslauthd
# Directory in which to place saslauthd's listening socket, pid file, and so
# on.  This directory must already exist.
SOCKETDIR=/var/run/saslauthd

# Mechanism to use when checking passwords.  Run "saslauthd -v" to get a list
# of which mechanism your installation was compiled to use.
MECH=shadow

# Additional flags to pass to saslauthd on the command line.  See saslauthd(
# for the list of accepted flags.
FLAGS=




但是我好象没有用到saslauthd啊?   
smtpd.conf:
pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path: /var/spool/authdaemon/socket

论坛徽章:
0
9 [报告]
发表于 2007-09-27 12:24 |只看该作者
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, permit

1、请确保你以上这项后面的值如果换行的话,第二行(包括)以后的每行行前一定至少有一个空格;
2、如果你是编译安装的courier-authlib的话,请确保你的socket文件的位置的确在/var/spool/authdaemon/socket,如果不是,请请相应的修改;

论坛徽章:
0
10 [报告]
发表于 2007-09-27 12:33 |只看该作者
原帖由 marion 于 2007-9-27 12:24 发表
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_fq ...





不是编译安装的是用
  1. # rpm -ivh courier-authlib-0.58-1.ce4.i386.rpm (安装courier-authlib软件包)
  2. # rpm -ivh courier-authlib-devel-0.58-1.ce4.i386.rpm (安装courier-authlib-devel软件包)
  3. # rpm -ivh courier-authlib-mysql-0.58-1.ce4.i386.rpm (安装courier-authlib-mysql软件包)
复制代码



/var/spool/authdaemon/socket  这个文件有的.



还要什么信息?  我马上取
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP