SMTP Virtual Server and Exchange 365

just recently purchased office 365 premium for our users and will eventually migrate them from our on-premise exchange server to the exchange online. The problem is before i migrate i need to make sure that all of the current programs we run that forward email alerts and messages will still work when being directed to the office 365 exchange server. I created a SMTP virtual server on one of my servers and configured it to send outbound mail to the exchange 365 server. I am able to drop the email.txt file into the pickup folder and get it to work as long as I put the from address in the txt file to match the authentication email and address on the SMTP outbound security settings. As soon as I change the from address or try to send an email through another server application i will get a badmail message

iagnostic-Code: smtp;550 5.7.60 SMTP; Client does not have permissions to send as this sender [SN2PR19MB0765.namprd19.prod.outlook.com]

The message is the same when i try from a server application except it sets the from address to
From: postmaster@machinename.domain.local
natevelli2Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
you have to have a mailbox that is authenticated in order to send mail.  so change the from address.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RoninCommented:
Do you have Exchange on-prem? How many users you intending to move to Office365?
Generally, you can try this approach.
0
Marshal HubsEmail ConsultantCommented:
Link provided by Ronin has sufficient information. I would suggest you to use Stellar EDB to PST Converter to migrate mailboxes from Exchange Server to Office 365. The software can migrate multiple mailboxes to office 365. For more information, please check this link: https://www.stellarinfo.com/support/kb/index.php/article/convert-offline-edb-to-office365

If you need any help, please let me know!!
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Sandeep KumarAssociate ConsultantCommented:
You can migrate on-premise Exchange server EDB file to Office 365 by using Kernel for Exchange Server Recovery software. One can easily export EDB file from any device from anywhere. It can repair the Exchange EDB file which is corrupted before or during migration. To know more about the process and download the tool, visit: https://www.nucleustechnologies.com/exchange-edb-to-office-365-migration.html
0
Todd NelsonSystems EngineerCommented:
Do you plan to be implementing directory synchronization via AAD Connect?
0
natevelli2Author Commented:
It was an issue with the authentication but I also had to hard code the from address in the application that was passing the report off to the relay server
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.