我在 EC2 上使用 CyberPanel 和 PostFix 为我的 STMP 服务器运行 VPN 我使用 AWS Simple Email Service 发送消息,使用 Postfix 接收消息,CyberPanel 使用 Dovecot 和 Rainloop 作为其网络邮件界面。
我能够发送邮件并将我的 MX 记录设置为 i408.org -> mail.i408.org,优先级为 10。mail.i408.org 有一条 A 记录到我的服务器的 IP 地址。
但是,我似乎无法收到邮件。我通过从我的 gmail 帐户邮寄到我的@i408.org 地址向我的帐户发送了一封电子邮件来测试这一点,并且在过去的 48 小时内它没有显示在我的 Rainloop 网络邮件中。
我知道我做错了什么,但我似乎无法弄清楚;我的 MX 记录已设置,为 mail.i408.org 设置了 SSL,我可以使用 SES 将邮件发送到我的 gmail 帐户;只是无法将任何邮件发送到我的@i408.org 地址。
我的 main.cf:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix/sbin
data_directory = /var/lib/postfix
mail_owner = postfix
inet_protocols = all
mydestination = localhost, localhost.localdomain, $myhostname
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.10.1/samples
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
myhostname = i408.org
mynetworks = 127.0.0.0/8
message_size_limit = 30720000
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mys>
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, re>
smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $vir>
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
inet_interfaces = all
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = $smtpd_milters
milter_default_action = accept
tls_server_sni_maps = hash:/etc/postfix/vmail_ssl.map
relayhost = [**********.amazonaws.com]:***
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = **********
smtp_sasl_password_maps = **********
smtp_use_tls = yes
smtp_tls_security_level = encrypt
smtp_tls_note_starttls_offer = yes
我的 var/log/mail.log:
Oct 22 18:13:45 localhost postfix/smtps/smtpd[49054]: disconnect from unknown[**.231.85.76] ehlo=1 auth=0/1 commands=1/2
Oct 22 18:13:50 localhost postfix/smtps/smtpd[49054]: connect from unknown[**.133.156.221]
Oct 22 18:13:58 localhost postfix/smtps/smtpd[49054]: warning: unknown[**.133.156.221]: SASL PLAIN authentication failed:
Oct 22 18:13:59 localhost postfix/smtps/smtpd[49054]: lost connection after AUTH from unknown[**.133.156.221]
Oct 22 18:13:59 localhost postfix/smtps/smtpd[49054]: disconnect from unknown[**.133.156.221] ehlo=1 auth=0/1 commands=1/2
Oct 22 18:16:50 localhost dovecot: imap-login: Login: user=<hostmaster@i408.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=49239, TLS, session=<Nr3NA/XO2N>
Oct 22 18:16:50 localhost dovecot: imap(hostmaster@i408.org)<49239><Nr3NA/XO2NZ/AAAB>: Logged out in=11 out=462 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_byt>
Oct 22 18:16:50 localhost dovecot: imap-login: Login: user=<hostmaster@i408.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=49241, TLS, session=<WAPbA/XO2t>
Oct 22 18:16:50 localhost dovecot: imap(hostmaster@i408.org)<49241><WAPbA/XO2tZ/AAAB>: Logged out in=80 out=1535 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_by>
Oct 22 18:16:51 localhost dovecot: imap-login: Login: user=<hostmaster@i408.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=49247, TLS, session=<PTviA/XO3N>
Oct 22 18:16:51 localhost dovecot: imap(hostmaster@i408.org)<49247><PTviA/XO3NZ/AAAB>: Logged out in=110 out=1401 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_b>
Oct 22 18:16:51 localhost dovecot: imap-login: Login: user=<hostmaster@i408.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=49248, TLS, session=<ee3iA/XO3t>
Oct 22 18:16:51 localhost dovecot: imap(hostmaster@i408.org)<49248><ee3iA/XO3tZ/AAAB>: Logged out in=380 out=1502 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_b>
Oct 22 18:16:56 localhost dovecot: imap-login: Login: user=<hostmaster@i408.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=49250, TLS, session=<Vj00BPXO4t>
Oct 22 18:16:56 localhost dovecot: imap(hostmaster@i408.org)<49250><Vj00BPXO4tZ/AAAB>: Logged out in=28 out=891 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_byt>
Oct 22 18:17:20 localhost postfix/anvil[49045]: statistics: max connection rate 1/60s for (submission:**.79.169.5) at Oct 22 18:10:33
Oct 22 18:17:20 localhost postfix/anvil[49045]: statistics: max connection count 1 for (submission:**.79.169.5) at Oct 22 18:10:33
Oct 22 18:17:20 localhost postfix/anvil[49045]: statistics: max cache size 2 at Oct 22 18:13:51
Oct 22 18:18:41 localhost dovecot: imap-login: Disconnected (no auth attempts in 2 secs): user=<>, rip=**.79.169.178, lip=172.31.61.152, TLS handshaking: SSL_acce>
Oct 22 18:18:51 localhost dovecot: imap-login: Login: user=<hostmaster@i408.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=49274, TLS, session=<8owPC/XO5N>
Oct 22 18:18:51 localhost dovecot: imap(hostmaster@i408.org)<49274><8owPC/XO5NZ/AAAB>: Logged out in=89 out=1003 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_by>
Oct 22 18:20:52 localhost dovecot: imap-login: Login: user=<hostmaster@i408.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=49280, TLS, session=<ONo2EvXO5t>
Oct 22 18:20:52 localhost dovecot: imap(hostmaster@i408.org)<49280><ONo2EvXO5tZ/AAAB>: Logged out in=89 out=1003 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_by>
Oct 22 18:22:51 localhost dovecot: imap-login: Login: user=<hostmaster@i408.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=49291, TLS, session=<YN1dGfXO6t>
Oct 22 18:22:51 localhost dovecot: imap(hostmaster@i408.org)<49291><YN1dGfXO6tZ/AAAB>: Logged out in=89 out=1003 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_by>
Oct 22 18:23:15 localhost dovecot: pop3-login: Disconnected (no auth attempts in 2 secs): user=<>, rip=209.17.97.74, lip=172.31.61.152, TLS handshaking: SSL_accep>
Oct 22 18:23:52 localhost dovecot: imap-login: Login: user=<hostmaster@i408.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=49321, TLS, session=<6HkAHfXO7t>
Oct 22 18:23:52 localhost dovecot: imap(hostmaster@i408.org)<49321><6HkAHfXO7tZ/AAAB>: Logged out in=380 out=1502 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_b>
对此的任何帮助都将受到高度赞赏。