LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-02-2022, 10:53 PM   #1
guthrie
Member
 
Registered: Jul 2003
Location: Iowa
Distribution: Debian
Posts: 32

Rep: Reputation: 15
exim4 smtp server setup for Office365?


I have a Debian linux machine that was setup to use a local SMTP server, which has now been retired.

So I need to find a new server - and I think I have options of: {office365.com, something.google, something.goDaddy}.

Since I use Outlook on all other devices, I am first trying the MSoft option.

I ran dpkg-reconfigure exim4-config, and set the first option to Internet, and the rest to some recommended ans basic default values.

I then edited the /etc/update-exim4.conf file to set:
dc_smarthost='smtp.office365.com'
I had read to set port to 587, but don't see any option for that, so I also tried:
dc_smarthost='smtp.office365.com::587'

I then also edited the passwd.client file to:

smtp.office365.com:myID:myPassword

I ran update-exim4.conf, and then checked "service exim4 status".
It seems to be running.

But trying to send mail, fails, and I get this (below).

I don't understand why google is apparently being used, or why the "unreachable" (I can ping google.com).
I do have a gmail account, but don't think that should be relevant here.

Any hints on what is wrong here, and/or a better way to do this?

------------------------------------------------------
2022-04-02 22:45:57 1narBd-000T1b-HW <= root@localhost U=root P=local S=350
2022-04-02 22:45:57 1narBd-000T1b-HW H=aspmx.l.google.com [2607:f8b0:4001:c18::1a] Network is unreachable
2022-04-02 22:45:58 1narBd-000T1b-HW ** guthrie@miu.edu R=dnslookup T=remote_smtp H=aspmx.l.google.com [172.253.115.27] X=TLS1.2:ECDHE_ECDSA_CHACHA20_POLY1305:256 CV=yes DN="CN=mx.google.com": SMTP error from remote mail server after RCPT TO:<guthrie@miu.edu>: 550-5.2.1 The email account that you tried to reach is disabled. Learn more at\n550 5.2.1 https://support.google.com/mail/?p=DisabledUser n69-20020a37a448000000b0067e4be2396esi2068101qke.435 - gsmtp
2022-04-02 22:45:58 1narBe-000T1f-Ew <= <> R=1narBd-000T1b-HW U=Debian-exim P=local S=2077
2022-04-02 22:45:58 1narBd-000T1b-HW Completed
2022-04-02 22:45:58 1narBe-000T1f-Ew => net <root@localhost> R=local_user T=mail_spool
2022-04-02 22:45:58 1narBe-000T1f-Ew Completed

Last edited by guthrie; 04-02-2022 at 11:00 PM.
 
Old 04-02-2022, 11:14 PM   #2
guthrie
Member
 
Registered: Jul 2003
Location: Iowa
Distribution: Debian
Posts: 32

Original Poster
Rep: Reputation: 15
I did also find this:

Requirements for SMTP Relay with Office 365
• The sending application must connect to the Office 365 servers on port 587
• The sending application must support TLS
• The sending application must authenticate with Office 365
• The account you authenticate to the relay server with must be the same account as the from the address on the messages you send through the relay.
… That would then mean that you need to create an Office 365 account for each of those devices

So if true, would mean that I could not send emails showing various tools or accounts or the actual local domain name of the system, but all would have to fake the same name, of the MSoft account.

Not feasible or practical.

Maybe I have to move to another approach?
What do others do for this?
 
  


Reply

Tags
exim4, mail



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to mount Office365 sharepoint on Linux server? james000 Linux - Software 3 02-10-2022 10:50 AM
Trying to configure exim4 with office365 raphael75 Linux - Newbie 3 04-21-2014 01:46 PM
[SOLVED] howto: exim4, update-exim4.conf, dc_relay_nets mutiple ipadresses engelienart Linux - Server 2 10-21-2011 02:09 AM
exim4 / portmap compromised. problem "solved" -> exim4 question & rkhunter log eichenhain Linux - Security 2 01-10-2011 11:00 AM
exim4 exim4, setup debian tongueroo Linux - Networking 1 11-09-2004 04:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration