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
    • 最新
    • 标签
主页 / server / 问题 / 570473
Accepted
Vaibhav Panmand
Vaibhav Panmand
Asked: 2014-01-29 08:21:34 +0800 CST2014-01-29 08:21:34 +0800 CST 2014-01-29 08:21:34 +0800 CST

来自 VM 的邮件不起作用

  • 772

我有一个带有后缀 MTA 的专用服务器和一个在服务器上运行的虚拟机。但是我在从虚拟机上配置的网站发送电子邮件时遇到问题。当我尝试发送电子邮件时,它给了我以下错误。

Jan 28 07:38:17 app postfix/smtpd[10806]: connect from unknown[10.28.169.130]
Jan 28 07:38:17 app postfix/smtpd[10806]: lost connection after EHLO from unknown[10.28.169.130]
Jan 28 07:38:17 app postfix/smtpd[10806]: disconnect from unknown[10.28.169.130]

其中 10.28.169.130 是专用系统的私有接口。我可以使用此 MTA 从其他服务器发送邮件,但 VM 实例有问题。

Postfix 配置如下。

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
disable_vrfy_command = yes
html_directory = no
inet_interfaces = xx.xx.xx.xx
inet_protocols = ipv4
local_transport = xxx.xxxx.xxx
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 0
milter_default_action = accept
milter_protocol = 6
multi_instance_directories = 
multi_instance_enable = yes
multi_instance_wrapper = ${command_directory}/postmulti -p --
mydestination = xxx.xxxx.xxx
myhostname = xxx.xxxx.xxx
mynetworks = 127.0.0.0/8, $myhostname
myorigin = xxx.xxxx.xxx
newaliases_path = /usr/bin/newaliases.postfix

#DKIM Config
non_smtpd_milters = inet:localhost:8891
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix

setgid_group = postdrop
smtp_helo_name = xxx.xxxxx.xxx
smtpd_banner = xxxx Email System
smtpd_recipient_restrictions = permit_mynetworks,  permit_sasl_authenticated, reject_unauth_destination, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_exceptions_networks = $mynetworks
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks,  permit_sasl_authenticated, reject_unauth_destination, permit
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/mailserver/server.pem
smtpd_tls_key_file = /etc/ssl/mailserver/server.key
smtpd_tls_loglevel = 0
smtpd_tls_received_header = no
smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_tls_session_cache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = proxy:mysql:$config_directory/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:12
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:$config_directory/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:$config_directory/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 505
virtual_transport = dovecot
virtual_uid_maps = static:505

请帮我解决这个问题。谢谢

centos
  • 1 1 个回答
  • 401 Views

1 个回答

  • Voted
  1. Best Answer
    NickW
    2014-01-29T08:49:48+08:002014-01-29T08:49:48+08:00

    您可以做以下两件事之一,首先,将 10.28.169.130/32 添加到您的 mynetworks 声明中,或者放宽发送限制。目前您只能在 mynetworks 中发送,或者提供 sasl 身份验证。

    • 0

相关问题

  • 如何在 Linux 机器上找到有关硬件的详细信息?

  • 使用 crontab 和 /etc/cron.hourly,daily,weekly 的区别

  • 持续监控许多服务器运行状况的简单方法?

  • Hudson 无法在 tomcat5 中启动

  • CentOS 的依赖挑战

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