Automating regular checks that incoming & outgoing mails are still working

2011-08-21 Thread Roger Goh
There's often problem with our postfix mail server (that runs Cyrus / Cyrus-imapd) : I have scripts (using mutt) to send hourly mails out (& from another postfix server, I can send mails to it). I need a way / method such that if those hourly test mails were never sent out or received, I'll need

Re: Automating regular checks that incoming & outgoing mails are still working

2011-08-21 Thread Reindl Harald
Am 21.08.2011 16:03, schrieb Roger Goh: > There's often problem with our postfix mail server (that runs Cyrus / > Cyrus-imapd) : > > I have scripts (using mutt) to send hourly mails out (& from another > postfix server, I > can send mails to it). > > I need a way / method such that if those hourly

Re: Automating regular checks that incoming & outgoing mails are still working

2011-08-21 Thread Roger Goh
There could be various reasons why mails are not going out or coming in & I have test scripts to send between my two postfix servers; so why not monitor those test mails hourly?

Re: Automating regular checks that incoming & outgoing mails are still working

2011-08-21 Thread Jeroen Geilman
On 2011-08-21 16:03, Roger Goh wrote: There's often problem with our postfix mail server (that runs Cyrus / Cyrus-imapd) : Which is ? I have scripts (using mutt) to send hourly mails out (& from another postfix server, I can send mails to it). I need a way / method such that if those hourly

Re: Automating regular checks that incoming & outgoing mails are still working

2011-08-21 Thread Wolfgang Zeikat
In an older episode, on 2011-08-21 16:03, Roger Goh wrote: how do I sent an alert email to notify support if outgoing mail is not working anymore? For such cases, I use a perl script that connects to a different SMTP server to send a mail. See attachment. Hope this helps, wolfgang #!/usr

Re: Automating regular checks that incoming & outgoing mails are still working

2011-08-21 Thread Reindl Harald
Am 21.08.2011 16:14, schrieb Roger Goh: > There could be various reasons why mails are not going out or > coming in search them and fix them! mails never get lost without badly wring configuration somewhere if something is filling your mailqueue with wrong addresses verify them on insert, grep

Re: Automating regular checks that incoming & outgoing mails are still working

2011-08-21 Thread Roger Goh
Thanks for the Perl script Wolfgang > resource were exhausted, too many "MAILER-DAEMON" or tens of thousands > of stuck mails due to invalid email address (as shown by mailq) >> Then your configuration is partially or wholly incorrect. Well, it's often triggered by our mail blasting team : it's

Re: Automating regular checks that incoming & outgoing mails are still working

2011-08-21 Thread Jeroen Geilman
On 2011-08-21 16:22, Roger Goh wrote: Thanks for the Perl script Wolfgang resource were exhausted, too many "MAILER-DAEMON" or tens of thousands of stuck mails due to invalid email address (as shown by mailq) Then your configuration is partially or wholly incorrect. Well, it's often trigge

Re: Automating regular checks that incoming & outgoing mails are still working

2011-08-21 Thread Reindl Harald
Am 21.08.2011 16:22, schrieb Roger Goh: > Thanks for the Perl script Wolfgang > > >> resource were exhausted, too many "MAILER-DAEMON" or tens of thousands >> of stuck mails due to invalid email address (as shown by mailq) > > >>> Then your configuration is partially or wholly incorrect. > We

Re: Automating regular checks that incoming & outgoing mails are still working

2011-08-21 Thread Vincent Lefevre
On 2011-08-21 16:22:03 +0200, Reindl Harald wrote: > and how should anybody imagine what the result of the monitoring is? > a mail that mail is not working *laughing* It makes sense: the postfix monitoring system could send a mail using SMTP directly. If it's a postfix-related problem (not a more

Re: Automating regular checks that incoming & outgoing mails are still working

2011-08-21 Thread Wietse Venema
Vincent Lefevre: > On 2011-08-21 16:22:03 +0200, Reindl Harald wrote: > > and how should anybody imagine what the result of the monitoring is? > > a mail that mail is not working *laughing* > > It makes sense: the postfix monitoring system could send a mail using > SMTP directly. If it's a postfix

Re: Automating regular checks that incoming & outgoing mails are still working

2011-08-22 Thread Roger Goh
We host a portal for the citizens & as add-on value, we offer a free mailbox service. Our marketing chaps blast marketing mails to subscribers of our mail service (which is also owned by us) so we're authorized to 'spam' marketing newsletters to those who signed up with us. However, some subscrib

Re: Automating regular checks that incoming & outgoing mails are still working

2011-08-23 Thread Thomas Harold
On 8/21/2011 10:03 AM, Roger Goh wrote: There's often problem with our postfix mail server (that runs Cyrus / Cyrus-imapd) : I have scripts (using mutt) to send hourly mails out (& from another postfix server, I can send mails to it). I need a way / method such that if those hourly test mails

Re: Automating regular checks that incoming & outgoing mails are still working

2011-08-23 Thread Peter Blair
On Tue, Aug 23, 2011 at 11:59 AM, Thomas Harold wrote: > On 8/21/2011 10:03 AM, Roger Goh wrote: >> >> There's often problem with our postfix mail server (that runs Cyrus >> / Cyrus-imapd) : >> >> I have scripts (using mutt) to send hourly mails out (&  from >> another postfix server, I can send m