Postsuper /postfix log issues

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Postsuper /postfix log issues

Sriram Nyshadham
Hi All,
We have weird issue with postsuper logs.
I deleted some 20000 emails on one of our MTAs using a script(similar to below) to delete mails destined a particular domain.
mailq | tail +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } { if ($1 !~ /(\*$)|(\!$)/ && ($8 ~ /(@domain.com)/) && $9 == "") print $1 }' | postsuper -d -

When i look at the logs,I don't find a log for each message deleted individually, instead, it shows something like this.
out05 postfix/postsuper[40618]: Deleted: 20000 messages
As per my experiences earlier, it should log individual message's deletion log. I am wondering why it didn't.

Can someone tell us what would have happened? Also, one of our clients lost some mails during that time and I couldn't find the logs saying that those mails
expired also.

Thanks for your help.

Sriram

--------------------------------------------------
Confidentiality And Disclaimer Notice
Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. ……www.netenrich.com
-------------------------------------------------
Reply | Threaded
Open this post in threaded view
|

RE: Postsuper /postfix log issues

Sriram Nyshadham
Hi All,
We have weird issue with postsuper logs.
I deleted some 20000 emails on one of our MTAs using a script(similar to below) to delete mails destined a particular domain.
mailq | tail +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } { if ($1 !~ /(\*$)|(\!$)/ && ($8 ~ /(@domain.com)/) && $9 == "") print $1 }' | postsuper -d -

When i look at the logs,I don't find a log for each message deleted individually, instead, it shows something like this.
out05 postfix/postsuper[40618]: Deleted: 20000 messages
As per my experiences earlier, it should log individual message's deletion log. I am wondering why it didn't.

Can someone tell us what would have happened? Also, one of our clients lost some mails during that time and I couldn't find the logs saying that those mails
expired also.

Thanks for your help.

Sriram

--------------------------------------------------
Confidentiality And Disclaimer Notice
Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. ……www.netenrich.com
-------------------------------------------------