Our eZpublish 4.3 contact form is randomly sending emails to the ezpublish site admin email address instead of the correct form address.
The contact form is a standard 'information collection' ezpublish form, the user choose from a select box a department to contact then type his/her message and hit send.
The site is running on a Debian 7 box with PHP 5.6 installed via apt-get (as an apache module). eZpublish 4.3 need PHP 5.3 so we have compiled a PHP 5.3 from source and put it in /opt/php53
and it's run with php-fpm.
Sometimes the email is sent to the correct department email address, but sometimes it is sent to the site admin address.
My question is how can I debug what is going on? I can't find anything in apache logs. I tried looking in ezpublish log file but can't find anything of value there either.
What could be going wrong?