Quantcast

How do I move messages from a sender to the HOLD queue?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How do I move messages from a sender to the HOLD queue?

Sean Son
Hello all

We have over a thousand messages from a certain user that are stuck in our mail queue. Is there a way to move those messages to the HOLD queue for now? I want to move all messages from that specific sender, to the HOLD queue.


All help is greatly appreciated!


Thanks

S
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: How do I move messages from a sender to the HOLD queue?

Fazzina, Angelo

Read man page on

Postsuper.

 

 

-Angelo Fazzina

Operating Systems Programmer / Analyst

University of Connecticut,  UITS, SSG, Server Systems

860-486-9075

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Sean Son
Sent: Monday, March 13, 2017 1:47 PM
To: [hidden email]
Subject: How do I move messages from a sender to the HOLD queue?

 

Hello all

We have over a thousand messages from a certain user that are stuck in our mail queue. Is there a way to move those messages to the HOLD queue for now? I want to move all messages from that specific sender, to the HOLD queue.

All help is greatly appreciated!

Thanks

S

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: How do I move messages from a sender to the HOLD queue?

Fazzina, Angelo
In reply to this post by Sean Son

Hi again,

You may need to run

Postqueue –p

First go get the users emails.

 

Grep out the ones you need.

-ALF

 

-Angelo Fazzina

Operating Systems Programmer / Analyst

University of Connecticut,  UITS, SSG, Server Systems

860-486-9075

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Sean Son
Sent: Monday, March 13, 2017 1:47 PM
To: [hidden email]
Subject: How do I move messages from a sender to the HOLD queue?

 

Hello all

We have over a thousand messages from a certain user that are stuck in our mail queue. Is there a way to move those messages to the HOLD queue for now? I want to move all messages from that specific sender, to the HOLD queue.

All help is greatly appreciated!

Thanks

S

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I move messages from a sender to the HOLD queue?

Sean Son
In reply to this post by Sean Son


On Mon, Mar 13, 2017 at 1:57 PM, Fazzina, Angelo <[hidden email]> wrote:

Example

 

 

[root@mta1 ~]# postqueue -p|grep "Mar 10"

9A9AD2B23      1925 Fri Mar 10 06:00:03  owner-CT_FOOD_SYSTEM_LEADER-L*cam**AMENDORGANICS*-[hidden email]

9D3A41B01       958 Fri Mar 10 23:57:26  MAILER-DAEMON

958F52E34       958 Fri Mar 10 23:56:24  MAILER-DAEMON

9FDD21B2E       958 Fri Mar 10 23:57:26  MAILER-DAEMON

955942E32       958 Fri Mar 10 23:56:25  MAILER-DAEMON

9EAE52C36     13626 Fri Mar 10 07:11:09  MAILER-DAEMON

 

postqueue -p|grep "Mar 10" |awk '{print $1}' |while read id; do echo postsuper -h $id;done

 

when ready remove the “echo” and it will run.

 

 

 

-Angelo Fazzina

Operating Systems Programmer / Analyst

University of Connecticut,  UITS, SSG, Server Systems

<a href="tel:(860)%20486-9075" value="+18604869075" target="_blank">860-486-9075

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Sean Son
Sent: Monday, March 13, 2017 1:47 PM
To: [hidden email]
Subject: How do I move messages from a sender to the HOLD queue?

 

Hello all

We have over a thousand messages from a certain user that are stuck in our mail queue. Is there a way to move those messages to the HOLD queue for now? I want to move all messages from that specific sender, to the HOLD queue.

All help is greatly appreciated!

Thanks

S


Thanks! So just remove the echo command and the script will run?


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I move messages from a sender to the HOLD queue?

Sean Son


On Mon, Mar 13, 2017 at 2:02 PM, Fazzina, Angelo <[hidden email]> wrote:

Yes,

But obviously you have to change the grep to grab your emails and not everything from March 10th.

Also you may want to test it on one email to learn how it works, and not blindly do what I suggest. Up to you.

After you do one, go find it in the HOLD queue.

-ALF

 

-Angelo Fazzina

Operating Systems Programmer / Analyst

University of Connecticut,  UITS, SSG, Server Systems

<a href="tel:(860)%20486-9075" value="+18604869075" target="_blank">860-486-9075

 

From: Sean Son [mailto:[hidden email]]
Sent: Monday, March 13, 2017 2:00 PM
To: Fazzina, Angelo <[hidden email]>; [hidden email]
Subject: Re: How do I move messages from a sender to the HOLD queue?

 

 

 

On Mon, Mar 13, 2017 at 1:57 PM, Fazzina, Angelo <[hidden email]> wrote:

Example

 

 

[root@mta1 ~]# postqueue -p|grep "Mar 10"

9A9AD2B23      1925 Fri Mar 10 06:00:03  owner-CT_FOOD_SYSTEM_LEADER-L*cam**AMENDORGANICS*-[hidden email]

9D3A41B01       958 Fri Mar 10 23:57:26  MAILER-DAEMON

958F52E34       958 Fri Mar 10 23:56:24  MAILER-DAEMON

9FDD21B2E       958 Fri Mar 10 23:57:26  MAILER-DAEMON

955942E32       958 Fri Mar 10 23:56:25  MAILER-DAEMON

9EAE52C36     13626 Fri Mar 10 07:11:09  MAILER-DAEMON

 

postqueue -p|grep "Mar 10" |awk '{print $1}' |while read id; do echo postsuper -h $id;done

 

when ready remove the “echo” and it will run.

 

 

 

-Angelo Fazzina

Operating Systems Programmer / Analyst

University of Connecticut,  UITS, SSG, Server Systems

<a href="tel:(860)%20486-9075" target="_blank">860-486-9075

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Sean Son
Sent: Monday, March 13, 2017 1:47 PM
To: [hidden email]
Subject: How do I move messages from a sender to the HOLD queue?

 

Hello all

We have over a thousand messages from a certain user that are stuck in our mail queue. Is there a way to move those messages to the HOLD queue for now? I want to move all messages from that specific sender, to the HOLD queue.

All help is greatly appreciated!

Thanks

S

 

Thanks! So just remove the echo command and the script will run?

Sure sounds good! thanks man, ill contact you if I run into any issues
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I move messages from a sender to the HOLD queue?

Ralf Hildebrandt-2
In reply to this post by Sean Son
* Sean Son <[hidden email]>:
> Hello all
>
> We have over a thousand messages from a certain user that are stuck in our
> mail queue. Is there a way to move those messages to the HOLD queue for
> now? I want to move all messages from that specific sender, to the HOLD
> queue.

There's a script for that
https://www.arschkrebs.de/postfix/scripts/delete-from-mailq

In it's current form it DELETES mails from the queue, simply
replace:

postsuper -d -

with:

postsuper -h -
Loading...