Ad Widget

Collapse

Mail notifications with Office365

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • exgame
    Junior Member
    • Apr 2017
    • 7

    #1

    Mail notifications with Office365

    Hello,
    I'm struggling with Office365 and Exchange. I do get this error
    mail: cannot send message: Process exited with a non-zero status ssmtp

    it works perfect with gmail, config:

    [email protected]
    mailhub=smtp.gmail.com:587
    rewriteDomain=your_local_domain
    hostname=your_local_FQDN
    UseTLS=Yes
    UseSTARTTLS=Yes
    AuthUser=Gmail_username
    AuthPass=Gmail_password
    FromLineOverride=YES
  • exgame
    Junior Member
    • Apr 2017
    • 7

    #2
    Microsoft365 config

    [email protected]
    mailhub=smtp.office365.com:587
    rewriteDomain=domain.com
    hostname=domain.com
    UseTLS=yes
    UseSTARTTLS=yes
    [email protected]
    AuthPass=password
    FromLineOverride=YES
    AuthMethod=LOGIN

    I'm using debian jessie 8 with ssmtp
    Last edited by exgame; 02-05-2017, 15:55. Reason: Add up more info

    Comment

    • exgame
      Junior Member
      • Apr 2017
      • 7

      #3
      With the zabbix mail media type i'm getting this error:
      53365:20170502:141617.587 Login denied:


      47184:20170502:142927.345 Login denied:
      47184:20170502:142927.345 End of send_email():FAIL
      47184:20170502:142927.345 End of execute_action():FAIL
      47184:20170502:142927.345 error sending alert ID [200]
      47184:20170502:142927.345 query without transaction detected
      47184:20170502:142927.345 query [txnlev:0] [update alerts set retries=1,error='Login denied: ' where alertid=200]
      47184:20170502:142927.357 __zbx_zbx_setproctitle() title:'alerter [sent alerts: 0 success, 1 fail in 0.176799 sec, idle 30$
      47172:20170502:142927.416 __zbx_zbx_setproctitle() title:'poller #3 [got 4 values in 0.413260 sec, getting values]'
      47172:20170502:142927.416 In get_values()
      47172:20170502:142927.416 In DCconfig_get_poller_items() poller_type:0
      47172:20170502:142927.416 End of DCconfig_get_poller_items():1
      Last edited by exgame; 02-05-2017, 16:34.

      Comment

      • onallion
        Senior Member
        • Mar 2016
        • 131

        #4
        Make sure the users you're using actually have a license and a mailbox, and that you are able to log into them with the same details in Office 365.

        Comment

        Working...