cannot send email from Postfix to gmail
-
@IT-ADMIN said:
i change smtp.google.com to smtp-relay.gmail.com and i get in the log the following
Use smtp.gmail.com
-
you very very very clearly did not read what I entered and then quoted myself with just a few posts above.
-
-
There you go, that part is working now.
-
-
The text of the log is much easier to read than a screenshot of it.
-
[root@localhost postfix]# mail m.idbahal@gmail.com
Subject: test
hello world
EOT
[root@localhost postfix]# tail /var/log/maillog
Aug 20 18:55:01 localhost postfix/qmgr[17342]: E4632812CC: removed
Aug 20 18:56:34 localhost postfix/qmgr[17342]: 75957812CB: from=root@sip.gmail.com, size=421, nrcpt=1 (queue active)
Aug 20 18:56:34 localhost postfix/error[18446]: 75957812CB: to=m.idbahal@gmail.com, relay=none, delay=582, delays=582/0.03/0/0.02, dsn=4.7.14, status=deferred (delivery temporarily suspended: SASL authentication failed; server smtp.gmail.com[64.233.184.108] said: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbsIR?534-5.7.14 U8s7ITZC0YNJR1zOuv6zOtO9VuZofNylkSWMHEPuihU2JvnsN4ladAqvh9iCWH_vednZH1?534-5.7.14 TFvhvCFn9fi-qAtqKECTIPwvGNzKOKzr7MB9XTS3GLbg5RPDpn901RyN0rwkxwqGQazvIj?534-5.7.14 6BQZkkkMQUYP6-RcKMMhpoJsszN-UK_DZXiNG313BOPCiMtpXGdgVS_9uIlEBWjFf58Uf4?534-5.7.14 vHllOx4qpNDxbzjP1FGSCmkxd7rM> Please log in via your web browser and?534-5.7.14 then try again.?534-5.7.14 Learn more at?534 5.7.14 https://support.google.com/mail/answer/78754 mc18sm6667117wic.23 - gsmtp)
Aug 20 18:58:02 localhost postfix/pickup[17341]: 876B2812CC: uid=0 from=<root>
Aug 20 18:58:02 localhost postfix/cleanup[18480]: 876B2812CC: message-id=20150820155802.876B2812CC@sip.gmail.com
Aug 20 18:58:02 localhost postfix/qmgr[17342]: 876B2812CC: from=root@sip.gmail.com, size=427, nrcpt=1 (queue active)
Aug 20 18:58:02 localhost postfix/smtp[18482]: warning: database /etc/postfix/sasl_passwd.db is older than source file /etc/postfix/sasl_passwd
Aug 20 18:58:03 localhost postfix/smtp[18482]: connect to smtp.gmail.com[2a00:1450:400c:c09::6d]:587: Network is unreachable
Aug 20 18:58:04 localhost postfix/smtp[18482]: 876B2812CC: SASL authentication failed; server smtp.gmail.com[64.233.184.108] said: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtKo?534-5.7.14 mAFPOyVXudlFtsnjbF6yGeyZQvPtuVy_YDx2RMp6r5Y4HI4H3FztAmNWjXW7gBU1Iukkv3?534-5.7.14 ypI0fyyPOE-ioZne4kjGt72S4EwwL8ZvPKD8DCT1lZbTceW5JSqV1vKRjv-I3umNHPg1iN?534-5.7.14 QppIdGROEzMMZgE_7X-NmJraK0nx51SEQmuEdPTEah0K3vV_s_UYTuOZJweMP5G0A8j_Hd?534-5.7.14 PSBVkhSn_f6EPWA04G0yHpty3ViY> Please log in via your web browser and?534-5.7.14 then try again.?534-5.7.14 Learn more at?534 5.7.14 https://support.google.com/mail/answer/78754 p1sm6137159wjq.28 - gsmtp
Aug 20 18:58:06 localhost postfix/smtp[18482]: 876B2812CC: to=m.idbahal@gmail.com, relay=smtp.gmail.com[64.233.184.109]:587, delay=3.9, delays=0.06/0.04/3.8/0, dsn=4.7.14, status=deferred (SASL authentication failed; server smtp.gmail.com[64.233.184.109] said: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbt7Z?534-5.7.14 vTH4_FVXXJpYdqId-PWVDGHvRaDHXe7Mj_1juHzeRgceCRonAtXXVuy21udXoqab48SHaW?534-5.7.14 d6-OWY2sklgg3rsYYG2d4egnsmY5NckkyTJBbuLpwLdFukFg2ZAnM_csU0V1N1lZFkfGDd?534-5.7.14 E_psYTHbZcRz9oRi3MpcsO2-avI1G1ZCTs19C8dpQ3Lbq5S00XbwuuLav5bVcJQUOQ2SjF?534-5.7.14 iu7Wkfs3OPBG-kSkSkcGkzvx_Mjk> Please log in via your web browser and?534-5.7.14 then try again.?534-5.7.14 Learn more at?534 5.7.14 https://support.google.com/mail/answer/78754 s7sm31117322wix.23 - gsmtp) -
Did you follow the instructions in the error message yet? It says to sign in from your web browser then try again.
-
Right at the end...
.... iu7Wkfs3OPBG-kSkSkcGkzvx_Mjk> Please log in via your web browser and?534-5.7.14 then try again.?534-5.7.14 Learn more at?534 5.7.14 https://support.google.com/mail/answer/78754 s7sm31117322wix.23 - gsmtp)
It even send you to a support page.
-
https://support.google.com/mail/answer/78754
My client isn't accepting my username and password
If you're repeatedly prompted for your username and password, or if you're getting an 'invalid credentials' or 'web login required' error, make sure your password is correct. Keep in mind that passwords are case-sensitive.
If you’re sure your password is correct, you can try these troubleshooting tips:
- If you've turned on 2-Step Verification for your account, you might need to enter an App password.
- Sign in to your account from the web version of Gmail at https://mail.google.com. Afterwards try accessing your messages in your mail app again.
- If you're still having problems, visit http://www.google.com/accounts/DisplayUnlockCaptcha and sign in with your Gmail username and password. If necessary, enter the letters in the distorted picture.
- Your mail app might not support the latest security standards. Learn how to allow less secure apps access to your account.
- Make sure your mail app isn't set to check for new email too frequently. If your mail app checks for new messages more than once every 10 minutes, the app’s access to your account could be blocked.
- Try changing your password according to our tips on creating a strong password.
-
yes i follow it, i already sign in my gmail account
-
@scottalanmiller said:
- Your mail app might not support the latest security standards. Learn how to allow less secure apps access to your account.
Did you follow this part of the instructions?
https://support.google.com/accounts/answer/6010255?vid=1-635756832764607833-18280792062057614980
-
@IT-ADMIN said:
yes i follow it, i already sign in my gmail account
There are many more points there than signing in with your gmail account.
-
Allowing less secure apps to access your account
Google may block sign in attempts from some apps or devices that do not use modern security standards. Since these apps and devices are easier to break into, blocking them helps keep your account safer.
Some examples of apps that do not support the latest security standards include:
- The Mail app on your iPhone or iPad with iOS 6 or below
- The Mail app on your Windows phone preceding the 8.1 release
- Some Desktop mail clients like Microsoft Outlook and Mozilla Thunderbird
Access your account
To help keep your account secure, we may block these less secure apps from accessing your account, and you’ll see a “Password incorrect” error when trying to sign in. If this is the case, you have two options:
- Upgrade to a more secure app that uses the most up to date security measures. All Google products, like Gmail, use the latest security measures.
- Go to Allow less secure apps and choose “Allow” to let less secure apps access your Google account. We don't recommend this option because it may make it easier for someone to gain access to your account.
If you’re still having issues accessing your account after trying the options above, see other reasons you might receive the "password incorrect" error.
-
And here is the link for you to turn down the security level:
-
@scottalanmiller said:
And here is the link for you to turn down the security level:
finally i get email in my mailbox, you are great scott
-
unfortunately there is no best answer option in this forum
-
Not yet, working on that, though.
-
the next task is to make freePBX send notification to my email
-
i will work on that tomorrow, i'm tired now