02AUG15: Set &#039;Default Address&#039; in Liquid Web cPanel so PHP undeliverable mail from board@utu168.org with Return-path: &lt;utu168@vir.liquidweb.com&gt; gets forwarded back to board@utu168.org and can be accessed and reprocessed manually to intended recipient through Outlook desktop client IMAP.<br /><br />cPanel will forward all unrouted email for “utu168.org” to “board@utu168.org”.<br /><br />31JUL15: Deleted board@utu168.org mailbox from liquid web server. This mail resides at Google now. PHP mail on Liquid Web server still works as intended.<br /><br /><br />---------------------------------------------------------------<br /><br />http://www.simplemachines.org/community/index.php?topic=527044.0<br /><br />http://www.simplemachines.org/community/index.php?topic=504772.0<br /><br />http://www.simplemachines.org/community/index.php?topic=343385.0<br />Topic: [TIP GUIDE] Setting up a gmail account on SMF&nbsp; (Read 96361 times) <br /><br /><br />Enabled 2-Step Verification<br />google.com/landing/2step/<br /><br />Enable Application Specific Password. Created SMF and used Google generated code in SMF mail settings.<br /><br /><br />-------------------------------------<br /><br />google.com/landing/2step/<br /><br />2 step SMF code for board@utu168.org<br /><br />243435<br /><br />gktffwzngpskbjvt<br /><br />2 step Outlook Windows machine for board@utu168.org<br /><br />hslgjcytqmvrmvtp<br /><br />22AUG15: 2-step verification not needed and turned off for board@utu168.org<br /><br />------------------------------<br /><br />google.com/landing/2step/<br /><br />2 step code for smart168forum@gmail.com&nbsp; 7/30/15<br /><br />uvxuajwvlevueuim<br /><br />--------------------------------------------<br />SMF settings:<br /><br />Mail type: SMTP<br />SMTP server: ssl://smtp.gmail.com<br />SMTP port: 465<br />SMTP username: smart168forum@gmail.com<br />SMTP password: ********<br /><br /><br /><br />------------------------------------------------<br /><br /><br />http://blog.mailgun.com/25-465-587-what-port-should-i-use/<br /><br />-------------------------------------------------------------------------------------<br /><br />	// Try to connect to the SMTP server... if it doesn&#039;t exist, only wait three seconds.<br />	if (!$socket = fsockopen($modSettings&#91;&#039;smtp_host&#039;], empty($modSettings&#91;&#039;smtp_port&#039;]) ? 25 : $modSettings<br /><br />&#91;&#039;smtp_port&#039;], $errno, $errstr, 3))<br />	{<br />		// Maybe we can still save this?&nbsp; The port might be wrong.<br />		if (substr($modSettings&#91;&#039;smtp_host&#039;], 0, 4) == &#039;ssl:&#039; &amp;&amp; (empty($modSettings&#91;&#039;smtp_port&#039;]) || $modSettings<br /><br />&#91;&#039;smtp_port&#039;] == 25))<br />		{<br />			if ($socket = fsockopen($modSettings&#91;&#039;smtp_host&#039;], 465, $errno, $errstr, 3))<br />				log_error($txt&#91;&#039;smtp_port_ssl&#039;]);<br />		}<br /><br />		// Unable to connect!&nbsp; Don&#039;t show any error message, but just log one and try to continue anyway.<br />		if (!$socket)<br />		{<br />			log_error($txt&#91;&#039;smtp_no_connect&#039;] . &#039;: &#039; . $errno . &#039; : &#039; . $errstr);<br />			return false;<br />		}<br />	}<br /><br /><br />https://support.google.com/a/answer/176600?hl=en<br /><br />Gmail SMTP Server could also be used to relay messages from your device or application. You can connect to Gmail mail <br /><br />servers using SMTP, SSL/TLS. If you connect using SMTP, you can only send mail to Gmail or Google Apps users; if you connect <br /><br />using SSL/TLS, you can send mail to anyone.<br /><br /><br />TRy 2 step authentication for board@utu168.org<br /><br />----------------------------------------------<br /><br />Added 67.225.237.100 as an Inbound Gateway<br /><br /><br />Still sporadic email processing errors when sending activation link. Created Smart168forum@gmail.com account and adjusted SMF settings to port email directly to Google address, bypassing the web server.<br /><br /><br /><br /><br /><br />Updated SMF &#039;Server settings&#039; with new address. Updated &#039;Mail settings&#039; with Google account settings:<br /><br />Mail type: SMTP<br />SMTP Server: ssl://smtp.googlemail.com<br />SMTP Port: 465<br />SMTP Username: smart168forum@gmail.com<br /><br />Configured Gmail settings for: SMART TD 168 Forum IMAP<br /><br /><br />Also tried tls with port 587. Nothing works with SMTP. Can only do with PHP.