Re: Alert of unusually large queue

2012-10-26 Thread l...@airstreamcomm.net
On 10/16/12 8:15 AM, Wietse Venema wrote: Kaleb Hosie: We host a mail server which runs Postfix and there has been a few times where one of our clients computers becomes infected with malware and the password is compromised. How this has come to my attention is because every once in a while, I

RE: Alert of unusually large queue

2012-10-22 Thread James Day
> -Original Message- > From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > us...@postfix.org] On Behalf Of Jan P. Kessler > Sent: 22 October 2012 15:44 > To: postfix-users@postfix.org > Subject: Re: Alert of unusually large queue > > > >> I

Re: Alert of unusually large queue

2012-10-22 Thread Wietse Venema
Jan P. Kessler: > As mentioned by other posters you should set up a real monitoring > system, that periodically checks your queue or generates an alert (e.g. > snmp trap) on the server which does not rely on the mechanism that you > are trying to monitor (here smtp). To monitor an SMTP server, try

Re: Alert of unusually large queue

2012-10-22 Thread Jan P. Kessler
>> I'm not sure, if sending an e-mail about a "full mailqueue"-condition is >> the best way to go ;-) > depends > > if you have no bulk-mail on your server it will tak enot too long > to find a good value to adjust the "50" and as example if i have > 500 queued messages i like to look if there is

Re: Alert of unusually large queue

2012-10-20 Thread Robert Schetterer
Am 20.10.2012 22:08, schrieb Jan P. Kessler: > Hey guys, > >> if [ `$mailq_count` -gt 50 ]; then echo "Mail count on Server is" >> `$mailq_count`|/usr/sbin/sendmail -f r...@example.com repo...@example.com ; >> fi > > I'm not sure, if sending an e-mail about a "full mailqueue"-condition is > the

Re: Alert of unusually large queue

2012-10-20 Thread CSS
On Oct 20, 2012, at 4:08 PM, Jan P. Kessler wrote: > Hey guys, > >> if [ `$mailq_count` -gt 50 ]; then echo "Mail count on Server is" >> `$mailq_count`|/usr/sbin/sendmail -f r...@example.com repo...@example.com ; >> fi > > I'm not sure, if sending an e-mail about a "full mailqueue"-condition i

Re: Alert of unusually large queue

2012-10-20 Thread Reindl Harald
Am 20.10.2012 22:08, schrieb Jan P. Kessler: > Hey guys, > >> if [ `$mailq_count` -gt 50 ]; then echo "Mail count on Server is" >> `$mailq_count`|/usr/sbin/sendmail -f r...@example.com repo...@example.com ; >> fi > > I'm not sure, if sending an e-mail about a "full mailqueue"-condition is > t

Re: Alert of unusually large queue

2012-10-20 Thread Jan P. Kessler
Hey guys, > if [ `$mailq_count` -gt 50 ]; then echo "Mail count on Server is" > `$mailq_count`|/usr/sbin/sendmail -f r...@example.com repo...@example.com ; fi I'm not sure, if sending an e-mail about a "full mailqueue"-condition is the best way to go ;-) cheers, Jan

Re: Alert of unusually large queue

2012-10-20 Thread Reindl Harald
Am 16.10.2012 15:20, schrieb James Day: > I use the following to do just that. I'm sure there is a better way but I > fudged this together myself > > Script 1: > > #!/bin/bash > > /usr/bin/mailq | /usr/bin/tail -n1 | /usr/bin/gawk '{print $5}' > > /etc/postfix/mailq_count > > Script 2: > >

Re: Alert of unusually large queue

2012-10-16 Thread /dev/rob0
On Tue, Oct 16, 2012 at 09:15:54AM -0400, Wietse Venema wrote: > Kaleb Hosie: > > We host a mail server which runs Postfix and there has been a > > few times where one of our clients computers becomes infected > > with malware and the password is compromised. > > > > How this has come to my attenti

RE: Alert of unusually large queue

2012-10-16 Thread James Day
>From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] >On Behalf Of Kaleb Hosie >Sent: 16 October 2012 13:50 >To: postfix-users@postfix.org >Subject: Alert of unusually large queue > >We host a mail server which runs Postfix and there has been a few times where >one of o

Re: Alert of unusually large queue

2012-10-16 Thread Wietse Venema
Kaleb Hosie: > We host a mail server which runs Postfix and there has been a few > times where one of our clients computers becomes infected with > malware and the password is compromised. > > How this has come to my attention is because every once in a while, > I will login to the mail server and