I have installed Postfix on a Docker container and Postgresql on another one. When sending emails between two users, everything is OK but when I tried to invoke a Shell script on mail receipt (using this tutorial: Iredmail hooks), I got the following message (in the log file /var/log/iredapd/iredapd.log):
ERROR: Unexpected error: (OperationalError) could not connect to server connection refused Is the server running on host "127.0.0.1" ... ?
Why Iredmail is looking locally when using hooks ? How to configure it to enable hooks ?