mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-08-19 01:34:43 -05:00
50 lines
1.5 KiB
ReStructuredText
50 lines
1.5 KiB
ReStructuredText
:banner: banners/email_gateway.jpg
|
|
|
|
=====================
|
|
Flectra email gateway
|
|
=====================
|
|
|
|
The Flectra mail gateway allows you to inject directly all the received emails in Flectra.
|
|
|
|
Its principle is straightforward: your SMTP server executes the "mailgate" script for every new incoming email.
|
|
|
|
The script takes care of connecting to your Flectra database through XML-RPC, and send the emails via
|
|
the `MailThread.message_process()` feature.
|
|
|
|
Prerequisites
|
|
-------------
|
|
- Administrator access to the Flectra 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 (:file:`/etc/aliases`):
|
|
|
|
.. code-block:: text
|
|
|
|
email@address: "|/flectra-directory/addons/mail/static/scripts/flectra-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
|
|
|
|
*: |/flectra-directory/addons/mail/static/scripts/flectra-mailgate.py -d <database-name> -u <userid> -p <password>
|
|
|
|
.. note::
|
|
Resources
|
|
|
|
- `Exim <https://www.exim.org/docs.html>`_
|
|
|
|
.. tip::
|
|
If you don't have access/manage your email server, use `inbound messages
|
|
<https://www.flectrahq.com/documentation/user/14.0/discuss/advanced/email_servers.html#how-to-manage-outbound-messages>`_.
|