cant change from email

s2svoip

Member
Dec 9, 2019
279
11
18
45
i made a change to smtp_from but for some reason its not taking effect. reloaded and even rebooted server but in the email queue the from is still showing the old setting, not sure what i am missing, is it set anywhere else (checked domain override settings and I dont have one set for this) any ideas ?
 
A few ideas that may help
  • Did you try pressing the FLUSH CACHE button on the Status -> SIP Status page?
  • Try restarting the email_queue service so that it gets the new settings
  • What is your version of FusionPBX?
 
A few ideas that may help
  • Did you try pressing the FLUSH CACHE button on the Status -> SIP Status page?
  • Try restarting the email_queue service so that it gets the new settings
  • What is your version of FusionPBX?
cheers for replying Mark.

running 5.3.4
i rebooted the entire server so assumed that would flush / restart everything
i notice if i use the email test button, it works with the updated from address, but the voicemail emails do not.
since playing around with the from settings, i see this in the logs now, and new voicemails are not being emailed at all, they dont appear in the queue, they are in the voicemail box tho

2026-01-10 10:05:29.946843 95.60% [INFO] switch_cpp.cpp:1466 [send_mail] Email added to the queue as email_queue_uuid = 5eb39a7f-b225-4117-9258-0a8f8ef14439
2026-01-10 10:05:29.926842 95.60% [ERR] switch_cpp.cpp:1466 [database] can not bind parameter: undefined parameter: email_from

very odd
 
That was a good clue. Go to Advanced -> Default Settings. Then use the search tool for smtp_from. The primary smpt_from is in the email category, that is, the default one you should have configured. There are two other optional smtp_from settings. One for fax and voicemail. If you aren't going to use those, then set their values to false to disable them.

You might be using a cron job for the email_queue. You can verify this by using this command
crontab -e

If you are running it as a service, you would use
/usr/sbin/service email_queue restart
 
That was a good clue. Go to Advanced -> Default Settings. Then use the search tool for smtp_from. The primary smpt_from is in the email category, that is, the default one you should have configured. There are two other optional smtp_from settings. One for fax and voicemail. If you aren't going to use those, then set their values to false to disable them.

You might be using a cron job for the email_queue. You can verify this by using this command


If you are running it as a service, you would use

humm, only thing in crontab is

* * * * * /usr/bin/php /var/www/fusionpbx/app/xml_cdr/xml_cdr_import.php 300

I did a /usr/sbin/service email_queue restart as well as a full server reboot

checked the smpt_from and disabled the fax, but yeah it just wont send voicemail emails, still seeing the can not bind parameter: undefined parameter: email_from in the logs, so assume this is why emails are not getting to the queue to be sent, its odd why it stopped working entirely, it was sending before but with the wrong from address, but now its not sending at all
 
just to add, if i go into the voicemail box and select one to be resent, it goes into the queue and gets sent, with the correct from address!

so its something to do with when a normal voicemail is left its not getting to the queue
 
Thanks for contacting me so that I could help you.

Here is what solved the issue. In Default Settings, the smtp_from for fax and voicemail was disabled. However, FusionPBX 5.3 also required disabling smtp_from_name. After this was adjusted, then pressed the RELOAD button on the Default Settings page.

@s2svoip I enjoyed talking to you. Thanks for the conversation and for letting me help you for a while.