Webmin - Send monitoring notifications through gmail rather than local mail server
Hi,
I have webmin set up to monitor several services on my server, including sendmail. This past weekend sendmail went down and I didn't find out about it until Monday because webmin had no way of sending me notifications. I see on the "webmin->System and Server Status->Service Monitoring" page there is the option of using an external smtp server instead of the local mail server for sending out email notifications. Does anyone know how I can configure this to authenticate and send alerts through gmail (or hotmail, yahoo, or any other free email service)? Thanks! Anthony |
Quote:
I haven't played with Webmin in a while, but there are how-to docs for both gmail and yahoo on how to configure them to be an MTA (for Google, for example: http://lifehacker.com/111166/how-to-...ur-smtp-server). The downside is that you'll have to open a channel to the Internet for SMTP access, to use it. |
I have seen some of the how-to guides. I don't want to use Google as the backend for all my server emails as I have client websites on the box and would rather they go our through the box itself. It's only the administrative notifications I want going out.
|
Quote:
The only other option (and the one I'd probably use, too), is look at the SMTP check script. If sendmail is down, you could try to restart it and sleep for a few minutes, then check again. If it's still down, send an outgoing alert via the gmail smtp server. |
Hi Tbone,
Both of those sound like great ideas...I actually have it try to restart sendmail already when it goes down but it didn't come back up last week. Where in Webmin would I tell it to use Gmail to send the reminders? The only thing I could find thus far is for it to use an external SMTP server to send emails, but it doesn't give me the option to set up any sort of authentication for that (ex: gmail username and password). Is there somewhere else I need to be looking to set that information up? Thanks! |
Quote:
You have a few options:
|
I have to much mail coming from clients websites on the server to have everything go through gmail. Let me research the smarthost and see if I can get that to work for me along with sendmail.
|
Quote:
Again, if sendmail is down, you won't be able to send mail, which is why I suggested the sendemail and/or ssmtp programs, which DO NOT NEED IT. |
All times are GMT -5. The time now is 12:12 PM. |