Hi all,
I have a working FusionPBX which can receive faxes and send them via the web gui.
I'm trying to set up email to fax, for that I followed the recommendation in https://www.pbxforums.com/threads/email-to-fax-under-fax-server.905/.
First I created a fax account with IMAP settings (see image).
Then I created a crontab as root to pull the emails
#crontab -e
*/2 * * * * root wget --no-check-certificate --delete-after https://OurURL/app/fax/fax_emails
Then I made sure advanced / default settings / fax / send_mode - set enabled to false.
Deleted all the logs and history in GUI:
app / fax server / sent
app / fax server / log
And in CLI:
/var/lib/freeswitch/storage/fax/sent
/var/lib/freeswitch/storage/fax/temp
then I restarted FreeSwitch
service freeswitch restart
I see the crontab task running in /var/log/syslog
Oct 25 17:34:01 fax CRON[3017]: (root) CMD (root wget --no-check-certificate --delete-after http://OurURL/app/fax/fax_emails.php)
But nothing in the fax log or queue.
When I do tcpdump I don't see any communications from FusionPBX towards our IMAP mail server, so it seems like it's not trying to fetch the
emails at all.
If I try to run php -f fax_emails.php I get:
Array
(
[0] => [CLOSED] IMAP connection broken (server response)
)
I'm sure the server is operational and that the credentials are good.
Is there a way to debug this php script further?
What am I doing wrong?
I have a working FusionPBX which can receive faxes and send them via the web gui.
I'm trying to set up email to fax, for that I followed the recommendation in https://www.pbxforums.com/threads/email-to-fax-under-fax-server.905/.
First I created a fax account with IMAP settings (see image).
Then I created a crontab as root to pull the emails
#crontab -e
*/2 * * * * root wget --no-check-certificate --delete-after https://OurURL/app/fax/fax_emails
Then I made sure advanced / default settings / fax / send_mode - set enabled to false.
Deleted all the logs and history in GUI:
app / fax server / sent
app / fax server / log
And in CLI:
/var/lib/freeswitch/storage/fax/sent
/var/lib/freeswitch/storage/fax/temp
then I restarted FreeSwitch
service freeswitch restart
I see the crontab task running in /var/log/syslog
Oct 25 17:34:01 fax CRON[3017]: (root) CMD (root wget --no-check-certificate --delete-after http://OurURL/app/fax/fax_emails.php)
But nothing in the fax log or queue.
When I do tcpdump I don't see any communications from FusionPBX towards our IMAP mail server, so it seems like it's not trying to fetch the
emails at all.
If I try to run php -f fax_emails.php I get:
Array
(
[0] => [CLOSED] IMAP connection broken (server response)
)
I'm sure the server is operational and that the credentials are good.
Is there a way to debug this php script further?
What am I doing wrong?