exiqgrep -i -f[电子邮件保护]| xargs exim -Mrm

exiqgrep -i -f[电子邮件保护]| xargs exim -Mrm
2012-11-15 09:24:03 1TZ0MN-0000Tm-2W <= [email protected] U=USER P=local S=439 T="http://USER-DOMAIN.net" for [email protected]
2012-11-15 09:24:09 1TZ0MS-0000UH-Jq <= [email protected] U=USER P=local S=439 T="http://USER-DOMAIN.net" for [email protected]
2012-11-15 09:24:13 1TZ0MX-0000Us-Me <= [email protected] U=USER P=local S=439 T="http://USER-DOMAIN.net" for [email protected]
2012-11-15 09:24:20 1TZ0Md-0000VI-Rh <= [email protected] U=USER P=local S=439 T="http://USER-DOMAIN.net" for [email protected]
2012-11-15 09:24:24 1TZ0Mi-0000Vf-KQ <= [email protected] U=USER P=local S=439 T="http://USER-DOMAIN.net" for [email protected]
2012-11-15 09:24:30 1TZ0Mn-0000W6-TR <= [email protected] U=USER P=local S=439 T="http://USER-DOMAIN.net" for [email protected]
2012-11-15 09:24:36 1TZ0Mt-0000WY-SR <= [email protected] U=USER P=local S=439 T="http://USER-DOMAIN.net" for [email protected]
2012-11-15 09:24:41 1TZ0Mz-0000XI-1S <= [email protected] U=USER P=local S=439 T="http://USER-DOMAIN.net" for [email protected]
2012-11-15 09:24:45 1TZ0N3-0000Xi-Mz <= [email protected] U=USER P=local S=439 T="http://USER-DOMAIN.net" for [email protected]
2012-11-15 09:24:51 1TZ0N9-0000YI-FX <= [email protected] U=USER P=local S=439 T="http://USER-DOMAIN.net" for [email protected]

有没有办法进入并删除所有电子邮件?他们那里有数千封电子邮件。

我试过:

exiqgrep -ir [email protected] | xargs exim -Mrm
exim: no message ids given after -Mrm option

答案1

对我来说下面的工作很完美:

要删除 Exim 队列中任何发件人的所有电子邮件,请使用:

exiqgrep -i -f[电子邮件保护]| xargs exim -Mrm

要删除 Exim 队列中任何收件人的所有电子邮件,请使用:

exiqgrep -i -r[电子邮件保护]| xargs exim -Mrm

以下是 exiqgrep 和 exim 命令帮助:

exiqgrep -h Exim 消息队列显示实用程序。-h 此帮助消息。选择标准:

-f <regexp> Match sender address sender (field is "< >" wrapped)
-r <regexp> Match recipient address
-s <regexp> Match against the size field from long output
-y <seconds>    Message younger than
-o <seconds>    Message older than
-z      Frozen messages only (exclude non-frozen)
-x      Non-frozen messages only (exclude frozen)

显示选项:-c 显示匹配数 -l 长格式 [默认] -i 仅消息 ID -b 简要格式 -R 反向顺序

EXIM 命令:

 exim -bp - shows messages in queue
exim -bpc - shows the no.of messages in queue
exim -bP - shows the current configurations of exim
exim -bV - shows the version and configuration file of exim
exiwhat - Finding out what Exim processes are doing
exim -qf - Force another queue run
exim -qff - Force another queue run and attempt to flush frozen messages
exim -Mvl - messageID View Log for message
exim -Mvb - messageID View Body for message
exim -Mvh - messageID View Header for message
exim -Mrm - messageID Remove message (no errors sent)
exim -Mg - messageID Give up and fail message, message bounces to sender
exiqgrep -zi
-z : frozen mails only
-i : display message IDs only
exim -M emailID - Force delivery of one message

答案2

我发现的所有使用示例exiqgrep都将选项分开,而从未组合在一起。

尝试exiqgrep -i -r [email protected] | xargs exim -Mrm

答案3

尝试这个命令

exiqgrep -z -i | xargs exim -Mrm

它可以帮助我从队列中删除所有冻结的邮件。

答案4

如果你想从队列中删除所有具有发件人邮件地址的邮件[电子邮件保护] 尝试:

# exiqgrep -i -f [email protected] | xargs exim -Mg

这样您就不必逐一手动输入按摩 ID...它对我有用..

相关内容