diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-03-08 17:56:14 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-03-08 17:56:14 +0100 |
| commit | 2c5c9b8342df2748ad1044fa94c7c3ad821245ba (patch) | |
| tree | aa6228b4ee7c0038d8759f6d202c2e16e9ac0012 /doc/setup | |
| parent | 7d4ca676809564d592257450f6a7628d0722ba0a (diff) | |
| parent | c023d0784f27622f185a1075cba8e408067b5352 (diff) | |
[MERGE] forward port branch 12.0 up to c023d0784f2
Diffstat (limited to 'doc/setup')
| -rw-r--r-- | doc/setup/email_gateway.rst | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/doc/setup/email_gateway.rst b/doc/setup/email_gateway.rst new file mode 100644 index 00000000000..3567ad9c9bf --- /dev/null +++ b/doc/setup/email_gateway.rst @@ -0,0 +1,43 @@ +: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/12.0/discuss/email_servers.html#how-to-manage-inbound-messages>`. |
