Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1. Install python, pip and requests:

 

Code Block
languagebash
easy_install pip
pip install requests

2. Get the postfix filter and extract it under /var/spool/filter.

 3. Execute the following:

...

Code Block
mkdir /var/spool/filter/incoming
chmod +x /var/spool/filter/autosave
chmod +x /var/spool/filter/email_callback.py
touch /var/spool/filter/save.log

...

4. Edit file /var/spool/filter/email_callback.json, change "nuxeo.server.com" to point to the Nuxeo Server, and optionally change the username / password as well.

...

Code Block
use_sacl_cache = no

...

9. Locate postfix' master.cf and edit it in order to include the needed filter. The needed edits will depend to the exact configuration, below we will just include two typical fragments:

...

Code Block
smtpd     pass  -       -       n       -       -       smtpd
  -o content_filter=pifilter:
 
submission inet n       -       n       -       -       smtpd
  -o smtpd_tls_security_level=may
  -o content_filter=pifilter:

...

Notes: (1) smtpd is responsible for handling port 25, submission is responsible for handling port 587. (2) Casebrowser does not support starttls, so 'smtpd_tls_security_level' needs to be set to 'may' if port 587 is configured in settings.xml.

...

You can consult postfix' documentation for more details.

10. Reload postfix' configuration and watch its log:

...

Code Block
postfix reload
tail -f /var/log/mail.log