Setup EMails: Difference between revisions

m
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).  
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
<pre>
550-5.7.1 Invalid credentials for relay [2001:41d0:304:200::b3e4]. The IP
550-5.7.1 address you've registered in your G Suite SMTP Relay service doesn't
550-5.7.1 match domain of the account this email is being sent from. If you are
550-5.7.1 trying to relay mail from a domain that isn't registered under your G
550-5.7.1 Suite account or has empty envelope-from, you must configure your
550-5.7.1 mail server either to use SMTP AUTH to identify the sending domain or
550-5.7.1 to present one of your domain names in the HELO or EHLO command. For
550-5.7.1 more information, please visit
550 5.7.1  https://support.google.com/a/answer/6140680#invalidcred m24-20020a056512359800b004b22b1d52e4sm82237lfr.66 - gsmtp
</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)


*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 A, you must also enter the public ip address of the server of your Dolibarr in "Allow some IP addresses only".
Line 129: Line 141:
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.
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, emails sent can also be saved into the "Sent" folder if option "Stock a copy of all emails sent..." is on.
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 your 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.
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===