Zitat von
neos
Moin Moin!
[...]
notfalls auch bestimmte Mails per Hand zu entfernen.
mailq -d msg_id
Code:
-d queue_id
Delete one message with the named queue ID from the named mail queue(s) (default: hold,
incoming, active and deferred). If a queue_id of - is specified, the program reads queue
IDs from standard input. For example, to delete all mail from or to user@example.com:
mailq | tail +2 | awk ´BEGIN { RS = "" } \
/ user@example\.com$/ { print $1 } \
´ | tr -d '*!' | postsuper -d -
Specify -d ALL to remove all messages; for example, specify -d ALL deferred to delete
mail in the deferred queue. As a safety measure, the word ALL must be specified in upper
case.
[...]
Im Moment habe ich einen Catchall zu einer adresse eingerichtet, bei der die ankommenden Mails dann automatisch gelöscht werden. Wer im Moment an eine falsche/nicht-existente Adresse schickt hat eben Pech.
wuerde das dann nicht auch automatisch auf alle "re-queued-mails" zutreffen, also postsuper -r ALL ?
Lesezeichen