diff --git a/doc/configuration.rst b/doc/configuration.rst index ee4368555..808f3193b 100644 --- a/doc/configuration.rst +++ b/doc/configuration.rst @@ -644,3 +644,31 @@ Hash the file using the following command:: Finally, reload postfix:: $ service postfix reload + +************************ +Auto-reply using Postfix +************************ + +The user that executes the autoreply script needs to access +:file:`settings.py`. You must apply proper permissions on this file. For +example, if :file:`settings.py` belongs to ``www-data:www-data``, you can add +the ``vmail`` user to the ``www-data`` group and set the read permission +for the group. + +To make Postfix use this feature, you need to update your +configuration file as follows: + +``/etc/postfix/master.cf``:: + + autoreply unix - n n - - pipe + flags= user=vmail: argv=python /manage.py autoreply $sender $mailbox + +Replace ```` by the name of the database you +use. ```` is the path of your Modoboa instance. + +.. note:: + + Auto-reply messages are just sent once per sender for a + pre-defined time period. By default, this period is equal to 1 day + (86400s), you can adjust this value by modifying the **Automatic + reply timeout** parameter available in the online panel. diff --git a/doc/index.rst b/doc/index.rst index 6d00c2965..1496f5da4 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -32,9 +32,6 @@ And it is extensible by nature and comes with a lot of additional extensions: |`modoboa-pfxadmin-migrate |A tool to migrate from |https://github.com/modoboa/modoboa-pfxadmin-migrate | |`_ |Postfixadmin | | +---------------------------------------------------------+-------------------------+------------------------------------------------------+ -|`modoboa-postfix-autoreply |Away message editor |https://modoboa-postfix-autoreply.readthedocs.io | -|`_ |(postfix compatible) | | -+---------------------------------------------------------+-------------------------+------------------------------------------------------+ |`modoboa-radicale |A frontend for `Radicale |https://modoboa-radicale.readthedocs.io | |`_ |`_ | | +---------------------------------------------------------+-------------------------+------------------------------------------------------+