Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

Split Mailserver Configuration, VestaCP and Office365, SMTP 550

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
ThA-LaN-LaW
Posts: 14
Joined: Mon Jan 25, 2016 2:25 pm

Split Mailserver Configuration, VestaCP and Office365, SMTP 550
  • Quote

Post by ThA-LaN-LaW » Thu Jul 02, 2020 7:28 pm

Hi!

some of our Customers want to use a "split" Mail-Server configuration, some Mailboxes at VestaCP, few Mailboxes at Office 365.

example.com ist registered at VestaCP with Web/DNS and Mail.
MX Record Points to VestaCP. Mail in/out from VestaCP runs perfect!

Some Users from example.com use an Office 365 Account.
So for this Mailboxes we forward the Mails to the "internal" Office 395 E-Mail Adresses.

VestaCP Account [email protected] -> Forward to [email protected]

If the User send from his Office 365 Account with [email protected] as sender to [email protected] (VestaCP Mailbox without Forward)
we get an "550 5.0.350 Remote server returned an error -> 550 smtp auth required"

Because of exim config:

Code: Select all

  deny    message       = smtp auth required
         sender_domains = +local_domains
         !authenticated = *
Which is ok, but i should recieve this Mails without be an open relay :)

The Customer _old_ Provider had the same setup, he accepted "external" Mails with the same Domain.

Similar, old Cases are:
viewtopic.php?t=11171
viewtopic.php?t=15151

My thoughts:
Domains with "Split" Setup could relay without Auth, perhaps additional with O365 Server IP Whitelist.
O365 Mails should Relay to VestaCP (i think this is not possible on o365)

Best Regards!
Top

ThA-LaN-LaW
Posts: 14
Joined: Mon Jan 25, 2016 2:25 pm

Re: Split Mailserver Configuration, VestaCP and Office365, SMTP 550
  • Quote

Post by ThA-LaN-LaW » Mon Jul 06, 2020 5:28 pm

Hi!

O365 couldn't Relay with Auth to "own" Mailservers.

So i modified my exim config with following ACL Settings:

Code: Select all

accept senders	= [email protected] : [email protected]				#all users at office365 or use *@example.com
hosts		= 40.92.0.0/15 : 40.107.0.0/16 : 52.100.0.0/14 : 104.47.0.0/17	#all office365 SMTP Servers
Office 365 SMTP Server IP's: https://docs.microsoft.com/de-de/office ... nge-online

Best Regards!
Top

barodius64
Posts: 1
Joined: Fri Oct 30, 2020 10:53 am

Os: Debian 9x
Web: apache + nginx
Re: Split Mailserver Configuration, VestaCP and Office365, SMTP 550
  • Quote

Post by barodius64 » Fri Oct 30, 2020 10:56 am

If you're an active Office 365 user, then this onedrive for business backup solution is something that you'd be interested in. Protecting your data should be your highest priority, trust me.
Top

jvivesc
Posts: 1
Joined: Tue Dec 15, 2020 4:28 pm

Os: CentOS 6x
Web: apache + nginx
Re: Split Mailserver Configuration, VestaCP and Office365, SMTP 550
  • Quote

Post by jvivesc » Tue Dec 15, 2020 4:38 pm

ThA-LaN-LaW wrote: ↑
Mon Jul 06, 2020 5:28 pm
Hi!

O365 couldn't Relay with Auth to "own" Mailservers.

So i modified my exim config with following ACL Settings:

Code: Select all

accept senders	= [email protected] : [email protected]				#all users at office365 or use *@example.com
hosts		= 40.92.0.0/15 : 40.107.0.0/16 : 52.100.0.0/14 : 104.47.0.0/17	#all office365 SMTP Servers
Office 365 SMTP Server IP's: https://docs.microsoft.com/de-de/office ... nge-online

Best Regards!
Hi @ThA-LaN-LaW

I copied your configuration to my conf file and still failing.
I don't know why, because i think it's correct... even I add a large list of Microsoft IP's...

Code: Select all

hosts		= 13.107.6.152/31 : 13.107.18.10/31 : 13.107.128.0/22 : 23.103.160.0/20 : 40.96.0.0/13 : 40.104.0.0/15 : 52.96.0.0/14 : 131.253.33.215/32 : 132.245.0.0/16 : 150.171.32.0/22 : 204.79.197.215/32 : 13.107.6.152/31 : 13.107.18.10/31 : 13.107.128.0/22 : 23.103.160.0/20 : 40.96.0.0/13 : 40.104.0.0/15 : 52.96.0.0/14 : 131.253.33.215/32 : 132.245.0.0/16 : 150.171.32.0/22 : 204.79.197.215/32 : 13.107.6.152/31 : 13.107.18.10/31 : 13.107.128.0/22 : 23.103.160.0/20 : 40.96.0.0/13 : 40.104.0.0/15 : 52.96.0.0/14 : 131.253.33.215/32 : 132.245.0.0/16 : 150.171.32.0/22 : 204.79.197.215/32 : 13.107.6.152/31 : 13.107.18.10/31 : 13.107.128.0/22 : 23.103.160.0/20 : 40.96.0.0/13 : 40.104.0.0/15 : 52.96.0.0/14 : 131.253.33.215/32 : 132.245.0.0/16 : 150.171.32.0/22 : 204.79.197.215/32 : 40.92.0.0/15 : 40.107.0.0/16 : 52.100.0.0/14 : 52.238.78.88/32 : 104.47.0.0/17 : 40.92.0.0/15 : 40.107.0.0/16 : 52.100.0.0/14 : 104.47.0.0/17 #all office365 SMTP Servers	= 40.92.0.0/15 : 40.107.0.0/16 : 52.100.0.0/14 : 104.47.0.0/17	#all office365 SMTP Servers
Where exactly you put the ACL lines?
I think I tried all the possibles configurations, and nothing...

Thanks you
Regards
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password