小编1n5*_*1aC的帖子

Roundcube 和 Postfix SMTP:SSL 例程:SSL3_READ_BYTES:tlsv1 警报未知 ca:s3_pkt.c

我有一个 Postfix / Dovecot / Roundcube 设置,我个人使用,也提供给其他用户。我试图将整个设置转移到一个新的盒子,但有一些问题。

邮件接收工作正常(仅在内部测试,域尚未传输。)以及使用 TLS/SSL 的外部 IMAP 和 SMTP 工作正常(例如,Thunderbird)

问题出在我的圆形立方体设置上,它可以使用 IMAP 到 127.0.0.1,并且可以很好地显示用户的电子邮件,但无法发送电子邮件,只需声明: "SMTP Error (220): Authentication failed."

奇怪的是,使用我在当前服务器上使用的相同 Postfix/Dovecot 配置,Roundcube 无法再在我的新服务器上访问它。这是相关的圆形立方体配置:

$config['smtp_server'] = 'tls://localhost';

// Log SMTP conversation to <log_dir>/smtp or to syslog
$config['smtp_debug'] = true;

// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
// deprecated SSL over SMTP (aka SMTPS))
$config['smtp_port'] = 587;

// SMTP username (if required) if you use %u as the username Roundcube
// …
Run Code Online (Sandbox Code Playgroud)

php smtp postfix openssl roundcube

10
推荐指数
1
解决办法
4万
查看次数

apache2.4 虚拟主机阻止访问 authz_core 日志,即使未配置 authz

所以我在403: Forbidden我的 apache2.4 虚拟主机之一上遇到错误。

有趣的是,/var/log/apache2/error.log报告:

authz_core:error] [pid 4878:tid 140394394269440] [client 10.214.154.19:33009] AH01630: client denied by server configuration

而且....虽然我确实有其他使用 authz 的 Virtualhosts(主要用于 subversion 托管),但我禁用了所有这些,除了我遇到问题的那个,重新启动了 Apache,并且没有明显的区别。

这是我的 Apache2 站点可用文件,尽管我已禁用所有其他主机配置,并将我的配置降至最低,但仍然拒绝访问。

<VirtualHost *:443>

  WSGIScriptAlias /example /data/example/example.wsgi

  <Directory /data/example>
    WSGIApplicationGroup %{GLOBAL}
    Order deny,allow
    Allow from all
    Require all granted
  </Directory>

  LogLevel info

  SSLEngine on
  SSLCertificateFile    /etc/ssl/certs/example.pem
  SSLCertificateKeyFile /etc/ssl/private/example.key

</VirtualHost>
Run Code Online (Sandbox Code Playgroud)

此外,为了验证这不是我的 wsgi 脚本,我将脚本替换为:

def application(environ, start_response):
        start_response('200 OK',[('Content-type','text/html')])
        return ['<html><body>Hello World!</body></html>']
Run Code Online (Sandbox Code Playgroud)

而这并没有任何明显的区别。

有任何想法吗?

mod-wsgi mod-authz-host apache-2.4

3
推荐指数
1
解决办法
3万
查看次数

标签 统计

apache-2.4 ×1

mod-authz-host ×1

mod-wsgi ×1

openssl ×1

php ×1

postfix ×1

roundcube ×1

smtp ×1