Voicemail to Microsoft 365 email
-
Hello,
Quick backstory, we switched from in house exchange to Microsoft 365 and finally after 10 months shut down our local exchange server. I thought I had everything working for voicemail being set to go from PBX to Exchange Online but realized it wasn't the case when I didn't receive a VM that someone said they left me.
I followed this thread:
https://community.freepbx.org/t/voicemail-to-email/65641
using option 2 from here
But I am still not receiving voicemails to email. PBX system still says I have 10 in the queue.
Log from /var/log/maillog
Oct 8 08:58:04 pbxhost postfix/qmgr[21757]: 40AA8301CAACB: from=<>, size=2478, nrcpt=1 (queue active) Oct 8 08:58:04 pbxhost postfix/qmgr[21757]: 2A101302379A9: from=<vm@domain.org>, size=771, nrcpt=1 (queue active) Oct 8 08:58:04 pbxhost postfix/qmgr[21757]: 694CA302790FF: from=<asterisk@pbxhost.domain.org>, size=533259, nrcpt=2 (queue active) Oct 8 08:58:04 pbxhost postfix/smtp[24405]: error: open database /etc/postfix/generic.db: No such file or directory Oct 8 08:58:04 pbxhost postfix/smtp[24406]: error: open database /etc/postfix/generic.db: No such file or directory Oct 8 08:58:04 pbxhost postfix/smtp[24407]: error: open database /etc/postfix/generic.db: No such file or directory Oct 8 08:58:05 pbxhost postfix/smtp[24407]: warning: hash:/etc/postfix/generic is unavailable. open database /etc/postfix/generic.db: No such file or directory Oct 8 08:58:05 pbxhost postfix/smtp[24407]: warning: hash:/etc/postfix/generic lookup error for "asterisk@pbxhost.domain.org" Oct 8 08:58:05 pbxhost postfix/smtp[24407]: fatal: smtp_generic_maps map lookup problem for asterisk@pbxhost.domain.org Oct 8 08:58:05 pbxhost postfix/smtp[24406]: warning: hash:/etc/postfix/generic is unavailable. open database /etc/postfix/generic.db: No such file or directory Oct 8 08:58:05 pbxhost postfix/smtp[24406]: warning: hash:/etc/postfix/generic lookup error for "vm@domain.org" Oct 8 08:58:05 pbxhost postfix/smtp[24406]: fatal: smtp_generic_maps map lookup problem for vm@domain.org Oct 8 08:58:06 pbxhost postfix/smtp[24405]: warning: hash:/etc/postfix/generic is unavailable. open database /etc/postfix/generic.db: No such file or directory Oct 8 08:58:06 pbxhost postfix/smtp[24405]: warning: hash:/etc/postfix/generic lookup error for "asterisk@domain.org" Oct 8 08:58:06 pbxhost postfix/smtp[24405]: fatal: smtp_generic_maps map lookup problem for asterisk@domain.org Oct 8 08:58:06 pbxhost postfix/qmgr[21757]: warning: private/smtp socket: malformed response Oct 8 08:58:06 pbxhost postfix/qmgr[21757]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Oct 8 08:58:06 pbxhost postfix/master[13829]: warning: process /usr/libexec/postfix/smtp pid 24407 exit status 1 Oct 8 08:58:06 pbxhost postfix/master[13829]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling Oct 8 08:58:06 pbxhost postfix/error[24412]: 694CA302790FF: to=<annageig@gmail.com>, relay=none, delay=50678, delays=50676/2/0/0.08, dsn=4.3.0, status=deferred (unknown mail transport error) Oct 8 08:58:06 pbxhost postfix/error[24412]: 694CA302790FF: to=<user@domain.org>, relay=none, delay=50678, delays=50676/2/0/0.1, dsn=4.3.0, status=deferred (unknown mail transport error) Oct 8 08:58:06 pbxhost postfix/qmgr[21757]: warning: private/smtp socket: malformed response Oct 8 08:58:06 pbxhost postfix/qmgr[21757]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Oct 8 08:58:06 pbxhost postfix/master[13829]: warning: process /usr/libexec/postfix/smtp pid 24406 exit status 1 Oct 8 08:58:06 pbxhost postfix/error[24412]: 2A101302379A9: to=<user@domain.org>, relay=none, delay=101153, delays=101151/2.1/0/0.04, dsn=4.3.0, status=deferred (unknown mail transport error) Oct 8 08:58:07 pbxhost postfix/qmgr[21757]: warning: private/smtp socket: malformed response Oct 8 08:58:07 pbxhost postfix/qmgr[21757]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Oct 8 08:58:07 pbxhost postfix/master[13829]: warning: process /usr/libexec/postfix/smtp pid 24405 exit status 1 Oct 8 08:58:07 pbxhost postfix/error[24412]: 40AA8301CAACB: to=<asterisk@domain.org>, relay=none, delay=65080, delays=65077/2.4/0/0.06, dsn=4.3.0, status=deferred (unknown mail transport error) Not sure what to look for now. Any help would be greatly appreciated.
-
@WLS-ITGuy so to be clear , it was working and now all the sudden it is not working? Direct Send would work only for internal domains emails on your Office 365.
-
@dbeato Up until 3 days ago I was getting voicemails from the system or at least I thought I was.
So wouldn't vm@domain.org sending an email to user1@domain.org be an internal send? Or even though it is "internal" because my pbxhost is on campus and exchange is online it isn't "internal"?
-
@WLS-ITGuy Yeah, that would work. I would try to check what has changed on your PBX.
-
@dbeato Also is see this "asterisk@pbxhost.domain.org" shouldn't it be "asterisk@domain.org"?
-
@dbeato said in Voicemail to Microsoft 365 email:
@dbeato Also is see this "asterisk@pbxhost.domain.org" shouldn't it be "asterisk@domain.org"?
Oh man, where do I change that
-
@WLS-ITGuy said in Voicemail to Microsoft 365 email:
@dbeato said in Voicemail to Microsoft 365 email:
@dbeato Also is see this "asterisk@pbxhost.domain.org" shouldn't it be "asterisk@domain.org"?
Oh man, where do I change that
In System Admin, under hostname I see asterisk@domain.org
-
-
@JaredBusch
Like this: -
Something else weird is that usually when I make a change and hit submit - I get the red apply button in the upper right corner but the last couple changes I haven't been getting that. Guess It is time for a server reboot.
-
@WLS-ITGuy said in Voicemail to Microsoft 365 email:
Something else weird is that usually when I make a change and hit submit - I get the red apply button in the upper right corner but the last couple changes I haven't been getting that. Guess It is time for a server reboot.
You get that for changes that affect the Asterisk dial plan, which is most things.
But email settings have nothing to do with the dial plan.
-
Hey look at that. I learned something new today.
-
@WLS-ITGuy
have you done this yet?@JaredBusch said in Voicemail to Microsoft 365 email:
I created a connector in O365 and manually tweaked postfix settings on the PBX.
-
@Dashrender said in Voicemail to Microsoft 365 email:
@WLS-ITGuy
have you done this yet?@JaredBusch said in Voicemail to Microsoft 365 email:
I created a connector in O365 and manually tweaked postfix settings on the PBX.
Yes.
After making some changes I restarted the postfix service and got this log entry:
Oct 8 10:31:50 pbxhost postfix/postfix-script[17811]: stopping the Postfix mail system Oct 8 10:31:50 pbxhost postfix/master[13829]: terminating on signal 15 Oct 8 10:31:50 pbxhost postfix/postfix-script[17894]: starting the Postfix mail system Oct 8 10:31:50 pbxhost postfix/master[17896]: daemon started -- version 2.10.1, configuration /etc/postfix Oct 8 10:31:50 pbxhost postfix/qmgr[17898]: B4E1C302A935E: from=<asterisk@pbxhost.domain.org>, size=638465, nrcpt=1 (queue active) Oct 8 10:31:50 pbxhost postfix/smtp[17900]: error: open database /etc/postfix/generic.db: No such file or directory Oct 8 10:31:51 pbxhost postfix/smtp[17900]: warning: hash:/etc/postfix/generic is unavailable. open database /etc/postfix/generic.db: No such file or directory Oct 8 10:31:51 pbxhost postfix/smtp[17900]: warning: hash:/etc/postfix/generic lookup error for "asterisk@pbxhost.domain.org" Oct 8 10:31:51 pbxhost postfix/smtp[17900]: fatal: smtp_generic_maps map lookup problem for asterisk@pbxhost.domain.org Oct 8 10:31:52 pbxhost postfix/qmgr[17898]: warning: private/smtp socket: malformed response Oct 8 10:31:52 pbxhost postfix/qmgr[17898]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Oct 8 10:31:52 pbxhost postfix/master[17896]: warning: process /usr/libexec/postfix/smtp pid 17900 exit status 1 Oct 8 10:31:52 pbxhost postfix/master[17896]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling Oct 8 10:31:52 pbxhost postfix/error[17903]: B4E1C302A935E: to=<user2@domain.org>, relay=none, delay=2050, delays=2048/1.3/0/0.04, dsn=4.3.0, status=deferred (unknown mail transport error) Oct 8 10:33:25 pbxhost postfix/pickup[17897]: 5716E30125224: uid=995 from=<asterisk> Oct 8 10:33:25 pbxhost postfix/cleanup[18455]: 5716E30125224: message-id=<20201008153325.5716E30125224@pbxhost.domain.org> Oct 8 10:33:25 pbxhost postfix/qmgr[17898]: 5716E30125224: from=<asterisk@pbxhost.domain.org>, size=531, nrcpt=1 (queue active) Oct 8 10:33:25 pbxhost postfix/smtp[18461]: error: open database /etc/postfix/generic.db: No such file or directory Oct 8 10:33:25 pbxhost postfix/smtp[18461]: warning: hash:/etc/postfix/generic is unavailable. open database /etc/postfix/generic.db: No such file or directory Oct 8 10:33:25 pbxhost postfix/smtp[18461]: warning: hash:/etc/postfix/generic lookup error for "asterisk@pbxhost.wisluthsem.org" Oct 8 10:33:25 pbxhost postfix/smtp[18461]: fatal: smtp_generic_maps map lookup problem for asterisk@pbxhost.wisluthsem.org Oct 8 10:33:26 pbxhost postfix/qmgr[17898]: warning: private/smtp socket: malformed response Oct 8 10:33:26 pbxhost postfix/qmgr[17898]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Oct 8 10:33:26 pbxhost postfix/master[17896]: warning: process /usr/libexec/postfix/smtp pid 18461 exit status 1 Oct 8 10:33:26 pbxhost postfix/master[17896]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling Oct 8 10:33:26 pbxhost postfix/error[17903]: 5716E30125224: to=<user1@domain.org>, relay=none, delay=1.3, delays=0.08/1.1/0/0.06, dsn=4.3.0, status=deferred (unknown mail transport error)
-
So your postfix is hosed up somehow.
-
@JaredBusch said in Voicemail to Microsoft 365 email:
So your postfix is hosed up somehow.
You could say that
-
I believe mysystem is defualt right now.
These are the only values not commented out in my
/etc/postfix/main.cf
file.queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix mail_owner = postfix inet_interfaces = localhost inet_protocols = all mydestination = $myhostname, localhost.$mydomain, localhost unknown_local_recipient_reject_code = 550 alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.10.1/samples readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
-
-
@JaredBusch said in Voicemail to Microsoft 365 email:
These are the files in the postfix directory.
a quick check of the files, they are all default.
I also have sasl_passwd and sasl_passwd.db
-
@JaredBusch said in Voicemail to Microsoft 365 email:
I believe mysystem is defualt right now.
These are the only values not commented out in my
/etc/postfix/main.cf
file.queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix mail_owner = postfix inet_interfaces = localhost inet_protocols = all mydestination = $myhostname, localhost.$mydomain, localhost unknown_local_recipient_reject_code = 550 alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.10.1/samples readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
OK. There was some extra stuff at the end of the main.cf file that I deleted. New log entry:
Oct 8 11:06:50 pbxhost postfix/qmgr[17898]: A94203002F7DE: from=<asterisk@pbxhost.wisluthsem.org>, size=35487, nrcpt=1 (queue active) Oct 8 11:06:50 pbxhost postfix/qmgr[17898]: B4E1C302A935E: from=<asterisk@pbxhost.wisluthsem.org>, size=638465, nrcpt=1 (queue active) Oct 8 11:06:50 pbxhost postfix/smtp[27105]: error: open database /etc/postfix/generic.db: No such file or directory Oct 8 11:06:50 pbxhost postfix/smtp[27106]: error: open database /etc/postfix/generic.db: No such file or directory Oct 8 11:06:50 pbxhost postfix/smtp[27106]: warning: hash:/etc/postfix/generic is unavailable. open database /etc/postfix/generic.db: No such file or directory Oct 8 11:06:50 pbxhost postfix/smtp[27106]: warning: hash:/etc/postfix/generic lookup error for "asterisk@pbxhost.wisluthsem.org" Oct 8 11:06:50 pbxhost postfix/smtp[27106]: fatal: smtp_generic_maps map lookup problem for asterisk@pbxhost.wisluthsem.org Oct 8 11:06:50 pbxhost postfix/smtp[27105]: warning: hash:/etc/postfix/generic is unavailable. open database /etc/postfix/generic.db: No such file or directory Oct 8 11:06:50 pbxhost postfix/smtp[27105]: warning: hash:/etc/postfix/generic lookup error for "asterisk@pbxhost.wisluthsem.org" Oct 8 11:06:50 pbxhost postfix/smtp[27105]: fatal: smtp_generic_maps map lookup problem for asterisk@pbxhost.wisluthsem.org Oct 8 11:06:51 pbxhost postfix/qmgr[17898]: warning: private/smtp socket: malformed response Oct 8 11:06:51 pbxhost postfix/qmgr[17898]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Oct 8 11:06:51 pbxhost postfix/master[17896]: warning: process /usr/libexec/postfix/smtp pid 27106 exit status 1 Oct 8 11:06:51 pbxhost postfix/master[17896]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling Oct 8 11:06:51 pbxhost postfix/qmgr[17898]: warning: private/smtp socket: malformed response Oct 8 11:06:51 pbxhost postfix/qmgr[17898]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Oct 8 11:06:51 pbxhost postfix/master[17896]: warning: process /usr/libexec/postfix/smtp pid 27105 exit status 1 Oct 8 11:06:51 pbxhost postfix/error[27109]: B4E1C302A935E: to=<steve.geiger@wisluthsem.org>, relay=none, delay=4149, delays=4148/1.2/0/0.06, dsn=4.3.0, status=deferred (unknown mail transport error) Oct 8 11:06:51 pbxhost postfix/error[27111]: A94203002F7DE: to=<kevin.keller@wisluthsem.org>, relay=none, delay=63383, delays=63382/1.2/0/0.06, dsn=4.3.0, status=deferred (unknown mail transport error) Oct 8 11:07:10 pbxhost postfix/postfix-script[27199]: stopping the Postfix mail system Oct 8 11:07:10 pbxhost postfix/master[17896]: terminating on signal 15 Oct 8 11:07:10 pbxhost postfix/postfix-script[27279]: starting the Postfix mail system Oct 8 11:07:10 pbxhost postfix/master[27281]: daemon started -- version 2.10.1, configuration /etc/postfix