Hi,
First post here, so Hi!
I'd say I'm still new to Virtualmin but learning fast and I have a friend that knows it well that helps me out. However, We both don't know how this would work.
Scenario: So I have a VPS and am currently running Virtualmin GPL with CentOS 6.3. I was looking at zimbra for email, contacts and calendar for the sites I'll be running. Now I don't plan on being a hosting company just my site and a site for a friend really. I can figure out how to get zimbra running and make email work, but how can I get virtualmin to use the zimbra server to send it's messages like notifications on quotas and stuff like that? Also I was thinking about the php mail function. If I have a form on my site, would it use Zimbra or try and use the local systems postfix/dovecat?
If it's not possible to get Virtualmin or php to use an external mail server, how would I setup my system (BIND mainly) so that normal mail goes to zimbra but anything from webmin or php can still be sent out from the local system? (I Hope that makes sense)
Any thoughts or ideas?
Really appreciate it! :D
Goodnight, Dustin
Howdy,
So if you have the domain "example.com" setup in Zimbra, and you want messages going to an account on there -- you'd want to make sure that Virtualmin is not setup to receive emails for "example.com".
You can still host a website for example.com, while allowing email to go to example.com on your Zimbra server.
To do that, you'd want to make sure that in Edit Virtual Server -> Enabled Features, that the Mail for Domain feature is not enabled.
That doesn't prevent that domain from sending messages -- it just says that accounts for that domain aren't local.
Then, go into Server Configuration -> Edit DNS Records, and set the MX record for example.com to point to your Zimbra server.
-Eric
Hi,
Thanks for your reply. However, I already knew that I had to setup the MX records and point to the Zimbra server. My question is how to let the virtualmin server (or even postifx or sendmail) to use the Zimbra server to send notifications like the virtual server creation, bandwidth notifications and such. From what I've gathered reading through loads of pages today, I think what I have to do is setup sendmail (or postfix or whatever it is) to "relay" (? is that the right word) to the Zimbra server?
My other thought was that sendmail could still be configured to send mail and it works still but all it would do is send mail as the webmin/virtualmin address and only send not receive?
I hope that makes sense.
Thanks again!
Howdy,
When an email is sent via Virtualmin, it's send using the local MTA (which is typically Postfix).
So to change how those are sent (ie, if you wanted to setup relaying), you'd need to tweak the Postfix configuration.
What you described on the last part of your comment above is typically what I'd recommend though --
My other thought was that sendmail could still be configured to send mail and it works still but all it would do is send mail as the webmin/virtualmin address and only send not receive?
That's what I was thinking when I suggested disabling the "Mail for Domain" feature. That would allow Postfix to send mail -- but with "Mail for Domain" disabled, your Virtualmin server won't attempt to receive any email.
With that set, you shouldn't need to setup any sort of email relaying... instead, in Edit Virtual Server -> Configurable Options -> Contact Email, you'd just want to make sure the correct email address is set there... it sounds like that would be the account on your Zimbra server.
-Eric