status=deferred (SASL authentication failed server said: 534-5.7.9 Application-specific password required. To help keep your account secure, from May 30, 2022, Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password. If you find authentication errors in maillog, the Google Account security settings must be checked. Use mailq to check the queue for any rejected mails. Postfix logging with syslog in the log file /var/log/maillog in which you can check whether the e-mail was sent and accepted by. This Google Account requires disabled settings under Security – Sign in to Google – go to Security Verification and set two factor Off, and access to the Google Account when accessed by less secure apps must be On. echo "Here is a text." | mail -v -s "Test subject" -r with your valid Gmail address, and for enter a valid recipient email. Verify the Postfix configuration with this line in the terminal. Now Postfix is restarted to activate the configuration. Run postmap to create the file sasl_passwd as Berkeley DB. :587 of use your own Gmail account, replace password with your account password. Next, a /etc/postfix/sasl_passwd file is created with the following content. As myhostname the PTR resource record that can be resolved on the Internet for determining the PTR record, hit the following command to run in a terminal, or click here. Smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crtĮnter the local networks in mynetworks. Smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd Mydestination = $myhostname, localhost.$mydomain, localhost Now edit Postfix configuration by opening the file /etc/postfix/main.cf mynetworks = 127.0.0.0/8 192.168.1.0/24 $ apt-get update & apt-get install -y postfix mailutils On a Debian and Ubuntu, the package installation is as follows. $ yum update & yum install -y postfix mailx cyrus-sasl cyrus-sasl-plain If CentOS Linux is used, the required packages are installed as root. In situations using like multifunctional devices, or apps that do not support authentication via Mail Submission and STARTTLS (port 587), then e-mails can send via local Postfix MTA without need to authenticate to a mail server. E-mails are delivered via Gmail account, the clients in the local network use Postfix as a local SMTP gateway. Emails sending with Postfix (MTA) Mail Transfer Agent via Gmail relay host.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |