Postfix relayhost不能正常工作

我有一个简单的目标:我正在build立一个监控系统,我希望这个监控系统在我的服务器出现问题时向我发送电子邮件

我有Postfix安装。 我想使用mailbsd-mailxsendmail (通过Postfix)发送邮件到[email protected] (例如)。

我在SendinBlue有一个帐户,我已经configuration我的Postfix作为relayhost的SendinBlue SMTP服务器:

 smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination myhostname = ec2-99-99-99-99.eu-central-1.compute.amazonaws.com mydomain = ec2-99-99-99-99.eu-central-1.compute.amazonaws.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = ec2-99-99-99-99.eu-central-1.compute.amazonaws.com mydestination = project-monitor-de-frankfurt, localhost.localdomain, localhost, ec2-99-99-99-99.eu-central-1.compute.amazonaws.com relayhost = smtp-relay.sendinblue.com:587 mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 inet_interfaces = loopback-only default_transport = error relay_transport = error inet_protocols = all smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_tls_security_level = may smtp_sasl_mechanism_filter = plain, login 

/var/log/mail.log当我试图通过sendmail [email protected]发送邮件时,总是得到status=bounced (smtp-relay.sendinblue.com:587) sendmail [email protected] status=bounced (smtp-relay.sendinblue.com:587) 。 我的sasl_passwd文件被configuration和后sasl_passwd

我没有看到像Authentication Required的消息,并在我的SendinBlue帐户,我看不到统计信息(0反弹消息),这意味着我的邮件不会离开我的Postfix MTA?

该域可能是一个问题?

为什么会发生这种情况,如何使用SendinBlue或Mandrillapp(例如)将它们用作中继,并将电子邮件发送到[email protected]