Sasl_passwd #5:Secure Your Postfix Hash Database and Email Password Files chown root:root /etc/postfix/sasl/sasl_passwd /etc/postfix/sasl/sasl_passwd.dbĬhmod 0600 /etc/postfix/sasl/sasl_passwd /etc/postfix/sasl/sasl_passwd.db : the hash file for Postfix using the postmap command postmap /etc/postfix/sasl/sasl_passwdĪfter execute postmap command you should have a new file named sasl_passwd.db in the /etc/postfix/. If you wants to check your gmail Id and password then run the below command: cat /etc/postfix/sasl/sasl_passwd You need to add your username and password in this file sasl_passwd to this directory /etc/postfix/sasl/Ĭreate /etc/postfix/sasl/sasl_passwd file and add your gmail ID and password we have just created using below command sudo nano sasl_passwdĪnd add your gmail ID and password as shown in below :587 :logwrbyaqcmwslqp Enter “Postfix” and click Generate.Īfter generate password you will see like this save your password in secure place img4 Step #4:Add Gmail Username and App Password to Postfix configuration Ensure that 2-Step Verification is enabled.Ĭlick the following link to Generate an App password for Postfix: img3Ĭlick Select app and choose Other (custom name) from the dropdown. You may be asked for your password and a verification code before continuing. Scroll down to “Signing into Google” and click 2-Step Verification. Log in to your email, then click the following link: Manage your account access and security settings. Output: myhostname = Step #3:Generate Google App Password for Postfix img2 Step#2: Update Postfix main.cf fileĪfter installation of postfix, ensure that the myhostname parameter is configured As shown below cat /etc/postfix/main.cf | grep ^myhostname Select Internet Site: img1Įnter the fully qualified name of your domain. There will be prompts asking General type of mail configuration. Install Postfix using below command: apt-get install libsasl2-modules postfix Step #6:Configure Relay Host postfix with gmail.Step #5:Secure Your Postfix Hash Database and Email Password Files.Step #4:Add Gmail Username and App Password to Postfix configuration.Step #3:Generate Google App Password for Postfix.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |