How to monitor smtp/postfix usage

Discussion in 'Server Operation' started by Airbag888, Aug 14, 2017.

  1. Airbag888

    Airbag888 New Member

    Hi,

    Is there a way to monitor smtp / postfix usage such that if a spammer/bot gets access to a maibox credential you are:

    1. Aware as soon as there's a surge in smtp usage compared to average
    2. Can take action (like disabling the account)
    Ideally if it can email a daily report and an immediate report when use is above average.
    I'm using ISBConfig 3 on Ubuntu
    Thanks
     
  2. Airbag888

    Airbag888 New Member

    Anyone please?
     
  3. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    You can monitor your mail-queue with a small script. I would not let a script disable an account. But if you have to many mails in your queue (the value is up to you), you can let the script send you a mail so you can check the server yourself.
     
    Airbag888 likes this.
  4. Airbag888

    Airbag888 New Member

    Thank you for your reply florian.. Could you point me in the right direction to learn how to do such a script? I'd likely configure it to use an external smtp server (gmail?) since ours would likely be flooded at that point, maybe even blacklisted
     

Share This Page