How do I integrate mailgun with my Exchange 2016 Server?

How do I integrate mailgun with my Exchange 2016 Server?

My mailgun setup is complete and verified. Just need to get my Exchange mail to pass through mailgun.
Who is Participating?
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.

Tom CieslikIT EngineerCommented:
If your server is a CAS server then there is no simple way to automatically forward incoming email to different server.
You can create rule on each mailbox and forward email to outside using let say contacts but you must create that many contacts as many users you have and create rule under each mailbox but email address on other server (maligun) needs to be different from your local email address on Exchange.
Or you need to use some 3rd party tool to grab email from Exchange, I remember GFI software has some SMTP connector to grab emails from Exchange or other SMTP and put if in different server but it was long time ago.
Automatic forward is not possible and my question is why you want to do it ? If you want all emails go to maligun just change MX record in your DNS and point it to maligun.
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
This depends on how each user in your enterprise sends email.

Easy way will likely be to setup an MailGun SMTP credential for each user + then configure each user's mail client to use their respective credential.

This provides a way to track exactly who's sending what. This is essential when any client machines are running Windows, so can be hacked at any moment + start blasting spam + then MailGun will block all email flowing from your domain.

In the above approach, you'd simply setup each client's outbound SMTP configuration to use the new MailGun setup.

This is how all my clients are currently using Outlook + MailGun. This way, when one Windows machine gets hacked + starts spewing spam, the one SMTP credential password, of the offending user, can be changed + all spam spew ceases instantly. At this point, a ticket can be opened with MailGun explaining how problem was fixed + they'll start passing mail from your domain again.
sf1eldsAuthor Commented:
I used

This solved my problem 100%. Easy to implant as well.

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
David FavorLinux/LXD/WordPress/Hosting SavantCommented: seems similar to MailGun.

Two primary differences stand out.

1) MailGun allows you to send 10,000 email free each month. AuthSMTP charges $176.00 for first 10,000 email each month.

2) MailGun likely allows far better per message debugging, when problems arise. AuthSMTP isn't really clear what type of per message debugging they provide.

Be sure to keep MailGun on your list of services to test for low volume sites or sites with low ROI, where free email is useful.
sf1eldsAuthor Commented:
It worked better for me.
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

From novice to tech pro — start learning today.