You can set more mail servers with the "set mailserver" statement by separating them with coma, see more details in the manual:
You can also set event queue - in the case that the delivery will fail, the alert will be retried later:
Regards, Martin
On May 16, 2012, at 6:59 PM, sukbir singh wrote: Dear Martin, Yes I will go with gmail as my first option. Because I saw monit have the option to set other email mail servers. I have tried the EHLO commands below is what I see
250-AUTH LOGIN 250 -SIZE 20480000 250-HELP 250 AUTH=LOGIN
This was done based on telnet to port 1000. If I use the second mail server as backup and in case my first one fails(gmail) then how about the from email settings in monit will still be my gmail is it? Thank you.
Regards, Shai.
From: address@hiddenSubject: Re: Monit send email not working Date: Wed, 16 May 2012 08:41:27 +0200 To: address@hiddenShai,
are you sure your mail server listens on port 1000? Are you sure it supports SSL?
What you'll get back if you do this:
telnet <you mailserver> 1000
If you'll get the SMTP server response, you can try "EHLO <hostname>" to get the list of supported features.
If you have problem with your mail server - what is the reason to not use the Gmail when you tried to configure it and it works for you?
Regards, Martin
On May 16, 2012, at 6:23 AM, sukbir singh wrote: Dear Martin, In addition to that I have tried monit validate I get this.
Sendmail error: 504 PLAIN authentication is not permitted by this server. Aborting event
By adding using sslV2 then I get this monit: Error setting cipher list 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH' (no valid ciphers)Cannot open a connection to the mailserver 'mail.******.com:1000' -- Operation now in progress No mail servers are available Aborting event
Using sslV3 I get monit: Openssl engine error: error:1408F10B:SSL routines:func(143):reason(267) Cannot open a connection to the mailserver 'mail.****.com:1000' -- Success No mail servers are available Aborting event
Using tlsv1 I get Sendmail error: 503 Bad sequence of commands Aborting event
What could be the problem I tried all combination even with port 25 still could not get it through.
Regards, Shai.
From: address@hiddenSubject: Re: Monit send email not working Date: Tue, 15 May 2012 19:59:46 +0200 To: address@hiddenHello Sukbir,
please can you provide your current configuration which doesn't work? You mentioned the Gmail worked, the problem is with your other mail server now. How your "set mailserver" looks like?
Regards, Martin
On May 15, 2012, at 7:29 PM, sukbir singh wrote: Dear Martin, Is there any solution regarding my other mail server which are still not able to send the alert emails? Thank you.
From: address@hiddenSubject: Re: Monit send email not working Date: Mon, 14 May 2012 09:17:53 +0200 To: address@hiddenYou need to enable TLS with gmail mail servers:
username "MYUSER" password "MYPASSWORD" using tlsv1
Regards, Martin
On May 14, 2012, at 6:40 AM, sukbir singh wrote: Dear Martin, If I use gmail I get this error.
Sendmail: error receiving data from the mailserver 'smtp.gmail.com' -- Resource temporarily unavailable
Then if I use another different mail server I get this error Sendmail error: 504 PLAIN authentication is not permitted by this server.
I think some thing is wrong on my configuration because it could not be all the mail servers are having problem right?
Regards, Shai.
From: address@hiddenSubject: Re: Monit send email not working Date: Sun, 13 May 2012 21:33:03 +0200 To: address@hiddenHi,
as the error message suggest, the problem is with the sender address, which is rejected by your mail server.
To fix it, you can override it this way (replace the " address@hidden" with your address):
--8<-- --8<--
Regards, Martin
On May 13, 2012, at 6:27 PM, sukbir singh wrote: Dear All, I am monitoring a java application which listen on port 8000. This is how I have set the rule
check process commServer8000 with pidfile /var/run/wrapper.commServer8000.pid # check your app pid if failed port 8000 # if you want to check your app that listen on port 9000 then alert
Must I put the 8000 and the HTTP?
If I remove the HTTP it works fine but my email sending is having problem below are some of the error I keep getting
monit validate 'commServer8000' process is not running Sendmail error: 550-Verification failed for <address@hidden> Aborting event monit: Start or stop method not defined -- process commServer8000
monit validate 'commServer8000' process is not running Sendmail error: 535 Incorrect authentication data Aborting event monit: Start or stop method not defined -- process commServer8000
I have set my mail server as this SET MAILSERVER mail.***.com PORT 26 USERNAME "user1" PASSWORD "passwd". What are my mistakes here? Thank you.
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
|