免费注册 查看新帖 |

Chinaunix

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

[FreeBSD] FreeBSD8.0+postfix+sasl2+mysql+maildrop+ExtMan+Mailman+ClamAv完全安装 [复制链接]

论坛徽章:
2
羊年新春福章
日期:2015-02-04 10:37:51射手座
日期:2015-02-04 10:38:43
31 [报告]
发表于 2010-06-25 02:10 |只看该作者
辛苦了!

论坛徽章:
0
32 [报告]
发表于 2010-06-29 09:58 |只看该作者
这段时间也在乱搞postfix中,不过在debian下

论坛徽章:
0
33 [报告]
发表于 2010-07-01 11:15 |只看该作者
本帖最后由 Intranet 于 2010-07-01 11:17 编辑

有人根据这个文档配置成功过吗?
我两次配置都碰到同样的问题:

  1. mail# apachectl start
  2. Syntax error on line 30 of /usr/local/etc/apache22/Includes/extmail-ssl.conf:
  3. SSLCertificateFile: file '/usr/local/etc/apache22/certs/mycert.pem' does not exist or is empty
  4. mail#

复制代码

  1. mail# cat httpd-error.log
  2. [Wed Jun 30 17:29:54 2010] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
  3. [Wed Jun 30 17:29:54 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/local/sbin/suexec)
  4. [Wed Jun 30 17:29:55 2010] [notice] Digest: generating secret for digest authentication ...
  5. [Wed Jun 30 17:29:55 2010] [notice] Digest: done
  6. [Wed Jun 30 17:29:56 2010] [notice] Apache/2.2.15 (FreeBSD) mod_ssl/2.2.15 OpenSSL/1.0.0a DAV/2 configured -- resuming normal operations
  7. [Wed Jun 30 17:49:45 2010] [error] [client 192.168.1.18] File does not exist: /usr/local/www/extmail
  8. [Wed Jun 30 17:49:55 2010] [error] [client 192.168.1.18] File does not exist: /usr/local/www/extmail
  9. [Wed Jun 30 18:03:29 2010] [error] [client 192.168.1.18] Prototype mismatch: sub Encode::IMAPUTF7::decode ($$;$) vs none at /usr/local/www/extman/libs/Encode/IMAPUTF7.pm line 76.
  10. [Thu Jul 01 10:35:17 2010] [notice] SIGHUP received.  Attempting to restart
  11. Syntax error on line 30 of /usr/local/etc/apache22/Includes/extmail-ssl.conf:
  12. SSLCertificateFile: file '/usr/local/etc/apache22/certs/mycert.pem' does not exist or is empty
  13. mail#

复制代码

  1. mail# cat /usr/local/etc/apache22/Includes/extmail-ssl.conf

  2. Listen 443

  3. AddType application/x-x509-ca-cert .crt
  4. AddType application/x-pkcs7-crl    .crl

  5. SSLPassPhraseDialog  builtin
  6. SSLSessionCache        shmcb:/var/run/ssl_scache(512000)
  7. SSLSessionCacheTimeout  300
  8. SSLMutex  file:/var/run/ssl_mutex

  9. <VirtualHost _default_:443>

  10. DocumentRoot "/usr/local/www/extmail/html"
  11. ServerName mail.gnulabs.net:443

  12. ScriptAlias /extmail/cgi /usr/local/www/extmail/cgi/
  13. Alias /extmail /usr/local/www/extmail/html/
  14. ScriptAlias /extman/cgi "/usr/local/www/extman/cgi/"
  15. Alias /extman "/usr/local/www/extman/html/"

  16. ServerAdmin [email]88096111@qq.com[/email]
  17. ErrorLog /var/log/httpd-error.log
  18. TransferLog /var/log/httpd-access.log
  19. SSLEngine on
  20. SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
  21. #SSLCertificateFile /usr/local/etc/apache22/server.crt
  22. #SSLCertificateKeyFile /usr/local/etc/apache22/server.key

  23. SSLCertificateFile /usr/local/etc/apache22/certs/mycert.pem
  24. SSLCertificateKeyFile /usr/local/etc/apache22/certs/mykey.pem

  25. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  26.     SSLOptions +StdEnvVars
  27. </FilesMatch>
  28. <Directory "/usr/local/www/apache22/cgi-bin">
  29.     SSLOptions +StdEnvVars
  30. </Directory>
  31. BrowserMatch ".*MSIE.*" \
  32.          nokeepalive ssl-unclean-shutdown \
  33.          downgrade-1.0 force-response-1.0
  34. CustomLog /var/log/httpd-ssl_request.log \
  35.           "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

  36. #SuexecUserGroup vmail vmail
  37. </VirtualHost>

  38. # //....,..HTTPS...........
  39. <Location "/extman/cgi">
  40.         SetHandler cgi-script
  41.         Options +ExecCGI
  42. #      AllowOverride All
  43.     </Location>
  44.     <Directory "/usr/local/www">
  45.         AllowOverride None
  46.         Options None
  47.         Order allow,deny
  48.         Allow from all
  49.     </Directory>
  50. mail#
复制代码

  1. mail# ls -l /usr/local/etc/apache22/certs
  2. total 4
  3. -rwxr-xr-x  1 root  wheel  1058 Jun 30 17:51 cacert.pem
  4. -rw-r--r--  1 root  wheel     0 Jun 30 17:51 mycert.pem
  5. -r--r-----  1 root  wheel   887 Jun 30 17:51 mykey.pem
  6. mail#
复制代码

论坛徽章:
0
34 [报告]
发表于 2010-07-01 11:18 |只看该作者
有人根据这个文档配置成功过吗?
我两次配置都碰到同样的问题:
Intranet 发表于 2010-07-01 11:15



    不知道怎么解决啊。。。。

论坛徽章:
0
35 [报告]
发表于 2010-07-08 17:55 |只看该作者
奇怪了,无法启动Apache

Performing sanity check on apache22 configuration:
Syntax error on line 29 of /usr/local/etc/apache22/Includes/extmail-ssl.conf:
SSLCertificateFile: file '/usr/local/etc/apache22/certs/mycert.pem' does not exist or is empty

论坛徽章:
0
36 [报告]
发表于 2010-07-08 22:01 |只看该作者
[i=s] 本帖最后由 kecai_cale 于 2010-07-08 22:44 编辑 [/i]

tendwin# openssl ca -config openssl.cnf -policy policy_anything -out mycert.pem -infiles tmp.pem
Using configuration from openssl.cnf
Enter pass phrase for /usr/local/etc/postfix/certs/CA/private/cakey.pem:(我输入的管理员密码)
unable to load CA private key
19165:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/evp/evp_enc.c:330:
19165:error:0906A065:PEM routines:PEM_do_header:bad decrypt:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/pem/pem_lib.c:428:
tendwin# 19165:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/evp/evp_enc.c:330:
19165:error:06065064:digital: Command not found.

论坛徽章:
0
37 [报告]
发表于 2010-10-18 18:06 |只看该作者
tendwin# openssl ca -config openssl.cnf -policy policy_anything -out mycert.pem -infiles tmp.pem
Us ...
kecai_cale 发表于 2010-07-08 22:01

密码错误,应该输入刚刚设置的私钥密码。

论坛徽章:
0
38 [报告]
发表于 2010-10-18 18:09 |只看该作者
解决方法:
在CA目录下执行“echo "unique_subject = no" > index.txt.attr  ”,生成index.txt.attr就好了 ...
Intranet 发表于 2010-06-22 15:22

这样可以得到mycert.pem,但只是个空文件啊
-rw-r--r--  1 root  wheel     0 Oct 18 18:04 mycert.pem

论坛徽章:
0
39 [报告]
发表于 2010-10-19 11:01 |只看该作者
解决方法:
在CA目录下执行“echo "unique_subject = no" > index.txt.attr  ”,生成index.txt.attr就好了 ...
Intranet 发表于 2010-06-22 15:22



       

朋友,这样生成的mycert.pem文件时空的啊。后面配置apache的ssl时也会报错。



mail# /usr/local/sbin/apachectl -t

Warning: DocumentRoot [/usr/local/www/extmail/html] does not exist

Syntax error on line 29 of /usr/local/etc/apache22/Includes/extmail-ssl.conf:

SSLCertificateFile: file '/usr/local/etc/apache22/certs/mycert.pem' does not exist or is empty

论坛徽章:
0
40 [报告]
发表于 2010-10-19 11:03 |只看该作者
奇怪了,无法启动Apache

Performing sanity check on apache22 configuration:
Syntax error on line 2 ...
kecai_cale 发表于 2010-07-08 17:55


就是空文件的问题。高手解决一下不
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP