7131125, 12331 PM. Managing-The-Postx-Queues - Zimbra : Tech Center
. @zimbra
» cx
+ iis
. @ Zimbra’
carbine
Zimbra’
SYNACOR PROOL
Managing-The-Postfix-Queues
1. Zit Tesh Cnt
2 Ceniist
3. Manaping-The-Posin-Queuss
Contents
12Stop Abd Stating Po
“To Se The Pastis Qussss
11 LOshans Pont Pastis queue domain and age diction
[CS To Flash Posts Queue
Te Requeue Messaees in Poss
17 BulMessnges On Hold
+ Le Coen Ne
1 Tee bace Set Moseeclin us
LaeTa Dele ALL Mesages From Queas
* LAs} To Dalate ALL Messages From The Dafered Queue
1 [eap To Delete ALL Messiges From The Hold Quese
+ La Delee Many Messages From Ques
ke Pom CL
+ LR67 Scot To Delete Hom Quoue Dy Ema Adds
+ [R623 Scot To Delete fiom Qusue By Vatious Vatable Tages
Managing The Postfix Queues
-ntps:itwk zmbra.comiwki Managing-The-Postx-dueves
187191125, 12331 PM Managing-The-Postx-Queues - Zimbra : Tech Center
KUZIBET ——Lastypited 2016-0622 Lantupdato by Jorg des Cror
Srv crites documentation and is poet fr ting by Znbe
Kniss Las updated 201646022
sis iscrt sa
This aril e # Workin Progress and may be uniished or missing sections.
Postfix, Amavis, Clamav Spool Directory Paths And Names
Stop And Starting Postfix And Mta
To ony stop and stat post [a the zombra. user]
To stop and start postfix, amavis, and ela as he imbra se]
To See The Postfix Queues
As rimbra using sudo = show a summary of queue count -—iexee!zmgstat
Letarsraio7 8 eso bone met
As zimba- /opzimbrepostibsbinfpostqueue-p
[zinbragratta «I$ Jopt/zintoa/gost¢i/sbin/gostquve
The messoee iz subsectes_ again to soil
‘brett rewriting in station, “Toh
The atest resting context (local or
Fret) Is the sone a5 when the message was
2 Te wessage As subjected to the sore con
Tereliticer ‘etetnge (28) any) sr ree for
arming: Postébe queue 10s are reused. Tee 1s 2
ey tho ot ht estar) Fone
To Put Messages On Hold
Mebere's
Managing-The-Postfx-Que
Zimbra Tech Center
character nox to queue ID ,EC7SSDODOO® it means tat his message is ia the active queue eg. atmpts to deliver the messages ate made
here's character next to queue ID , ECTS3DOD00! , it meas tha this message is put “om hol
To puta message on bot:
‘To puton bold messages from aser@domain com
# Joptasnoraipareta/entn/poraeae -p | ane “SEED (RS 2) C46 (87 =
To putell messages om bold
tt fontasaora/gastafenin/posuper “> AL
Fasteipr: Plated on tala: 6 essagee
To Delete Messages From Queue
‘rps sik! zimbra.comwikiManaging-The-Postx-Queues
“userionsin. cow" ) print $1 )* | end “16 | posteupen n=7131125, 12331 PM. Managing-The-Postfx-Que
Cautionary Note
‘Warning, deleting messages from the quene
your deletion was appropriate. Peat ryt
You give you he Information to Iter juslfy your actions on why You delete msg.
Relevant Sections OF Postsuper Man Page
ty defo, goctsoer) performs he apraons ccs wlth the 5 dp
Scive and sevens sirectontes with asl filer ane te bounce, ever, tsac0 and tigen
Girectordes uith log Hse
+4 queue Ld Delete one wessage with the naned queue TD fron te named mall queues)
Gderiit. Fats, Stoning, active and defers)
if qnue ie of 25 tpecifieg, tye progran teats queue 105 fron standard Anat,
Foe" sanela, to delete sit mil with execiy one recipient usesBexarplecon
en a AC EEN C=
“)
Sgecity Tl ML torent 01 esgen fo ean, apelfy “6 AL dere
13" evsosteds gee nanager deletes the message that postsupen(2) ts ached to
stfu ica Posts rahe with te nessge (i evry or TCAs
2) "New nels arrvesy ane ine ew wessage 1s given the sate quese TO 25 the wessage
shot Doststoer(a) 12 supposed to deieve.” fe pratabity for reusing teletee
(uote 12 is abast Lin Zonas (Aho panier or fuvfereréwlcrosoeandwalues that
the Systen clove can elstingulsh within 2 secon)
postin) deletes the new nsasge, Instead of the old message tht J¢ shed
ste.
Fy queue td Put mast Yon tole” fo tat no atcepe Se nade to deliver 42. tove one
‘Seceage itn the saneducue'To tron the aod wail quee(s) (Gero: Inconing,
ethve and deterred) tothe hold eee
Srecsty “rath” Go hla sit nesses! Yor ccnole, epecty "on aul deeored” to hola
SiT'na in the oefervea cueve. as 2 savety measure, the word ALL wust be specified
{he norinal_eatue isfetine or boghe queue ifetine setting. Tt secons sabsect
qurtgt etease ma that mas put “on hole". nove one message wth the naned queue
2am she nana nat quests) Yeofsuts hols) 40 te coferred usu
toees"spctty Sporeroper ct" f0‘eleate ml “hat uot kept on Role for a rtgniieant
{FScUon of Saonino queue iifeine oF Soacnce queue feline, om longer
p Purge old temporary files tat are left over after system oF settuare erases
‘To Delete Single Message From Queue
‘ope/aintraspostetnsbie/postsuer -6 {ASO Fron postueve -P]
‘To Delete ALL Messages From Queue
ope /zinteafgost ei sbir/postuper ~4 ALL
Another way to do this:
ratte | vk “(ortnt $2)" | postsizer <6 =
‘To Delete ALL Messages From The Deferred Queue
Jape zintrajport¢ixsbin/portsuper -@ ALL deferred
‘To Delete ALL Messages From The Hold Queue
{opt zinbra/port¢ixsbie/portzuper ~@ ALL hole
‘To Delete Many Messages From Queue
Todelete a large number of files one would we:
-ntps:twk zmbra.com/wiki Managing-The-Postx-Queves
Zimbra Tech Center
1 havea negative consequence of your users. You might need to account for the acto
we the postqueue p information from the various messages peor to deleting ther. This wil at le
Vor confirm,7131125, 12:31 PM.
Jape /sintra/port iy sbie/portnper =
Zimbra Tech Center
Tae filename, fename-wih-queue-iésxt example, woul ave
Delete From Queue By Email Address
[Note Some ofthe shel scripting below might fll on messages with particular status ("om delivery” or Yom hold") because a" or @
the message.
"0? i appended tothe 1D of
From Lt
‘Change the [[email protected] ] variable below fis.
“To fist see what would be deleted. As root,
{opt/sintrajpost¢in/sbie/gostquee P| egrep -v °* *\l-Gutue 1D. \
aC GEGIN CS = 2" } [a (87 m0 "enailelonainscon) point $3) T ted “#2
you get er about eprep, you might nee fo use his sya
{opt/ninbra/postéix/sbie/postquue -p | foinvegrep -v *\(U-Queue 0." \
Pisa BEGIN (ws = 2" } [ie (47 m0 nailBocdess. con") pean $3) ° [te 4°"
‘To now delete just include the postsuper at end
{opt/ainbra/gostetn/stin/gostaueue -p | ene ov °* *\([-tueue 10+"
ae etn ns ny Ee gr cPoemasiptonain cont) pane $3) °\
Lear | faptratmbnspostele/sbnvpostsuper a
(Oder example of what Thad the all +2 as held specie
“ofr see what would be deleted
nase | tat 02 [grep ov °* 9¢5 | ame “SEOTU CRS =) CAF (58 m= “ens. con? A $9 = **) pine $1" | Ae oe HT
‘Tonow delet, just include he postuper a en:
ratte | S02 | grep ow 99 0(5 [ane SEGIN CRS = MY CAF ($8 a Cenaslgairece. con" a $8
) prime $2.) © [te oe 1 | postsuper =
Script To Delete From Queue By Email Address
Now
imbea Script and not QA'd or tested. Path adjusted though for ptzimbra/postfiisbial*
From pd use ry enarilesosta-oueuedelete-en
Save on filesystem caling it something ike -delet-queuesy-emailah Give it execute permission, Run a rot Example wae would he: /dlee-queve-by-email sh
‘wer [email protected]
yasePongpeet 0
4 pte ~ deletes nessape containing specifies adores fon
-ntps:itwk zmbra.comiwki Managing-The-Postx-dueves 587131125, 12331 PM. Managing-The-Postfx-Que
ny $LIST» "/opt/sintra/port(x/sbin/gortquue =p";
ty Sosraufen = *yopereinbeapostesa/ sbi postaunen",
Zimbra
ry Sona agin = “5
fy Seuid = $35
6 (ema te 2)
he "Urge: phe conail_sedrass\n";
> ease ¢
serall_er = t0(0)5
>
Feats at rst to delete qtue #516.
; ,
vente, “$259 |") I]
le "con't get pipe to SUISTE: $I\0%;
ry Sengry = QUEUES; # ship single header ine
gee fr fest SF eeu ents Print on
SE muteipie ines
vote (Sentry =
Erosecqueys
31 said)
ie "ho messages with the adéress cfemat_ar> *
Script To Delete From Queue By Various Variable Targets
‘Non Zimbra Seript and not QA'd or tested. Path adjusted though for optzimbrajpostficsbial*
imcub wordpress con/200610 2b delete Grom. pouting!
Pes srt ale “letetrom-mig’
From
SREGEX = shift |e “no enal-asress ven (regeap-syle, eg. bl. *\gyaoo.con) "5
ate = 90
for (eer)
BF Renney ¢
Sasa Sa
;
Jetson) (
iets) S
decline tp
Sone
3
;
open(ostsuree,*|/opt/sinbea/psttsn/sbin/postauger
~*) I he "could open pastuper” =
foreach (ways 10) {
prom rostsbrek ns
i
Chorecrsrsurcay;
Save the above sript to ile sy “delete-quee pI” in your home directory, nd make it exetable
‘Usage - Rum as ro
+ Delete all queued messages fom or tothe domain “iamsparmer.com!
/aece-queve Laspannes con
+ Deleweall queued messages to specific aldess“hogususermydomin com”
-ntps:itwk zmbra.comiwki Managing-The-Postx-dueves
Tech Center7191125, 12331 PM Managing-The-Postfx-Queuss - Zimbra
Héaete-quoue bagususergaydrsin.con
+ Delete all quoued messages hat bogin with he word “bush inthe e-mail addres:
;deeve-quoue bust \putateverdnain. con
+ Delete al queued messages that contin the word “bi” inthe emai adress
Veriied Against: Zia Collaboration 86, 85,80
Atle 1D: psi nbs comfnden title= Mangeing-Ths-Posi-Ousus
Try Zimbra
“Try Zima Collaboration wit a 60-day foe
Want to get involved?
‘You can contbut inthe Community, Wiki, Code oF development of Zimlets
Other help Resources
Looking for a Video?
Vist our YouTube chanel et the latest webinars, technology news, produc overviews, and so ch mare,
Tech Center
Date Created: 04/162015
Date Modified: 2016-06-22
WIKVKE reviewed by SMEI SME2 Copyeditor Last eit by Jorge dela Cruz
Retrieved ftom "hpi mb comfindes phpitle-Managing-Ths-Postix-Qusuessoldii=62327"
Caepais:
tps hkl zim, comivikiManaging-The-Postx Queues
787131125, 12331 PM. Managing-The-Postfx-Que
+ NesiSME
2 Author Alzody
Jo fo navigation,
Zimbra Tech Center
Products
Zinta Cala
Zonbe BRIS
Zaobaa Claud
‘Compare Products
Pron
hats New,
Downloade
Support
What is Zimbes?
Demos and Video
case Sudics
Community
Fonums
Blog
Submizaticket
Copyright ©2005 - 2025 Zimba, Ino. Al ight reserved,
Legal Infomation | Privaey Policy | Da Not Sell My Pe
-ntps:itwk zmbra.comiwki Managing-The-Postx-dueves