Thursday, July 28, 2016

Error connecting external SMTP server

Here I am with some quick solution, if you are sending email connecting to external smtp server like smtp.gmail.com you may have to consider to check 2 options.

1. Check smtp ports are open or make sure its not block:
Open your WHM and go to "ConfigServer Security & Firewall" and Edit the configuration file for the csf firewall and lfd or click on "Firewall Configuration" locate SMTP_PORTS and make sure porst are open (Ex: 25,465,587)

2. Check smtp allowed users are added in the list or Always allow the following comma separated users and groups to bypass SMTP_BLOCK
Open your WHM and go to "ConfigServer Security & Firewall" and Edit the configuration file for the csf firewall and lfd or click on "Firewall Configuration" locate SMTP_ALLOWUSER and add the cpanel username (Ex: cpanel, )

Save the changes & you restart both csf and lfd.

In anyway if this one helps you, please make a comment & share in your post

Thank you.
Saf

UPDATE:
This is really strange, new problem rise everyday and we have to find solution, codes are also same like life now.

“Password not accepted from server: 535 Incorrect authentication data” when sending with GMail and phpMailer

using CentOs 6 Login to CPanel > Tweak Settings > All> "Restrict outgoing SMTP to root, exim, and mailman (FKA SMTP Tweak)" <== disable it.

Reference:  http://stackoverflow.com/questions/14297264/password-not-accepted-from-server-535-incorrect-authentication-data-when-send

Tuesday, July 5, 2016

Flash Nexus 5 Manually


  • fastboot erase boot
  • fastboot erase cache
  • fastboot erase recovery
  • fastboot erase system
  • fastboot flash bootloader "name-of-bootloader.img"
  • fastboot reboot-bootloader
  • fastboot flash radio "name-of-radio.img" (if present)
  • fastboot reboot-bootloader
  • fastboot flash system system.img
  • fastboot flash boot boot.img
  • fastboot flash recovery recovery.img
  • fastboot flash cache cache.img
  • fastboot flash vendor vendor.img (Nexus 9 only)
  • fastboot erase userdata
  • fastboot flash userdata userdata.img
  • fastboot reboot

Source : 
http://www.howtogeek.com/176284/how-to-upgrade-your-nexus-device-without-waiting-by-flashing-a-factory-image/

Saturday, July 2, 2016

Fatal error: Uncaught exception 'ImapMailboxException' with message 'Connection error: Can not authenticate to IMAP server

I am using php to connect and download mail from imap.google.com and also to send email using smpt.google.com this was working without any problem, sudenly this stop working and started to give error messages as bellow.

"Fatal error: Uncaught exception 'ImapMailboxException' with message 'Connection error: Can not authenticate to IMAP server: [AUTHENTICATIONFAILED] Invalid credentials (Failure)"

Fatal error: Uncaught exception 'ImapMailboxException' with message 'Connection error: Can not authenticate to IMAP server: [ALERT] Please log in via your web browser: https://support.google.com/mail/acco' in /xxxxxx/classes/ImapMailbox.php:51 Stack trace: #0 /home/xxxx/public_html/_backoffice/mailpilot/classes/ImapMailbox.php(42): ImapMailbox->initImapStream() #1 /xxxxxx/classes/ImapMailbox.php(114): ImapMailbox->getImapStream() #2 /xxxxxx/mail.v3.php(28): ImapMailbox->searchMailbox('ALL') #3 {main} thrown in/xxxxx/classes/ImapMailbox.php on line 51

Was looking for a solution two weeks and finally google contacted me with an answer, here is what you have to do.

It seems this error is related to the access to "Less secure apps" disabled for the user you're trying to connect via IMAP. Please follow these steps to solve this issue:

 1. In your Admin Console, follow the steps available at this support article https://support.google.com/a/answer/6260879?hl=en under the section "Enabling less secure apps to access accounts".

2. Log in as the affected user and follow the steps to "Allow less secure apps to access your account" as described at this support article https://support.google.com/accounts/answer/6010255.

Added Later: or go to this url https://myaccount.google.com/lesssecureapps

Added Later: If you have any smtp problem, make sure you have added cpanel username to firewall and also please follow the instruction in this url https://stackoverflow.com/questions/14297264/password-not-accepted-from-server-535-incorrect-authentication-data-when-send

Thanks Saf