ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Voicemail to Microsoft 365 email

    IT Discussion
    freepbx freepbx 15 microsoft 365 exchange online
    4
    32
    2.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • WLS-ITGuyW
      WLS-ITGuy
      last edited by

      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=<[email protected]>, size=771, nrcpt=1 (queue active)
      Oct  8 08:58:04 pbxhost postfix/qmgr[21757]: 694CA302790FF: from=<[email protected]>, 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 "[email protected]"
      Oct  8 08:58:05 pbxhost postfix/smtp[24407]: fatal: smtp_generic_maps map lookup problem for [email protected]
      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 "[email protected]"
      Oct  8 08:58:05 pbxhost postfix/smtp[24406]: fatal: smtp_generic_maps map lookup problem for [email protected]
      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 "[email protected]"
      Oct  8 08:58:06 pbxhost postfix/smtp[24405]: fatal: smtp_generic_maps map lookup problem for [email protected]
      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=<[email protected]>, 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=<[email protected]>, 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=<[email protected]>, 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=<[email protected]>, 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.
      dbeatoD 1 Reply Last reply Reply Quote 0
      • dbeatoD
        dbeato @WLS-ITGuy
        last edited by

        @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.

        WLS-ITGuyW 1 Reply Last reply Reply Quote 0
        • WLS-ITGuyW
          WLS-ITGuy @dbeato
          last edited by

          @dbeato Up until 3 days ago I was getting voicemails from the system or at least I thought I was.

          So wouldn't [email protected] sending an email to [email protected] be an internal send? Or even though it is "internal" because my pbxhost is on campus and exchange is online it isn't "internal"?

          dbeatoD 1 Reply Last reply Reply Quote 0
          • dbeatoD
            dbeato @WLS-ITGuy
            last edited by

            @WLS-ITGuy Yeah, that would work. I would try to check what has changed on your PBX.

            dbeatoD 1 Reply Last reply Reply Quote 0
            • dbeatoD
              dbeato @dbeato
              last edited by

              @dbeato Also is see this "[email protected]" shouldn't it be "[email protected]"?

              WLS-ITGuyW 1 Reply Last reply Reply Quote 0
              • WLS-ITGuyW
                WLS-ITGuy @dbeato
                last edited by

                @dbeato said in Voicemail to Microsoft 365 email:

                @dbeato Also is see this "[email protected]" shouldn't it be "[email protected]"?

                Oh man, where do I change that 😄

                WLS-ITGuyW 1 Reply Last reply Reply Quote 0
                • WLS-ITGuyW
                  WLS-ITGuy @WLS-ITGuy
                  last edited by

                  @WLS-ITGuy said in Voicemail to Microsoft 365 email:

                  @dbeato said in Voicemail to Microsoft 365 email:

                  @dbeato Also is see this "[email protected]" shouldn't it be "[email protected]"?

                  Oh man, where do I change that 😄

                  In System Admin, under hostname I see [email protected]

                  1 Reply Last reply Reply Quote 0
                  • JaredBuschJ
                    JaredBusch
                    last edited by

                    This all depends on how you are sending email.

                    I send to O365 unauthenticated.

                    I created a connector in O365 and manually tweaked postfix settings on the PBX.

                    Do you have SysAdmin Pro? If so, you will have this.
                    b1969b04-87a6-48ae-9d82-6d0c6bf08917-image.png

                    If you choose external, you will have an option for O365
                    e3b116dc-3c9e-4fc5-915e-40a32ec5874c-image.png

                    WLS-ITGuyW DashrenderD 2 Replies Last reply Reply Quote 0
                    • WLS-ITGuyW
                      WLS-ITGuy @JaredBusch
                      last edited by

                      @JaredBusch
                      Like this:

                      alt text

                      1 Reply Last reply Reply Quote 0
                      • WLS-ITGuyW
                        WLS-ITGuy
                        last edited by

                        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.

                        JaredBuschJ 1 Reply Last reply Reply Quote 0
                        • JaredBuschJ
                          JaredBusch @WLS-ITGuy
                          last edited by

                          @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.

                          WLS-ITGuyW 1 Reply Last reply Reply Quote 1
                          • WLS-ITGuyW
                            WLS-ITGuy @JaredBusch
                            last edited by

                            @JaredBusch

                            Hey look at that. I learned something new today.

                            1 Reply Last reply Reply Quote 0
                            • DashrenderD
                              Dashrender @JaredBusch
                              last edited by

                              @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.

                              WLS-ITGuyW 1 Reply Last reply Reply Quote 0
                              • WLS-ITGuyW
                                WLS-ITGuy @Dashrender
                                last edited by

                                @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.

                                alt text

                                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=<[email protected]>, 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 "[email protected]"
                                Oct  8 10:31:51 pbxhost postfix/smtp[17900]: fatal: smtp_generic_maps map lookup problem for [email protected]
                                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=<[email protected]>, 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=<[email protected]>
                                Oct  8 10:33:25 pbxhost postfix/qmgr[17898]: 5716E30125224: from=<[email protected]>, 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 "[email protected]"
                                Oct  8 10:33:25 pbxhost postfix/smtp[18461]: fatal: smtp_generic_maps map lookup problem for [email protected]
                                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=<[email protected]>, relay=none, delay=1.3, delays=0.08/1.1/0/0.06, dsn=4.3.0, status=deferred (unknown mail transport error)
                                
                                1 Reply Last reply Reply Quote 0
                                • JaredBuschJ
                                  JaredBusch
                                  last edited by

                                  So your postfix is hosed up somehow.

                                  WLS-ITGuyW 1 Reply Last reply Reply Quote 0
                                  • WLS-ITGuyW
                                    WLS-ITGuy @JaredBusch
                                    last edited by

                                    @JaredBusch said in Voicemail to Microsoft 365 email:

                                    So your postfix is hosed up somehow.

                                    You could say that 🙂

                                    1 Reply Last reply Reply Quote 0
                                    • JaredBuschJ
                                      JaredBusch
                                      last edited by

                                      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
                                      
                                      WLS-ITGuyW 1 Reply Last reply Reply Quote 0
                                      • JaredBuschJ
                                        JaredBusch
                                        last edited by JaredBusch

                                        These are the files in the postfix directory.
                                        1cc7f783-7b55-462d-821f-b50f9a075adc-image.png

                                        a quick check of the files, they are all default.

                                        WLS-ITGuyW 1 Reply Last reply Reply Quote 0
                                        • WLS-ITGuyW
                                          WLS-ITGuy @JaredBusch
                                          last edited by

                                          @JaredBusch said in Voicemail to Microsoft 365 email:

                                          These are the files in the postfix directory.
                                          1cc7f783-7b55-462d-821f-b50f9a075adc-image.png

                                          a quick check of the files, they are all default.

                                          I also have sasl_passwd and sasl_passwd.db

                                          1 Reply Last reply Reply Quote 0
                                          • WLS-ITGuyW
                                            WLS-ITGuy @JaredBusch
                                            last edited by

                                            @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=<[email protected]>, size=35487, nrcpt=1 (queue active)
                                            Oct  8 11:06:50 pbxhost postfix/qmgr[17898]: B4E1C302A935E: from=<[email protected]>, 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 "[email protected]"
                                            Oct  8 11:06:50 pbxhost postfix/smtp[27106]: fatal: smtp_generic_maps map lookup problem for [email protected]
                                            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 "[email protected]"
                                            Oct  8 11:06:50 pbxhost postfix/smtp[27105]: fatal: smtp_generic_maps map lookup problem for [email protected]
                                            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=<[email protected]>, 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=<[email protected]>, 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
                                            
                                            WLS-ITGuyW JaredBuschJ 2 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post