Trying to configure exim4 with office365

Discussion in 'Mail Server' started by raphael75, Apr 17, 2014.

  1. raphael75

    raphael75 New Member

    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    I am a noob to Linux. We have Debian 7.4 with exim4. I'm trying to configure it to use our office365 as a relay, but I have no idea what to do. This is what the logs show when I send a test message (some parts have been changed to generic terms for security):

    Code:
    2014-04-17 08:51:56 1WalnI-0006xO-Uc <= test@domain U=test P=test S=325
    2014-04-17 08:52:01 1WalnI-0006xO-Uc TLS error on connection to <ip address> [<ip address>] (recv): A TLS packet with unexpected length was received.
    2014-04-17 08:52:01 1WalnI-0006xO-Uc TLS error on connection to <ip address> [<ip address>] (send): The specified session has been invalidated for some reason.
    2014-04-17 08:52:01 1WalnI-0006xO-Uc ** jsmith@domain R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail server after MAIL FROM:<test@domain> SIZE=1360: host <ip address> [<ip address>]: 530 5.7.1 Client was not authenticated
    2014-04-17 08:52:02 1WalnO-0006xU-0K <= <> R=1WalnI-0006xO-Uc U=Debian-exim P=local S=1223
    2014-04-17 08:52:02 1WalnI-0006xO-Uc Completed

    It looks like exim4 needs to authenticate, but I don't know how to do that. Please help, thanks!

    DevynCJohnson likes this.
  2. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,298
    Likes Received:
    1,042
    Trophy Points:
    113
  3. raphael75

    raphael75 New Member

    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    Unfortunately yes, it's M$ office365 :( Our company recently switched to it & I have to change our Debian webserver to be able to work with it.
    Last edited: Apr 17, 2014
  4. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,298
    Likes Received:
    1,042
    Trophy Points:
    113
    Unfortunately, I lack enough knowledge to answer your question. Good luck.
  5. raphael75

    raphael75 New Member

    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    It doesn't have to use exim4, I can use sendmail or something else. Is there anything I can use with Debian/Apache/PHP to enable our webserver to relay email through office 365?
  6. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,226
    Likes Received:
    415
    Trophy Points:
    83

Share This Page