This bash script replaces the Rails task action_mailbox:ingress:exim
then your rails app doesn't need to be running in the same location than the email server.
$ nano /usr/local/bin/action_mailbox_relay.sh
URL and INGRESS_PASSWORD are hardcoded as defaults but these can be removed if prefer work with ENV vars.
#!/bin/bash