AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-2882

Noah Goodrich's questions

Martin Hope
Noah Goodrich
Asked: 2014-07-29 18:50:30 +0800 CST

使用代理位置修复 Apache Virtualhost

  • 0

给定以下虚拟主机:

<VirtualHost *:80>
    DocumentRoot "/var/www/dashboards/public/dist"
    Servername local.dashboards
    ServerAlias local.dashboards

    Header add Access-Control-Allow-Origin: "*"
    Header add Access-Control-Allow-Methods: "POST, GET, OPTIONS, PUT, DELETE, HEAD"
    Header set Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept, Authorization"

    Alias /api /var/www/dashboards/laravel/public

    <Directory "/var/www/dashboards/public/dist">
        Options MultiViews FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    <Directory "/var/www/dashboards/laravel/public">
        Options MultiViews FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    <Location />
        ProxyPass http://localhost:3030/
        ProxyPassReverse http://localhost:3030/
    </Location>

    ErrorLog ${APACHE_LOG_DIR}/dashboards.error.log
    CustomLog ${APACHE_LOG_DIR}/dashboards.access.log combined

</VirtualHost>

ahone 可以建议为什么对 local.dashboards/api 的请求仍然被 Location 指令捕获吗?我可以确认节点服务器正在捕获对 /api 的请求并返回 404 页面。

virtualhost
  • 1 个回答
  • 805 Views
Martin Hope
Noah Goodrich
Asked: 2009-07-19 06:59:12 +0800 CST

如何更正 Postfix''中继访问被拒绝'?

  • 66

今天早上,为了更正安全证书中名称不匹配的问题,我按照如何修复邮件服务器 SSL?,但是现在,当尝试从客户端(在本例中客户端是 Windows Mail)发送电子邮件时,我收到以下错误。

被拒绝的电子邮件地址是“[email protected]”。主题'这是一个测试。',帐户:'mail.domain.com',服务器:'mail.domain.com',协议:SMTP,服务器响应:'554 5.7.1:中继访问被拒绝',端口:25,安全(SSL):否,服务器错误:554,错误号:0x800CCC79

编辑:我仍然可以从此帐户检索电子邮件,并将电子邮件发送到同一域中的其他帐户。我只是无法向我们域之外的收件人发送电子邮件。

我尝试完全禁用 TLS 但没有骰子,我仍然得到同样的错误。

当我检查文件mail.log时,我看到以下内容。

Jul 18 08:24:41 company imapd: LOGIN, [email protected], ip=[::ffff:111.111.11.11], protocol=IMAP
Jul 18 08:24:42 company imapd: DISCONNECTED, [email protected], ip=[::ffff:111.111.11.11], headers=0, body=0, rcvd=83, sent=409, time=1
Jul 18 08:25:19 company postfix/smtpd[29282]: connect from company.university.edu[111.111.11.11]
Jul 18 08:25:19 company postfix/smtpd[29282]: NOQUEUE: reject: RCPT from company.university.edu[111.111.11.11]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<UserPC>
Jul 18 08:25:19 company postfix/smtpd[29282]: disconnect from company.university.edu[111.111.11.11]
Jul 18 08:25:22 company imapd: DISCONNECTED, [email protected], ip=[::ffff:111.111.11.11], headers=13, body=142579, rcvd=3289, sent=215892, time=79

文件main.cf如下所示:

#
# Postfix MTA Manager Main Configuration File;
#
# Please do NOT edit this file manually;
#

#
# Postfix directory settings; These are critical for normal Postfix MTA functionallity;
#

command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix

#
# Some common configuration parameters;
#

inet_interfaces = all
mynetworks = 127.0.0.0/8
mynetworks_style = host

myhostname = mail.domain.com
mydomain = domain.com
myorigin = $mydomain

smtpd_banner = $myhostname ESMTP 2.4.7.1 (Debian/GNU)
setgid_group = postdrop

#
# Receiving messages parameters;
#

mydestination = localhost, company 
append_dot_mydomain = no
append_at_myorigin = yes
transport_maps = mysql:/etc/postfix/transport.cf

#
# Delivering local messages parameters;
#

mail_spool_directory = /var/spool/mail
mailbox_size_limit = 0
mailbox_command = procmail -a "$EXTENSION"

biff = no

alias_database = hash:/etc/aliases

local_recipient_maps =

#
# Delivering virtual messages parameters;
#
virtual_mailbox_maps=mysql:/etc/postfix/mysql_virt.cf
virtual_uid_maps=mysql:/etc/postfix/uids.cf
virtual_gid_maps=mysql:/etc/postfix/gids.cf
virtual_mailbox_base=/usr/local/virtual
virtual_maps=mysql:/etc/postfix/virtual.cf
virtual_mailbox_domains=mysql:/etc/postfix/virtual_domains.cf


#
# SASL paramters;
#
smtp_use_tls = yes
smtpd_use_tls = yes
smtpd_tls_auth_only = yes
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s

smtp_tls_CAfile = /etc/postfix/ssl/smptd.pem
smtp_tls_cert_file = /etc/postfix/ssl/smptd.crt
smtp_tls_key_file = /etc/postfix/ssl/smptd.key

smtpd_tls_CAfile = /etc/postfix/ssl/smptd.pem
smtpd_tls_cert_file = /etc/postfix/ssl/smptd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smptd.key

smtpd_sasl_auth_enable = yes

smtpd_sasl_security_options = noanonymous

smtpd_sasl_local_domain =

broken_sasl_auth_clients = yes

smtpd_sender_restrictions =
        permit_sasl_authenticated
        permit_mynetworks

smtpd_recipient_restrictions =
        permit_sasl_authenticated
        check_recipient_access hash:/etc/postfix/filtered_domains
        permit_mynetworks
        reject_unauth_destination

作为旁注,我的雇主希望能够从我们的本地网络内部和外部的客户(Thunderbird 和 Outlook)发送电子邮件。

linux smtp postfix
  • 7 个回答
  • 458340 Views
Martin Hope
Noah Goodrich
Asked: 2009-05-19 18:24:42 +0800 CST

什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

  • 1718

我负责维护两台 Debian 服务器。每次我必须对安全证书做任何事情时,我都会在谷歌上搜索教程并不断努力,直到它最终奏效。

但是,在我的搜索中,我经常遇到不同的文件格式(.key, .csr, .pem),但我一直无法很好地解释每种文件格式的用途。

我想知道ServerFault的好人是否可以就此事提供一些澄清?

certificate pki
  • 3 个回答
  • 1911405 Views
Martin Hope
Noah Goodrich
Asked: 2009-05-19 07:33:41 +0800 CST

我应该多久更新一次我们的 Linux 服务器?

  • 61

我负责管理我们的生产服务器(邮件、Web、数据库都在一台服务器上)和我们的测试服务器。两者都是基于 Debian 构建的。但是,由于我对系统管理非常陌生,所以我只是在遇到必须更新的东西时才安装更新,以便我可以拥有更新的功能并修复错误。它现在是一个非常临时的过程,我想减少它。

所以我想知道知道自己在做什么的人如何处理这个问题?您多久在服务器上执行一次升级?测试和生产之间的升级过程是否不同?你总是先升级任何测试服务器吗?您是对所有软件进行全面更新,还是只安装选定的更新?

linux debian apt update
  • 11 个回答
  • 15912 Views
Martin Hope
Noah Goodrich
Asked: 2009-05-19 07:26:33 +0800 CST

如何修复邮件服务器 SSL?

  • 4

我们的邮件服务器最初是使用自创证书设置的。然而,当这些过期时,我试图重新创建它们,整个事情就爆炸了。因为我知道这很重要,所以我们正在运行 Debian 服务器和后缀。

现在我在邮件日志中看到了这些错误:

May 15 08:06:34 letterpress postfix/smtpd[22901]: warning: cannot get certificate from file /etc/postfix/ssl/smtpd.cert
May 15 08:06:34 letterpress postfix/smtpd[22901]: warning: TLS library problem: 22901:error:02001002:system library:fopen:No such file or directory:bss_file.c:352:fopen('/etc/postfix/ssl/smtpd.cert','r'):
May 15 08:06:34 letterpress postfix/smtpd[22901]: warning: TLS library problem: 22901:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:354:
May 15 08:06:34 letterpress postfix/smtpd[22901]: warning: TLS library problem: 22901:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:720:
May 15 08:06:34 letterpress postfix/smtpd[22901]: cannot load RSA certificate and key data

当尝试从我们本地网络外部的 Thunderbird 等客户端访问电子邮件时,您会收到“无法连接到 smtp 服务器”。

我已经验证文件 /etc/postfix/ssl/smtpd.cert 确实存在。该文件的当前所有者是root:root. 这需要改变吗?

debian postfix email-server ssl-certificate
  • 3 个回答
  • 16228 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve