如何配置后缀以从Azure云发送电子邮件?

时间:2019-05-07 09:55:42

标签: php linux azure postfix-mta

我从天青云发送电子邮件时遇到问题。 似乎端口25被阻塞。 我尝试在后缀中运行端口587和7777,但这不能解决我的问题。

我附加了屏幕和文件main.cf和master.cf ..

force_send

main.cf:

-Queue ID-  --Size-- ----Arrival Time---- -Sender/Recipient-------
4B82D181A9F    36002 Tue May  7 09:43:18  poczta@mail-s****
(connect to alt2.gmail-smtp-in.l.google.com[2404:6800:4003:c01::1a]:25: Network is unreachable)
                                         dar*****@gmail.com

6FB29181AA2    35978 Tue May  7 09:43:18  poczta@mail-s****
         (connect to mx3.mail.ovh.net[91.121.53.175]:25: Connection timed out)
                                         dar***@***.pl

5F293181AA0    35981 Tue May  7 09:43:18  poczta@mail-sys***
      (connect to mx.poczta.onet.pl[213.180.147.146]:25: Connection timed out)
                                         dar*****@onet.pl

-- 105 Kbytes in 3 Requests.

master.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 = /usr/share/doc/postfix

# 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
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

message_size_limit = 900000000

smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
#smtpd_sasl_type = dovecot
#smtpd_sasl_path = private/auth
#smtpd_sasl_security_options = noanonymous

myhostname = mail*******.pl
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail****.pl, localhost
#relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +

是否有机会在Azure云中配置邮件服务器?

1 个答案:

答案 0 :(得分:0)

我知道这是可能的唯一方法是使用SendGrid https://docs.microsoft.com/en-us/azure/sendgrid-dotnet-how-to-send-email