1
- ====================================================================
2
- How to use my own email servers to send and receive messages in Odoo
3
- ====================================================================
1
+ =================================================================
2
+ How to use my own email servers to send and receive email in Odoo
3
+ =================================================================
4
4
5
5
When is it needed
6
6
=================
7
- You need it if you use Odoo Community or Enterprise.
8
-
9
- What if I use Odoo Online
10
- =========================
11
- You are done! Odoo Online comes up with an embedded and ready-to-use email
12
- server (*@yourcompany.odoo.com *).
13
- We recommend to keep this default setting as is as it is really convenient.
14
-
15
- Indeed, while it is branded by Odoo, the visible source of any message
16
- sent from Odoo will be your personal email address (your Odoo login).
17
- Your contacts will therefore trust your messages.
18
-
19
- How does it work when a contact replies to an email sent from Odoo
20
- ==================================================================
21
- Default reply-to is a generic address used to automatically route
22
- any incoming email to the discussion thread of the origin business object
23
- (opportunity, order, task, etc.) and to the inbox of all its followers.
24
- By default this address is "catchall@" but it can be changed.
25
- Thanks to it, you get a perfect message thread in Odoo and you don't
26
- pollute your external email box with Odoo-related topics.
27
-
28
- How to use my own email servers
29
- ===============================
30
- You need to be a system admin to set this up.
31
- Go to :menuselection: `Settings --> General Settings ` and check *External
32
- Email Servers * (watch out: this checkbox only shows up after Odoo 10).
7
+ Using your own email servers is required to send and receive messages
8
+ in Odoo Community or Enterprise. Odoo Online embeds an out-of-box
9
+ email solution that works straight away. However you can still use
10
+ your own email servers with the online edition. Some insights
11
+ are provided here below.
12
+
13
+ How to set it up
14
+ ================
15
+ As a system admin, go to :menuselection: `Settings --> General Settings `
16
+ and check *External Email Servers *
17
+ (watch out: this checkbox only shows up after Odoo 10).
33
18
Then, go through the following steps.
34
19
20
+ .. note :: Office 365 doesn't allow external hosts like Odoo.
21
+ Consequently you can't use Office 365 email servers to send
22
+ or receive messages in Odoo.
23
+
35
24
Set an outgoing email server for outbound messages
36
25
--------------------------------------------------
37
26
You need the SMTP data of your email provider (Gmail, Outlook,
@@ -65,6 +54,11 @@ in General Settings.
65
54
66
55
Create a catchall address
67
56
-------------------------
57
+ When a contact replies to an email sent from Odoo, the *reply-to * address
58
+ is a generic address used to route the reply to the right discussion thread
59
+ in Odoo (opportunity, order, task, etc.) and to the inbox of all its followers.
60
+ By default this address is "catchall@" but it can be changed.
61
+
68
62
Create a catchall address in your email server settings. We advise
69
63
you to use "catchall@" so that everything works out straight away.
70
64
If you want to use another alias, you have extra steps in Odoo:
@@ -83,17 +77,76 @@ If you want to use another alias, you have extra steps in Odoo:
83
77
84
78
.. note :: You can edit the email alias used for bounced messages the same way.
85
79
86
- How to perfectly combine Odoo Discuss and my traditional email tool
87
- ===================================================================
80
+ How to use my own email servers with Odoo Online
81
+ ================================================
82
+ Odoo Online comes up with an embedded and ready-to-use email
83
+ server (*@yourcompany.odoo.com *).
84
+ We recommend to keep this default setting as it is really convenient.
85
+ Indeed, while it is Odoo-labelled, the visible source of any message
86
+ sent from Odoo will be your personal email address (your Odoo login).
87
+ Your contacts will therefore trust your messages.
88
+
89
+ You can still use your own email servers if you want your contacts to see
90
+ your historic email address when they reply to your messages or if you want
91
+ to manage the reputation of your email servers yourself.
92
+
93
+ There are 2 methods:
94
+
95
+ * [Recommended] **Use a catchall redirection ** (your server -> Odoo server)
96
+ to receive emails in Odoo in real time thanks to the Odoo email server.
97
+ Create a catchall address in your email server settings.
98
+ Then apply following redirection:
99
+ catchall@yourdomain.ext -> catchall@yourcompany.odoo.com.
100
+ That's it you're ready to go!
101
+ * **Use a catchall mailbox ** to exclusively use your own email server.
102
+ That way you can also manage your email server reputation (blacklisting, etc).
103
+ However, incoming messages are fetched from the email server
104
+ thanks to a cron running every hour. This is the shortest time lap
105
+ for crons in Online instances.
106
+ If you opt for this solution, simply follow the procedure
107
+ of above section.
108
+
109
+ How to be SPF-compliant when using external email servers in Odoo
110
+ =================================================================
111
+ Sender Policy Framework (SPF) is an email-validation system that checks that
112
+ incoming mail from a domain comes from a host authorized by that domain's
113
+ administrator. Such a security system is used in most email servers.
114
+ If you don't comply with it, your emails sent from Odoo will be likely
115
+ flagged as spam.
116
+
117
+ To be SPF-compliant, you need to authorize Odoo as a sending host
118
+ in your domain name settings:
119
+
120
+ * Sign in to your domain’s account at your domain host.
121
+ * Locate the page for updating your domain’s DNS records.
122
+ * If no TXT record is set, create one with following definition:
123
+ v=spf1 include:_spf.odoo.com ~all
124
+ * In case a TXT record is already set, add "include:_spf.odoo.com".
125
+
126
+ e.g. for a Gmail server it should be:
127
+
128
+ v=spf1 include:_spf.odoo.com include:_spf.google.com ~all
129
+
130
+ Find `here <https://www.mail-tester.com/spf/ >`__ the exact procedure to
131
+ create or modify TXT records in your own domain registrar.
132
+
133
+ Your new SPF record can take up to 48 hours to go into effect,
134
+ but this usually happens more quickly.
135
+
136
+ .. note :: Adding more than one SPF record for a domain can cause problems
137
+ with mail delivery and spam classification. Instead, we recommend using
138
+ only one SPF record by modifying it to authorize Odoo.
139
+
140
+ How to choose between Odoo and my traditional email box
141
+ =======================================================
88
142
Odoo Discuss is a perfect tool to send and read messages related to
89
- business objects. But it doesn't aim to replace a full-featured email
90
- software (Gmail, Outlook, Yahoo, AOL, etc.).
143
+ business documents. However it doesn't aim to replace a full-featured email
144
+ solution (Gmail, Outlook, Yahoo, AOL, etc.).
91
145
We recommend to take the most out of both systems without mingling them:
92
146
What is related to Odoo business objects or applications goes into Odoo;
93
- What is not stays into your external email boxes .
147
+ What is not can be managed into your external email box .
94
148
95
149
To do so, create specific email aliases to use in Odoo (to generate leads
96
150
or opportunities, helpdesk tickets, etc.). If you take an email alias
97
151
already used for messaging outside of Odoo, incoming messages will land
98
- into both systems.
99
- This will negatively impact your productivity when it comes to process them.
152
+ into both systems. This will negatively impact your productivity.
0 commit comments