#3394 Flush selected quarantined messages in queue

1.470
closed-fixed
Jamie Cameron
5
2009-05-12
2009-05-12
No

Wonderful job you are doing, Jamie.

Webmin 1.470, Sendmail 8.13.8 on CentOS 5.

The "Flush Selected Messages" does not work, if the message was quarantined. Need to be able to do that in case of a false positive. I hacked my del_mailqs.cgi file so that flush uses:

$cmd .= " -qQ -qI$file";

The -qQ is needed to tell Sendmail that the file is in the quarantine queue. Otherwise, sendmail just sits there (sort of like MSExchange does normally).

Granted, I am sure that you have a more elegant way to check for status and adjust the command accordingly. Mine was just a quick fix. "Flush Mail Queue" and "Flush Quarantined Queue" work just dandy.

Again, your hard work is truly appreciated.

Discussion

  • Jamie Cameron
    Jamie Cameron
    2009-05-12

    Thanks for finding this flag. I could certainly add that, but is there any way to tell that a message is in the quarantined queue? Do you have a separate directory for that, and if so what is it?

     
  • My installation of sendmail uses the same directory, /var/spool/mqueue. If I use "mailq" by itself, I do not see the quarantined items, but if I use "mailq -qQ", the messages are displayed.

    And your (wonderful) module displays these messages with a status of "quarantined" (I made no changes to that, only the change I reported). It was my hope that the process you use to determine each message's status would provide a key to determine when the selected file is being flushed from the quarantine.

     
  • If I remember correctly, sendmail names quarantined with a different prefix for the Mail ID. For example, here are the file names associated with one quarantined message:

    in /var/spool/mqueue

    dfn4CJFm6p002478
    hfn4CJFm6p002478

    I think that the leading "h" might be the key.

    I figured out a way to validate that by making it impossible to deliver mail.

    a normal message has a different file association, for example:

    dfn4CKwS0r003530
    qfn4CKwS0r003530

    So, if you can key on the first letter, "q" for the normal queue, and "h" for the quarantine queue?

     
  • Jamie Cameron
    Jamie Cameron
    2009-05-12

    Ok, thanks .. I will fix Webmin in the next release to add that -qQ flag when flushing quarantined files.

     
  • Jamie Cameron
    Jamie Cameron
    2009-05-12

    • status: open --> closed-fixed