发件人地址被拒绝:不属于用户

我在运行Parabola GNU / Linux-libre(Arch和ALARM-based)以及Dovecot的SBC中安装了Postfix。

它工作得很好,我已经在Thunderbird中build立了一个帐户。 我发现的唯一问题是,当发送电子邮件时,我得到:

Sender address rejected: not owned by user megver83 

而且我到处寻找解决scheme,例如

  • Postfix拒绝发件人地址
  • 发件人地址被拒绝:在Postfix中不属于用户
  • Postfix发件人地址被拒绝/使用多个地址

但没有什么,这真的是疯了。 有时他们解决的问题是使用MySQL,但可怜的MySQL不能在我的服务器上工作,所以我安装了PostgreSQL以防万一。

mail.log:

 Aug 28 16:27:30 localhost postfix/smtpd[12064]: connect from gateway[192.168.50.1] Aug 28 16:27:31 localhost postfix/smtpd[12064]: Anonymous TLS connection established from gateway[192.168.50.1]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits) Aug 28 16:27:31 localhost postfix/trivial-rewrite[12070]: warning: do not list domain eumela.ga in BOTH mydestination and virtual_alias_domains Aug 28 16:27:31 localhost postfix/trivial-rewrite[12070]: warning: do not list domain eumela.ga in BOTH mydestination and virtual_mailbox_domains Aug 28 16:27:31 localhost postfix/smtpd[12064]: NOQUEUE: reject: RCPT from gateway[192.168.50.1]: 553 5.7.1 <[email protected]>: Sender address rejected: not owned by user megver83; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[192.168.50.10]> Aug 28 16:27:33 localhost postfix/smtpd[12064]: disconnect from gateway[192.168.50.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=0/1 quit=1 commands=6/7 

这里^我试图自动发送给我一个邮件,但发生在我写的所有地址。

 $ postconf -n alias_database = $alias_maps alias_maps = hash:/etc/postfix/aliases append_dot_mydomain = no biff = no broken_sasl_auth_clients = yes command_directory = /usr/bin compatibility_level = 2 daemon_directory = /usr/lib/postfix/bin data_directory = /var/lib/postfix 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 home_mailbox = Maildir/ html_directory = no inet_interfaces = all inet_protocols = ipv4 mail_owner = postfix mailbox_size_limit = 134217728 mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man message_size_limit = 134217728 meta_directory = /etc/postfix mydestination = localhost.$mydomain, localhost, $mydomain, smtp.$mydomain mydomain = eumela.ga myhostname = pi.eumela.ga myorigin = $mydomain newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix relay_domains = * relayhost = sample_directory = /etc/postfix sendmail_path = /usr/bin/sendmail setgid_group = postdrop shlib_directory = /usr/lib/postfix smtp_tls_note_starttls_offer = yes smtp_tls_security_level = may smtpd_helo_required = yes smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_sender_login_maps = $virtual_mailbox_maps smtpd_tls_cert_file = /etc/letsencrypt/live/smtp.eumela.ga/fullchain.pem smtpd_tls_key_file = /etc/letsencrypt/live/smtp.eumela.ga/privkey.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_security_level = may unknown_local_recipient_reject_code = 550 virtual_alias_maps = hash:/etc/postfix/virtual virtual_mailbox_domains = hash:/etc/postfix/virtual-mailbox-domains virtual_mailbox_maps = hash:/etc/postfix/virtual-mailbox-users 

哦,我发现这是master.cf文件的问题。 它说:

  -o smtpd_helo_restrictions=reject_sender_login_mismatch 

只是评论它

 # -o smtpd_helo_restrictions=reject_sender_login_mismatch