Once all the steps are completed, you will be presented with this screen which should contain details of the device using which you have enabled 2-Step Authentication. You will also have to login using your code sent to your backup device. Now under Security section, you should get an option to enable App passwords #Surgemail use relay server code# You can define any device here, I have defined Windows Computer Select App passwords and enable one for Mail. Once you have placed the app password with the password file created, use the postmap utility to generate the hash database containing the mail credentials: # postmap /etc/postfix/sasl_passwdīefore proceeding, take some additional steps to secure your postfix credentials: # chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db Once you click on GENERATE, in the next screen you will get your app password which you must put in /etc/postfix/sasl_passwd file along with your email address #Surgemail use relay server windows# ![]() Process: 3863 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS) Process: 3866 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS) Process: 3868 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS) Process: 3849 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS) Loaded: loaded (/usr/lib/systemd/system/rvice disabled vendor preset: disabled)Īctive: active (running) since Fri 18:04:05 IST 22min ago Next restart the postfix service # systemctl restart rviceĬheck the status of rvice to make sure it has started successfully with no errors # systemctl status postfix # chmod 0600 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db #Surgemail use relay server password# Jul 31 18:04:03 systemd: Stopped Postfix Mail Transport Agent. Jul 31 18:04:05 postfix/master: daemon started - version 3.3.1, configuration /etc/postfix Jul 31 18:04:04 systemd: Starting Postfix Mail Transport Agent. We will use mail client to send mails to external network # mail Test Message Verify by sending mail to external network Jul 31 18:04:05 systemd: Started Postfix Mail Transport Agent. " (dot) to end the mail writing and to initiate the send. ![]() Observe the logs /var/log/messages to make sure the mail was sent successfully. #Surgemail use relay server verification#.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |