【问题标题】:Postfix send SMS - DebianPostfix 发送短信 - Debian
【发布时间】:2020-07-29 00:40:57
【问题描述】:

我在Debian服务器中配置postfix有点麻烦,然后我尝试在本地从另一个IP发送不同的IP,使用postfix有这个错误。

reject: RCPT from [direccion ip]: 454 4.7.1 <destinantario>: Relay access denied; from=<correoServer> to=<destinatario> proto=ESMTP helo=<dominio>

什么配置忘记了,哪里出错了

这是我的 main.cf

# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
# fresh installs.
compatibility_level = 2

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination
mydomain = dominio
myhostname = smtp.dominio
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, dominio, ip-172-31-36-15.us-east-2.compute.internal, localhost.us-east-2.compute.internal, localhost
relayhost = 
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_error_sleep_time = 1s
smtpd_soft_error_limit = 10
smtpd_hard_error_limit = 20
strict_rfc821_envelopes = yes
resolve_numeric_domain = yes
#smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

感谢您的帮助

【问题讨论】:

  • smtpd_relay_restrictions。您是否使用身份验证来发送电子邮件?

标签: amazon-web-services debian postfix-mta


【解决方案1】:

我为此苦苦挣扎了一周。我无法从安装在客户端位置的服务器发送到我的域、GMail 或任何其他服务。我尝试了 sendmail 和 postfix,但一直收到这个“relay denied”消息。

当我尝试 telnet 时,最终给出了一个线索。我得到的横幅来自安装在那里的 Sophos XG 防火墙。好像这个防火墙拦截了 SMTP 通信。在防火墙上添加中继规则是让邮件通过的原因。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-04-24
    • 2017-06-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多