Before this commit, links to the documentation were referenced the previous version, 13.0, instead of the current one, 14.0. Eventhough there is a redirection done by NGINX of a "versionless" URL to the latest one (e.g. /documentation/user/general/auth/google.html -> /documentation/user/14.0/general/auth/google.html as of today), the goal is to keep links owrking for users that will still be using the 14.0 in three years (and should not endup on the 17.0 doc). closes odoo/odoo#60228 X-original-commit: 7ac08486d91d0ff0151abeeda057ffa6beda72e8 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
44 lines
1.4 KiB
ReStructuredText
44 lines
1.4 KiB
ReStructuredText
:banner: banners/email_gateway.jpg
|
|
|
|
==================
|
|
Odoo email gateway
|
|
==================
|
|
|
|
The Odoo mail gateway allows you to inject directly all the received emails in Odoo.
|
|
|
|
Its principle is straightforward: your SMTP server executes the "mailgate" script for every new incoming email.
|
|
|
|
The script takes care of connecting to your Odoo database through XML-RPC, and send the emails via the MailThread.message_process() feature.
|
|
|
|
Prerequisites
|
|
-------------
|
|
- Administrator access to the Odoo database.
|
|
- Your own mail server such as Postfix or Exim.
|
|
- Technical knowledge on how to configure an email server.
|
|
|
|
For Postfix
|
|
-----------
|
|
In you alias config (/etc/aliases):
|
|
|
|
.. code-block:: text
|
|
|
|
email@address: "|/odoo-directory/addons/mail/static/scripts/odoo-mailgate.py -d <database-name> -u <userid> -p <password>"
|
|
|
|
.. note:: Resources
|
|
- `Postfix <http://www.postfix.org/documentation.html>`
|
|
- `Postfix aliases <http://www.postfix.org/aliases.5.html>`
|
|
- `Postfix virtual <http://www.postfix.org/virtual.8.html>`
|
|
|
|
|
|
For Exim
|
|
--------
|
|
.. code-block:: text
|
|
|
|
*: |/odoo-directory/addons/mail/static/scripts/odoo-mailgate.py -d <database-name> -u <userid> -p <password>
|
|
|
|
.. note:: Resources
|
|
- `Exim <https://www.exim.org/docs.html>`
|
|
|
|
|
|
.. note:: If you don't have access/manage your email server, use `inbound messages<https://www.odoo.com/documentation/user/14.0/discuss/email_servers.html#how-to-manage-inbound-messages>`.
|