1

Topic: Pipe incoming email

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.6.9
- Linux/BSD distribution name and version: Ubuntu
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx):None
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

I'm trying to execute a shell script on email reception , i followed this tutorial http://www.iredmail.org/docs/pipe.incom … cript.html
it worked perfectly.

Now I want to use an external postgreSQL database so i deleted the local database and change postgresql configuration to use the new one (external database) but unfortunately it doesn't work, please find below the error in var/log/iredapd/iredapd.log  file:

2017-04-17 13:27:27 ERROR Unexpected error: (OperationalError) could not connect to server: Connection refused
        Is the server running on host "127.0.0.1" and accepting
        TCP/IP connections on port 5432?"

Can any one help me, i'm stuck thank you .

----

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

2

Re: Pipe incoming email

Looks like your remote server is not accepting connections. Check if you have a firewall blocking the connection, or if you have it just have it bound to local host instead of your public IP address. (That will be in your config file for the database)