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

    Voicemail to Microsoft 365 email

    Scheduled Pinned Locked Moved IT Discussion
    freepbxfreepbx 15microsoft 365exchange online
    32 Posts 4 Posters 2.8k Views
    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 @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
                      • WLS-ITGuyW
                        WLS-ITGuy @WLS-ITGuy
                        last edited by

                        @WLS-ITGuy

                        I got my test message but there are still 12 emails in the queue.

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

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

                          @WLS-ITGuy

                          I got my test message but there are still 12 emails in the queue.

                          Do those messages have @pbxhost.domain.com instead of @domain.com?

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

                            @Dashrender said in Voicemail to Microsoft 365 email:

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

                            @WLS-ITGuy

                            I got my test message but there are still 12 emails in the queue.

                            Do those messages have @pbxhost.domain.com instead of @domain.com?

                            They should process when their delay timer hits.

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

                              @Dashrender said in Voicemail to Microsoft 365 email:

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

                              @WLS-ITGuy

                              I got my test message but there are still 12 emails in the queue.

                              Do those messages have @pbxhost.domain.com instead of @domain.com?

                              Yes, the test message has [email protected].

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

                                We are down to 8 in the queue...guessing it is working now?

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

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

                                  We are down to 8 in the queue...guessing it is working now?

                                  look at the log.

                                  you should see them.

                                  tail /var/log/maillog

                                  or look at the debug in the GUI.

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

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

                                    OK. There was some extra stuff at the end of the main.cf file that I deleted. New log entry:

                                    These were likely related to Ooption 1 from your first post. Even though you said you did option 2.

                                    I say that because you said

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

                                    I also have sasl_passwd and sasl_passwd.db

                                    As those have to do with authenticated login to O365/gmail

                                    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:

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

                                      OK. There was some extra stuff at the end of the main.cf file that I deleted. New log entry:

                                      These were likely related to Ooption 1 from your first post. Even though you said you did option 2.

                                      I say that because you said

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

                                      I also have sasl_passwd and sasl_passwd.db

                                      As those have to do with authenticated login to O365/gmail

                                      Log:

                                      Oct  8 11:17:11 pbxhost postfix/smtp[30073]: 40AA8301CAACB: to=<[email protected]>, relay=wisluthsem-org.mail.protection.outlook.com[104.47.55.138]:25, delay=73424, delays=73423/0.01/0.24/0.21, dsn=5.4.1, status=bounced (host wisluthsem-org.mail.protection.outlook.com[104.47.55.138] said: 550 5.4.1 All recipient addresses rejected : Access denied. AS(201806271) [BN8NAM12FT046.eop-nam12.prod.protection.outlook.com] (in reply to end of DATA command))
                                      Oct  8 11:17:11 pbxhost postfix/qmgr[27283]: 40AA8301CAACB: removed
                                      Oct  8 11:17:12 pbxhost postfix/smtp[30074]: 2A101302379A9: to=<[email protected]>, relay=wisluthsem-org.mail.protection.outlook.com[104.47.55.138]:25, delay=109498, delays=109496/0.01/0.23/1.6, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=29128468211287, Hostname=BL0PR05MB7188.namprd05.prod.outlook.com] 8293 bytes in 0.155, 52.109 KB/sec Queued mail for delivery)
                                      Oct  8 11:17:12 pbxhost postfix/qmgr[27283]: 2A101302379A9: removed
                                      Oct  8 11:17:12 pbxhost postfix/smtp[30075]: 694CA302790FF: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[209.85.201.27]:25, delay=59024, delays=59022/0.02/0.34/1.8, dsn=2.0.0, status=sent (250 2.0.0 OK  1602173832 t9si3215512qve.192 - gsmtp)
                                      Oct  8 11:17:13 pbxhost postfix/smtp[30076]: 694CA302790FF: to=<[email protected]>, relay=wisluthsem-org.mail.protection.outlook.com[104.47.59.138]:25, delay=59025, delays=59022/0.02/0.21/2.6, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=28840705401309, Hostname=BYAPR05MB6038.namprd05.prod.outlook.com] 541136 bytes in 0.328, 1607.666 KB/sec Queued mail for delivery)
                                      Oct  8 11:17:13 pbxhost postfix/qmgr[27283]: 694CA302790FF: removed
                                      Oct  8 11:22:10 pbxhost postfix/qmgr[27283]: 5FB90302A9FA2: from=<[email protected]>, size=1021259, nrcpt=1 (queue active)
                                      Oct  8 11:22:12 pbxhost postfix/smtp[31384]: 5FB90302A9FA2: to=<[email protected]>, relay=wisluthsem-org.mail.protection.outlook.com[104.47.55.138]:25, delay=4580, delays=4578/0.01/0.23/2, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=7722351204859, Hostname=DM6PR05MB4489.namprd05.prod.outlook.com] 1029011 bytes in 0.408, 2457.728 KB/sec Queued mail for delivery)
                                      Oct  8 11:22:12 pbxhost postfix/qmgr[27283]: 5FB90302A9FA2: removed
                                      
                                      JaredBuschJ 1 Reply Last reply Reply Quote 0
                                      • JaredBuschJ
                                        JaredBusch @WLS-ITGuy
                                        last edited by

                                        @WLS-ITGuy Those are delivered

                                        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:

                                          @WLS-ITGuy Those are delivered

                                          I have a few of these entries:

                                          Oct  8 11:17:10 pbxhost postfix/qmgr[27283]: 40AA8301CAACB: from=<>, size=2478, nrcpt=1 (queue active)
                                          Oct  8 11:17:10 pbxhost postfix/qmgr[27283]: 2A101302379A9: from=<[email protected]>, size=771, nrcpt=1 (queue active)
                                          Oct  8 11:17:10 pbxhost postfix/qmgr[27283]: 694CA302790FF: from=<[email protected]>, size=533259, nrcpt=2 (queue active)
                                          Oct  8 11:17:11 pbxhost postfix/smtp[30073]: 40AA8301CAACB: to=<[email protected]>, relay=wisluthsem-org.mail.protection.outlook.com[104.47.55.138]:25, delay=73424, delays=73423/0.01/0.24/0.21, dsn=5.4.1, status=bounced (host wisluthsem-org.mail.protection.outlook.com[104.47.55.138] said: 550 5.4.1 All recipient addresses rejected : Access denied. AS(201806271) [BN8NAM12FT046.eop-nam12.prod.protection.outlook.com] (in reply to end of DATA command))
                                          

                                          Guessing these won't go because of authentication issues?

                                          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:

                                            @JaredBusch said in Voicemail to Microsoft 365 email:

                                            @WLS-ITGuy Those are delivered

                                            I have a few of these entries:

                                            Oct  8 11:17:10 pbxhost postfix/qmgr[27283]: 40AA8301CAACB: from=<>, size=2478, nrcpt=1 (queue active)
                                            Oct  8 11:17:10 pbxhost postfix/qmgr[27283]: 2A101302379A9: from=<[email protected]>, size=771, nrcpt=1 (queue active)
                                            Oct  8 11:17:10 pbxhost postfix/qmgr[27283]: 694CA302790FF: from=<[email protected]>, size=533259, nrcpt=2 (queue active)
                                            Oct  8 11:17:11 pbxhost postfix/smtp[30073]: 40AA8301CAACB: to=<[email protected]>, relay=wisluthsem-org.mail.protection.outlook.com[104.47.55.138]:25, delay=73424, delays=73423/0.01/0.24/0.21, dsn=5.4.1, status=bounced (host wisluthsem-org.mail.protection.outlook.com[104.47.55.138] said: 550 5.4.1 All recipient addresses rejected : Access denied. AS(201806271) [BN8NAM12FT046.eop-nam12.prod.protection.outlook.com] (in reply to end of DATA command))
                                            

                                            Guessing these won't go because of authentication issues?

                                            Do I need to create the [email protected] account? I actually think that is a group email address that sends any email to the receptionists if they leave emails on our general switchboard number.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 2 / 2
                                            • First post
                                              Last post