Dovecot,后缀-无法收到任何发送到我的服务器的电子邮件

时间:2019-08-06 13:14:37

标签: server

我的后缀或鸽友有问题。我正在尝试使用后缀,鸽舍,圆盒创建邮件服务器。

但是我可以将邮件发送到我的gmail,但不能从gmail发送到我的服务器。

在我的( /etc/postfix/main.cf

内部
queue_directory = /var/spool/postfix
mail_owner = postfix
myhostname = hvass7.com
mydomain = hvass7.com
myorigin = /etc/mailname
inet_interfaces = localhost
#mydestination = localhost.$mydomain, localhost, $mydomain
mydestination = localhost, localhost.localdomain
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 185.10.223.0/26
#relayhost = 
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
recipient_delimiter =
#home_mailbox = Maildir/
home_mailbox =
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/sbin/newaliases
mailq_path = /usr/sbin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = no
inet_protocols = ipv4
message_size_limit = 25600000
maximal_queue_lifetime = 1d

biff = no

# Virtual domains, users, and aliases 

virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
virtual_maps  = hash:/etc/postfix/virtual/addresses

smtpd_tls_cert_file=/etc/postfix/ssl/mailserver.csr
smtpd_tls_key_file=/etc/postfix/ssl/mailserver.pem
smtpd_use_tls=no
smtpd_tls_auth_only = no
smtpd_client_restrictions =

#Enabling SMTP for authenticated users. 

smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = no

smtpd_recipient_restrictions =
   permit_sasl_authenticated,
   permit_mynetworks,
   reject_unauth_destination,
   check_policy_service inet:127.0.0.1:10023n

smtpd_helo_required = yes
smtpd_helo_restrictions =
    permit_mynetworks
    permit_sasl_authenticated
    reject_non_fqdn_helo_hostname
    reject_unknown_helo_hostname

smtpd_sender_restrictions =
   permit_mynetworks
   permit_sasl_authenticated
   reject_unknown_sender_domain
   reject_unknown_reverse_client_hostname
   reject_unknown_client_hostname
   #check_sender_access hash:/etc/postfix/sender_access

smtpd_relay_restrictions =
  permit_mynetworks,
  reject_unauth_destination

virtual_transport = lmtp:unix:private/dovecot-lmtp
compatibility_level = 2
mailbox_size_limit = 0

我在这里查看了( tail -f /var/log/mail.log )错误:

Aug  6 14:18:20 hvass dovecot: imap-login: Login: user=<postmaster@hvass7.com>, method=PLAIN, rip=::1, lip=::1, mpid=1818, secured, session=<uq/80XGPwLkAAAAAAAAAAAAAAAAAAAAB>
Aug  6 14:18:20 hvass dovecot: imap(postmaster@hvass7.com): Debug: Effective uid=5000, gid=5000, home=/var/mail/vhosts/hvass7.com/postmaster
Aug  6 14:18:20 hvass dovecot: imap(postmaster@hvass7.com): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/mail/vhosts/hvass7.com/postmaster
Aug  6 14:18:20 hvass dovecot: imap(postmaster@hvass7.com): Debug: maildir++: root=/var/mail/vhosts/hvass7.com/postmaster, index=, indexpvt=, control=, inbox=/var/mail/vhosts/hvass7.com/postmaster, alt=
Aug  6 14:18:20 hvass dovecot: imap(postmaster@hvass7.com): Logged out in=50 out=490

我已经查看了日志,但什么也看不到。

我有开放端口:(https://www.arclab.com/en/kb/email/list-of-smtp-and-pop3-servers-mailserver-list.html

有人可以帮我吗?谢谢:)

编辑6 / 07-2019-15:58

我正在尝试通过telnet收到此错误:

Frederiks-MacBook-Pro:~ frederikfrandsen$ telnet hvass7.com 25
Trying 100.68.184.44...
telnet: connect to address 100.68.184.44: Connection refused
telnet: Unable to connect to remote host

编辑6 / 07-2019-16:07

我运行以下命令:

  

sudo dpkg-重新配置后缀

现在我可以远程登录到我的服务器了:

Frederiks-MacBook-Pro:~ frederikfrandsen$ telnet hvass7.com 25
Trying 100.68.184.44...
Connected to hvass7.com.
Escape character is '^]'.
220 hvass7.com ESMTP Postfix

编辑6 / 07-2019-16:29

我将telnet发送到我的服务器,但是google gmail在这里出现此错误:

host gmail-smtp-in.l.google.com[108.177.127.26] said:
550-5.7.1 [185.107.12.164      11] Our system has detected that this
message is 550-5.7.1 not RFC 5322 compliant: 550-5.7.1 'From' header is
missing. 550-5.7.1 To reduce the amount of spam sent to Gmail, this message
has been 550-5.7.1 blocked. Please visit 550-5.7.1
https://support.google.com/mail/?p=RfcMessageNonCompliant 550 5.7.1 and
review RFC 5322 specifications for more information. f20si30711503edy.431 -
gsmtp (in reply to end of DATA command)

编辑6 / 07-2019-16:50

对不起,我在我的本地网络上,这就是telnet正常工作的原因。

编辑6 / 07-2019-17:51

这是我的防火墙/端口转发。现在可以了:)

编辑6 / 07-2019-19:51

现在可以使用,新问题我无法从gmail发送到我的服务器。知道为什么吗?

编辑6 / 07-2019-20:11

我正在尝试连接(telnet hvass7.com 25):

  

客户端主机被拒绝:找不到反向主机名

编辑7 / 07-2019-12:01

我是我今天等待的DNS服务器,现在它可以100%起作用:)

编辑8 / 07-2019-18:15

我有新问题,我无法从iPhone向www发送电子邮件

  

致命:无效的“ -o smtpd_client_restrictions”选项值:缺失   属性名称后为'='

编辑8 / 07-2019-19:08

日志显示:

Aug  8 19:05:40 hvass postfix/submission/smtpd[11525]: lost connection after EHLO from unknown[185.107.12.164]
Aug  8 19:05:40 hvass postfix/submission/smtpd[11525]: disconnect from unknown[185.107.12.164] ehlo=1 commands=1
Aug  8 19:05:55 hvass postfix/submission/smtpd[11525]: connect from unknown[185.107.12.164]

编辑8 / 07-2019-19:24

  

telnet:无法解析havss7.com/25:名称或服务未知

编辑8 / 07-2019-20:27

我得到:中继访问被拒绝使用 https://mxtoolbox.com/SuperTool.aspx?action=smtp%3ahvass7.com&run=toolpage#

编辑9 / 07-2019-14:00

我正在使用:https://www.wormly.com/test-smtp-server

SERVER -> CLIENT: 454 4.7.0 TLS not available due to local problem
SMTP ERROR: STARTTLS command failed: 454 4.7.0 TLS not available due to local problem
2019-08-09 11:57:38 SMTP Error: Could not connect to SMTP host.

有人可以帮助我吗?我的服务器上有tls。

编辑9 / 07-2019-15:23

我收到新错误:

  

鸽舍:imap-login:断开连接(尝试使用不允许的纯文本   验证)

编辑9 / 07-2019-16:24

我在这里编辑文件

  

/etc/dovecot/conf.d/10-auth.conf   还要编辑-> disable_plaintext_auth =否

它现在可以在我的iPhone上使用!

但是不能在android上使用!

有人可以告诉我为什么吗?

0 个答案:

没有答案