【问题标题】:Can't send emails - Postfix无法发送电子邮件 - Postfix
【发布时间】:2014-05-24 07:09:19
【问题描述】:

我在使用后缀时遇到问题。 我认为这与 smtpd_recipient_restrictions 有关,但我不确定。 可能问题出在域中继或与此相关的问题上。

我可以接收电子邮件但不能发送。 这是我的配置文件:

readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
#virtual_alias_domains = noxae.pt
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = servidor
delay_warning_time = 1h
message_strip_characters = \0
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains = 
#mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost, 213.228.178.71
mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydomain, www.$mydomain, noxae.pt
defer_transports = 
mynetworks_style = class
disable_dns_lookups = no
relayhost = noxae.pt
mailbox_command = 
mailbox_transport = 
strict_8bitmime = no
disable_mime_output_conversion = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions = 
smtpd_helo_required = no
smtpd_helo_restrictions = 
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = yes
smtpd_sasl_auth_enable = yes
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
#smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains

【问题讨论】:

  • 请提供来自日志文件的错误信息。

标签: postfix-mta


【解决方案1】:

大多数 ISP 会过滤出站端口 25 TCP 流量以减少垃圾邮件。除非您有商业互联网帐户,否则您必须使用智能中继配置 Postfix。 http://help.comodo.com/topic-157-1-288-4540-.html http://embraceubuntu.com/2005/09/07/setting-a-smarthost-in-postfix/

【讨论】:

  • 日志在哪里?它解释了为什么你不能发送。
猜你喜欢
  • 2018-01-25
  • 1970-01-01
  • 2014-06-28
  • 2011-04-08
  • 1970-01-01
  • 2015-08-19
  • 1970-01-01
  • 2016-12-27
  • 2015-06-24
相关资源
最近更新 更多