Keep Postfix Hash Database and Email Password File Safe If everything is going perfect, you will receive a new file named sasl_passwd.db in this /etc/postfix/sasl/ directory. Generate the hash DB file for Postfix by executing the postmap command:.Whichever you choose, make sure to use the same port number throughout the procedure. Note: Message submission can be done over 587(StartTLS) or 465(SSL) port. You can open or create /etc/postfix/sasl/sasl_passwd file and then add SMTP Host, username, and password detail:.By doing this we will get one step closer to eventually connecting Postfix to Gmail account. So, you will need to add your mail login credentials to this particular file and to Postfix. Username and password are saved in sasl_passwd inside the /etc/postfix/sasl/ directory. Add Gmail account Username & Password to Postfix Write it down or keep it somewhere secure that you will be able to find easily in the further steps, then press Done: Now, you can see the newly generated password.Go to Select app and, then choose Other (custom name) from drop-down menu.Now, Generate the App password for Postfix:.You may ensure that Two-Step Verification is enabled. You might be asked for the password and verification code before continuing further. Move towards “Password & sign-in method” and click the 2-Step Verification. Sign in to your email address, then you will need to Manage your account access and security settings.Here are following steps to configure Gmail account to create the Postfix-specific password: Otherwise, this is a very important security measure that is developed to restrict any unauthorized user from accessing the account, it halts sending email through SMTP clients. When you enable the two-Factor Authentication (2FA), Gmail is pre-configured to decline connections from different applications like Postfix which does not support the second step of authentication.
0 Comments
Leave a Reply. |