1

Topic: Send post request on new mail receive.

- iRedMail version 0.9.8 MYSQL edition:
- Ubuntu 16.04 
- Web server Nginx
- Manage mail accounts with iRedAdmin-Pro.
====

I have troubles with set up kind of notification on my mail server. I want to make a POST request to my main server after mail server receive new mails.
I tried to pipe message to external script and send request via curl, but after I changed "rely to"
*
ATTACHMENT
*
I do not receive any data at all. (any mails do not came in INBOX and any requests was registered on my main server)
I have tested last script separately, it works fine.

Any suggestion to do this via pipe, or via dovecot  + plugins.

Many thanks!

Post's attachments

example.png
example.png 99.82 kb, 1 downloads since 2018-11-19 

You don't have the permssions to download the attachments of this post.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Send post request on new mail receive.

Your script gets the full email message by piping. like this:

cat message.eml | /home/vmail/script.sh

By the way, try to move your script out of /home/vmail, for example, /opt/script.sh (for testing purpose to avoid permission issue).