Mailqueue

Discussion in 'Installation/Configuration' started by Tripple, Mar 22, 2008.

  1. Tripple

    Tripple New Member

    I like to hear how other ISPConfig users deal with a floating mailqueue.

    This is why:
    Users that forward their mail to another mailbox are floating my mailqueue. Their providers doesn't accept spam mail, my ISPConfig server can't deliver that mail back to the spammer so it stays on my server.
     
  2. lano

    lano Member

    Code:
    mailq | tail -n +2 | awk 'BEGIN { RS = "" } / *@*\.*$/ { print $1 }' | tr -d '*!' | postsuper -d -
    
    Thanks to Falko
    David
     
  3. Tripple

    Tripple New Member

    I tried it, all mails are removed from the queue.

    Will this remove mails from the queue because the mailserver acts as backup when the first mailserver goes down?

    What do you do with it? Put it in a cron job?
     
  4. lano

    lano Member

    I am deleting mailque manualy weekly.
    There are several reasons for that; destination server could be down, so mailque should be there at least for two days (not everyone have a backup mail server), also destination server may use graylisting antispam technique, and I think I coud find some more reasons.
    You should be careful deleting mailque.

    David
     

Share This Page