Open Dmarc + Cron queue (postfix)

Discussion in 'Installation/Configuration' started by stef157, Jul 26, 2014.

  1. stef157

    stef157 Member

    Hi,
    I would like to implement Open Dkim on my server but I don't want to broke postfix..
    Actually there is some filter like RBL, SPF..

    And second thinks, I would like to prevent my server to be a source of spam; for this.. I've an idea but don't know if it's possible and how to do it..

    So, it should be a cron, this One check the queue (postfix) and if queue > X then I disable the account..

    But how to do that?

    Thanks !!!
     
  2. recin

    recin Active Member

    For DKIM is easy, you only have to install this patch: http://blog.schaal-24.de/ispconfig/dkim-patch-1-0/?lang=en

    For the spam thing, I have a script running every hour that mails me if there are more than 20 mails on queue:
    PHP:
    #!/bin/sh
    correo='[email protected]# your mail
    limite=20 # when queue reach this limit it mails you
    cola=$(mailq grep -"^[A-Z0-9]")
    echo 
    $cola' mails on queue' > /tmp/cola.txt
    if [ "$cola-ge "$limite]; then
    mail 
    -"ALERT: $cola mails on queue" $correo < /tmp/cola.txt
    fi
     
    Last edited: Sep 21, 2014

Share This Page