Email gateway¶
The NightPOS mail gateway allows you to inject directly all the received emails in NightPOS.
Its principle is straightforward: your SMTP server executes the “mailgate” script for every new incoming email.
The script takes care of connecting to your NightPOS database through XML-RPC, and send the emails via
the MailThread.message_process() feature.
Prerequisites¶
Administrator access to the NightPOS 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):
email@address: "|/nightpos-directory/addons/mail/static/scripts/nightpos-mailgate.py -d <database-name> -u <userid> -p <password>"
For Exim¶
*: |/nightpos-directory/addons/mail/static/scripts/nightpos-mailgate.py -d <database-name> -u <userid> -p <password>
Tip
If you do not have access/manage your email server, use incoming mail servers.