Cannot direct outgoing email through external smarthost for only specific virtual servers

I run 38 virtual servers on one physical server, and want to deliver outgoing email normally for all but two. Those two virtual servers need to use Solarwinds' Mail Assure service.

Incoming email works fine in all cases, but if I try to send outgoing email for those two domains through Mail Assure not only does it not work but breaks all outgoing email delivery.

Call them domain1.tld and domain2.tld.

How do I properly setup outgoing email delivery per domain? I see lots of examples on the Internet but none seem specific to this need.

Status: 
Active

Comments

Howdy -- thanks for contacting us!

While that's unfortunately getting a bit outside the scope of Virtualmin support, I'll try and point you in the right direction by sharing that I think this link here is pretty close to what you're after:

https://serverfault.com/questions/320992/how-can-i-configure-postfix-to-...

You may just need to swap the entries in the transport file.

If you have further questions on how to get that to work, it's no problem to get support, but unfortunately we wouldn't be able to help with that... instead, we'd encourage you to ask in the Forums, where the community would be able to assist. Thanks!

Thanks, andreychek. I'll have a look.

I'm often not sure if the problem is with Virtualmin/Webmin or Postfix. Most often the problem is between my ears: )

You're always welcome to ask!

If it's not something we can help with, we'll just let you know... and hopefully pass along an idea or two in the process.