Setup EMails: Difference between revisions

Jump to navigation Jump to search
m
Tag: 2017 source edit
Tag: 2017 source edit
Line 122: Line 122:
*Login/Pass: Keep login/pass empty (Choice A). In such case, on your Google console for email, you must set "Allow some IP addresses only" and enter the public IP of your Dolibarr server (see later). Or (choice B) enter your GSuite email account and an "application" password that is not the password of your account but a second password generated from https://myaccount.google.com/security).
*Login/Pass: Keep login/pass empty (Choice A). In such case, on your Google console for email, you must set "Allow some IP addresses only" and enter the public IP of your Dolibarr server (see later). Or (choice B) enter your GSuite email account and an "application" password that is not the password of your account but a second password generated from https://myaccount.google.com/security).


Note 1: You must first setup your Google account to relay outgoing email and to set the list of ip of your SMTP clients (https://admin.google.com, Application - GSuite - GMail - Advanced setup - Routing). Then choose "Accept all emails from my domain" or "Accept all", Choose "Enable TLS" and choose "SMTP authentication required" to no (Choice A) or yes (Choice B). If you try the choice A and got the error
Note 1: You must first setup your Google account to relay outgoing email and to set the list of ip of your SMTP clients (https://admin.google.com, Application - GSuite - GMail - Advanced setup - Routing). Then choose "Accept all emails from my domain" or "Accept all", Choose "Enable TLS" and choose "SMTP authentication required" to no (Choice A) or yes (Choice B).
 
*If you made Choice A, you must also enter the public ip address of the server of your Dolibarr in "Allow some IP addresses only".
*If you made Choice B, you must create an "application password" from https://myaccount.google.com/security and use this one. (2FA needs to be enabled in order to be able to create "application passwords")
 
Whatever is the choice (A or B), you will never have to enter the real password of your Google account inside Dolibarr setup when using the GMail relay solution.
 
Note 2: With this mode (A or B), emails sent can also be saved into the "Sent" folder if option "Stock a copy of all emails sent..." is on.
 
If you are a Gsuite user with several users/mailboxes, this mode is required if you want to have each user having its sent mails automatically stored into its own "Sent" directory of Gmail.
 
Note 3: If you try the choice A and got the error
<pre>
<pre>
550-5.7.1 Invalid credentials for relay [x:y:z:a:b:c:d:e]. The IP  
550-5.7.1 Invalid credentials for relay [x:y:z:a:b:c:d:e]. The IP  
Line 135: Line 146:
</pre>
</pre>
Then you can try to disable the "Enable TLS" or try to add a use and application password (so using a choice A+B)
Then you can try to disable the "Enable TLS" or try to add a use and application password (so using a choice A+B)
*If you made Choice A, you must also enter the public ip address of the server of your Dolibarr in "Allow some IP addresses only".
*If you made Choice B, you must create an "application password" from https://myaccount.google.com/security and use this one. (2FA needs to be enabled in order to be able to create "application passwords")
Whatever is the choice (A or B), you will never have to enter the real password of your Google account inside Dolibarr setup when using the GMail relay solution.
Note 2: With this mode (A or B), emails sent can also be saved into the "Sent" folder if option "Stock a copy of all emails sent..." is on.
If you are a Gsuite user with several users/mailboxes, this mode is required if you want to have each user having its sent mails automatically stored into its own "Sent" directory of Gmail.


===iCloud===
===iCloud===

Navigation menu