邮件在通过Google帐户进行转接时popup

我想所有的邮件形成我的服务器通过我的私人谷歌电子邮件帐户中继。 但所有的电子邮件都被退回,并且回复邮件:

I got info: <[email protected]>: host smtp.gmail.com[173.194.69.109] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 support.google.com/mail/bin/answer.py?answer=14257 fc7sm2465531bkc.3 - gsmtp (in reply to MAIL FROM command) - so in such configuration MAIL FROM must be included in relay definition. How can I do it? 

如何以及在哪个文件中我必须添加行来定义MAIL FROM参数。

在我的main.cf文件下面

 readme_directory = /usr/share/doc/postfix/README_FILES html_directory = /usr/share/doc/postfix/html sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop command_directory = /usr/sbin manpage_directory = /usr/share/man daemon_directory = /usr/lib/postfix data_directory = /var/lib/postfix newaliases_path = /usr/bin/newaliases mailq_path = /usr/bin/mailq queue_directory = /var/spool/postfix mail_owner = postfix # listen on localhost only inet_interfaces = 127.0.0.1 smtpd_banner = $myhostname ESMTP $mail_name biff = no mynetworks = 192.168.0.0/24 # appending .domain is the MUA's job. append_dot_mydomain = no #Uncomment the next line to generate "delayed mail" warnings delay_warning_time = 4h relayhost = [smtp.gmail.com]:587 smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous 

以及如何使端口25(在这个时候nmap显示它不是开放的)活跃地接收来自我的本地networking的邮件?

inet_interfaces = 127.0.0.1说只在本地主机上侦听。 根据需要更改,以便在端口25上侦听。

我将猜测/ etc / postfix / sasl_passwd不是很正确,但是我需要看看这些内容。 确保掩盖你的真实密码! 🙂