Mail module queue delete messages

NethServer Version: 8
Module: Mail
Hi folks,
a question…

I came with my older systems to the point, where single mailbox ware hacked and spamed through user/pass.

300000 mails sent over, but we have a postfilter for reaction.

How can I send a command like " postqueue -p | tail -n +2 | awk 'BEGIN { RS = "" } /username@example\.com/ { print $1 }' | tr -d '*!' | postsuper -d -" into the container?

In one line…

runagent -m mail1 podman exec -ti postfix "postqueue..."

…or enter the postfix container and run the commands there:

runagent -m mail1 podman exec -ti postfix sh

Run the command:

/etc/postfix # postqueue...
1 Like

Markus… Thanks!
This is the answer for 5*.

Regards, T

1 Like

Markus, where are you from?

I’m from Vienna, Austria, if you click on the profile picture, you’ll see the info: