Update procmail config to use /var/run/tornado_email_collector/email.sock
@@ -6,14 +6,14 @@ PROCMAILRC="/home/$GW_USER/.procmailrc"
add_user_group 'eventgw' '/sbin/nologin' '/home/eventgw'
#Add procmailrc for now forwarding to both eventhandler and tornado
-if [[ ! -e "$PROCMAILRC" ]] || ! grep "tornado/email.sock" "$PROCMAILRC" >> /dev/null ; then
+if [[ ! -e "$PROCMAILRC" ]] || ! grep "tornado_email_collector/email.sock" "$PROCMAILRC" >> /dev/null ; then
echo "[i] Rewriting '$PROCMAILRC' including tornado"
echo -n 'SHELL=/bin/sh
:0
*
{
:0 c
- | /usr/bin/socat - /var/run/tornado/email.sock 2>&1
+ | /usr/bin/socat - /var/run/tornado_email_collector/email.sock 2>&1
:0
| /usr/bin/socat - /var/run/eventhandler/rw/email.socket 2>&1
}' > "$PROCMAILRC"
