openapi.yaml 159 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071
  1. openapi: 3.0.0
  2. info:
  3. description: >-
  4. mailcow is complete e-mailing solution with advanced antispam, antivirus,
  5. nice UI and API.
  6. In order to use this API you have to create a API key and add your IP
  7. address to the whitelist of allowed IPs this can be done by logging into the
  8. Mailcow UI using your admin account, then go to Configuration > Access >
  9. Edit administrator details > API. There you will find a collapsed API menu.
  10. There are two types of API keys
  11. - The read only key can only be used for all get endpoints
  12. - The read write key can be used for all endpoints
  13. title: mailcow API
  14. version: '1.0.0'
  15. servers:
  16. - url: /
  17. components:
  18. securitySchemes:
  19. ApiKeyAuth:
  20. type: apiKey
  21. in: header
  22. name: X-API-Key
  23. responses:
  24. Unauthorized:
  25. description: Unauthorized
  26. content:
  27. application/json:
  28. schema:
  29. type: object
  30. properties:
  31. type:
  32. type: string
  33. example: error
  34. msg:
  35. type: string
  36. example: authentication failed
  37. required:
  38. - type
  39. - msg
  40. security:
  41. - ApiKeyAuth: []
  42. paths:
  43. /api/v1/add/alias:
  44. post:
  45. responses:
  46. '401':
  47. $ref: '#/components/responses/Unauthorized'
  48. '200':
  49. content:
  50. application/json:
  51. examples:
  52. response:
  53. value:
  54. - log:
  55. - mailbox
  56. - add
  57. - alias
  58. - active: '1'
  59. address: alias@domain.tld
  60. goto: destination@domain.tld
  61. - null
  62. msg:
  63. - alias_added
  64. - alias@domain.tld
  65. type: success
  66. schema:
  67. properties:
  68. log:
  69. description: contains request object
  70. items: {}
  71. type: array
  72. msg:
  73. items: {}
  74. type: array
  75. type:
  76. enum:
  77. - success
  78. - danger
  79. - error
  80. type: string
  81. type: object
  82. description: OK
  83. headers: {}
  84. tags:
  85. - Aliases
  86. description: >-
  87. You may create your own mailbox alias using this action. It takes a JSON
  88. object containing a domain informations.
  89. Only one `goto*` option can be used, for ex. if you want learn as spam,
  90. then send just `goto_spam = 1` in request body.
  91. operationId: Create alias
  92. requestBody:
  93. content:
  94. application/json:
  95. schema:
  96. example:
  97. active: '1'
  98. address: alias@domain.tld
  99. goto: destination@domain.tld
  100. properties:
  101. active:
  102. description: is alias active or not
  103. type: boolean
  104. address:
  105. description: 'alias address, for catchall use "@domain.tld"'
  106. type: string
  107. goto:
  108. description: 'destination address, comma separated'
  109. type: string
  110. goto_ham:
  111. description: learn as ham
  112. type: boolean
  113. goto_null:
  114. description: silently ignore
  115. type: boolean
  116. goto_spam:
  117. description: learn as spam
  118. type: boolean
  119. type: object
  120. summary: Create alias
  121. /api/v1/add/app-passwd:
  122. post:
  123. responses:
  124. '401':
  125. $ref: '#/components/responses/Unauthorized'
  126. '200':
  127. content:
  128. application/json:
  129. examples:
  130. response:
  131. value:
  132. - log:
  133. - app_passwd
  134. - add
  135. - active: '1'
  136. app_name: emclient
  137. app_passwd: keyleudecticidechothistishownsan31
  138. app_passwd2: keyleudecticidechothistishownsan31
  139. username: hello@mailcow.email
  140. msg: app_passwd_added
  141. type: success
  142. schema:
  143. properties:
  144. log:
  145. description: contains request object
  146. items: {}
  147. type: array
  148. msg:
  149. items: {}
  150. type: array
  151. type:
  152. enum:
  153. - success
  154. - danger
  155. - error
  156. type: string
  157. type: object
  158. description: OK
  159. headers: {}
  160. tags:
  161. - App Passwords
  162. description: >-
  163. Using this endpoint you can create a new app password for a specific
  164. mailbox.
  165. operationId: Create App Password
  166. requestBody:
  167. content:
  168. application/json:
  169. schema:
  170. example:
  171. active: '1'
  172. username: info@domain.tld
  173. app_name: wordpress
  174. app_passwd: keyleudecticidechothistishownsan31
  175. app_passwd2: keyleudecticidechothistishownsan31
  176. properties:
  177. active:
  178. description: is alias active or not
  179. type: boolean
  180. username:
  181. description: mailbox for which the app password should be created
  182. type: string
  183. app_name:
  184. description: name of your app password
  185. type: string
  186. app_passwd:
  187. description: your app password
  188. type: string
  189. app_passwd2:
  190. description: your app password
  191. type: string
  192. type: object
  193. summary: Create App Password
  194. /api/v1/add/bcc:
  195. post:
  196. responses:
  197. '401':
  198. $ref: '#/components/responses/Unauthorized'
  199. '200':
  200. content:
  201. application/json:
  202. examples:
  203. response:
  204. value:
  205. - log:
  206. - bcc
  207. - add
  208. - active: '1'
  209. bcc_dest: bcc@awesomecow.tld
  210. local_dest: mailcow.tld
  211. type: sender
  212. - null
  213. msg: bcc_saved
  214. type: success
  215. schema:
  216. properties:
  217. log:
  218. description: contains request object
  219. items: {}
  220. type: array
  221. msg:
  222. items: {}
  223. type: array
  224. type:
  225. enum:
  226. - success
  227. - danger
  228. - error
  229. type: string
  230. type: object
  231. description: OK
  232. headers: {}
  233. tags:
  234. - Address Rewriting
  235. description: >-
  236. Using this endpoint you can create a BCC map to forward all mails via a
  237. bcc for a given domain.
  238. operationId: Create BCC Map
  239. requestBody:
  240. content:
  241. application/json:
  242. schema:
  243. example:
  244. active: '1'
  245. bcc_dest: bcc@awesomecow.tld
  246. local_dest: mailcow.tld
  247. type: sender
  248. properties:
  249. active:
  250. description: 1 for a active user account 0 for a disabled user account
  251. type: number
  252. bcc_dest:
  253. description: the email address where all mails should be send to
  254. type: string
  255. local_dest:
  256. description: the domain which emails should be forwarded
  257. type: string
  258. type:
  259. description: the type of bcc map can be `sender` or `recipient`
  260. type: string
  261. type: object
  262. summary: Create BCC Map
  263. /api/v1/add/dkim:
  264. post:
  265. responses:
  266. '401':
  267. $ref: '#/components/responses/Unauthorized'
  268. '200':
  269. content:
  270. application/json:
  271. examples:
  272. response:
  273. value:
  274. - log:
  275. - dkim
  276. - add
  277. - dkim_selector: dkim
  278. domains: hanspeterlol.de
  279. key_size: '2048'
  280. msg:
  281. - dkim_added
  282. - hanspeterlol.de
  283. type: success
  284. schema:
  285. properties:
  286. log:
  287. description: contains request object
  288. items: {}
  289. type: array
  290. msg:
  291. items: {}
  292. type: array
  293. type:
  294. enum:
  295. - success
  296. - danger
  297. - error
  298. type: string
  299. type: object
  300. description: OK
  301. headers: {}
  302. tags:
  303. - DKIM
  304. description: Using this endpoint you can generate new DKIM keys.
  305. operationId: Generate DKIM Key
  306. requestBody:
  307. content:
  308. application/json:
  309. schema:
  310. example:
  311. dkim_selector: dkim
  312. domains: mailcow.tld
  313. key_size: '2048'
  314. properties:
  315. dkim_selector:
  316. description: the DKIM selector default dkim
  317. type: string
  318. domains:
  319. description: a list of domains for which a dkim key should be generated
  320. type: string
  321. key_size:
  322. description: the key size (1024 or 2048)
  323. type: number
  324. type: object
  325. summary: Generate DKIM Key
  326. /api/v1/add/dkim_duplicate:
  327. post:
  328. responses:
  329. '401':
  330. $ref: '#/components/responses/Unauthorized'
  331. '200':
  332. content:
  333. application/json:
  334. examples:
  335. response:
  336. value:
  337. - log:
  338. - dkim
  339. - duplicate
  340. - from_domain: mailcow.tld
  341. to_domain: awesomecow.tld
  342. msg:
  343. - dkim_duplicated
  344. - mailcow.tld
  345. - awesomecow.tld
  346. type: success
  347. schema:
  348. properties:
  349. log:
  350. description: contains request object
  351. items: {}
  352. type: array
  353. msg:
  354. items: {}
  355. type: array
  356. type:
  357. enum:
  358. - success
  359. - danger
  360. - error
  361. type: string
  362. type: object
  363. description: OK
  364. headers: {}
  365. tags:
  366. - DKIM
  367. description: Using this endpoint you can duplicate the DKIM Key of one domain.
  368. operationId: Duplicate DKIM Key
  369. requestBody:
  370. content:
  371. application/json:
  372. schema:
  373. example:
  374. from_domain: mailcow.tld
  375. to_domain: awesomecow.tld
  376. properties:
  377. fron_domain:
  378. description: the domain where the dkim key should be copied from
  379. type: string
  380. to_domain:
  381. description: the domain where the dkim key should be copied to
  382. type: string
  383. type: object
  384. summary: Duplicate DKIM Key
  385. /api/v1/add/domain:
  386. post:
  387. responses:
  388. '401':
  389. $ref: '#/components/responses/Unauthorized'
  390. '200':
  391. content:
  392. application/json:
  393. examples:
  394. response:
  395. value:
  396. - log:
  397. - ratelimit
  398. - edit
  399. - domain
  400. - object: domain.tld
  401. rl_frame: s
  402. rl_value: '10'
  403. msg:
  404. - rl_saved
  405. - domain.tld
  406. type: success
  407. - log:
  408. - mailbox
  409. - add
  410. - domain
  411. - active: '1'
  412. aliases: '400'
  413. backupmx: '0'
  414. defquota: '3072'
  415. description: some decsription
  416. domain: domain.tld
  417. lang: cs
  418. mailboxes: '10'
  419. maxquota: '10240'
  420. quota: '10240'
  421. relay_all_recipients: '0'
  422. rl_frame: s
  423. rl_value: '10'
  424. - null
  425. msg:
  426. - domain_added
  427. - domain.tld
  428. type: success
  429. schema:
  430. properties:
  431. log:
  432. description: contains request object
  433. items: {}
  434. type: array
  435. msg:
  436. items: {}
  437. type: array
  438. type:
  439. enum:
  440. - success
  441. - danger
  442. - error
  443. type: string
  444. type: object
  445. description: OK
  446. headers: {}
  447. tags:
  448. - Domains
  449. description: >-
  450. You may create your own domain using this action. It takes a JSON object
  451. containing a domain informations.
  452. operationId: Create domain
  453. requestBody:
  454. content:
  455. application/json:
  456. schema:
  457. example:
  458. active: '1'
  459. aliases: '400'
  460. backupmx: '0'
  461. defquota: '3072'
  462. description: some decsription
  463. domain: domain.tld
  464. lang: cs
  465. mailboxes: '10'
  466. maxquota: '10240'
  467. quota: '10240'
  468. relay_all_recipients: '0'
  469. rl_frame: s
  470. rl_value: '10'
  471. properties:
  472. active:
  473. description: is domain active or not
  474. type: boolean
  475. aliases:
  476. description: limit count of aliases associated with this domain
  477. type: number
  478. backupmx:
  479. description: relay domain or not
  480. type: boolean
  481. defquota:
  482. description: predefined mailbox quota in `add mailbox` form
  483. type: number
  484. description:
  485. description: Description of domain
  486. type: string
  487. domain:
  488. description: Fully qualified domain name
  489. type: string
  490. lang:
  491. description: language code
  492. enum:
  493. - sk
  494. - cs
  495. - de
  496. - en
  497. - es
  498. - fr
  499. - lv
  500. - nl
  501. - pl
  502. - pt
  503. - ru
  504. - it
  505. - ca
  506. type: string
  507. mailboxes:
  508. description: limit count of mailboxes associated with this domain
  509. type: number
  510. maxquota:
  511. description: maximum quota per mailbox
  512. type: number
  513. quota:
  514. description: maximum quota for this domain (for all mailboxes in sum)
  515. type: number
  516. relay_all_recipients:
  517. description: >-
  518. if not, them you have to create "dummy" mailbox for each
  519. address to relay
  520. type: boolean
  521. rl_frame:
  522. enum:
  523. - s
  524. - m
  525. - h
  526. type: string
  527. rl_value:
  528. description: rate limit value
  529. type: number
  530. type: object
  531. summary: Create domain
  532. /api/v1/add/domain-admin:
  533. post:
  534. responses:
  535. '401':
  536. $ref: '#/components/responses/Unauthorized'
  537. '200':
  538. content:
  539. application/json:
  540. examples:
  541. response:
  542. value:
  543. - log:
  544. - domain_admin
  545. - add
  546. - active: '1'
  547. domains: mailcow.tld
  548. password: '*'
  549. password2: '*'
  550. username: testadmin
  551. msg:
  552. - domain_admin_added
  553. - testadmin
  554. type: success
  555. schema:
  556. properties:
  557. log:
  558. description: contains request object
  559. items: {}
  560. type: array
  561. msg:
  562. items: {}
  563. type: array
  564. type:
  565. enum:
  566. - success
  567. - danger
  568. - error
  569. type: string
  570. type: object
  571. description: OK
  572. headers: {}
  573. tags:
  574. - Domain admin
  575. description: >-
  576. Using this endpoint you can create a new Domain Admin user. This user
  577. has full control over a domain, and can create new mailboxes and
  578. aliases.
  579. operationId: Create Domain Admin user
  580. requestBody:
  581. content:
  582. application/json:
  583. schema:
  584. example:
  585. active: '1'
  586. domains: mailcow.tld
  587. password: supersecurepw
  588. password2: supersecurepw
  589. username: testadmin
  590. properties:
  591. active:
  592. description: 1 for a active user account 0 for a disabled user account
  593. type: number
  594. domains:
  595. description: the domains the user should be a admin of
  596. type: string
  597. password:
  598. description: domain admin user password
  599. type: string
  600. password2:
  601. description: domain admin user password
  602. type: string
  603. username:
  604. description: the username for the admin user
  605. type: string
  606. type: object
  607. summary: Create Domain Admin user
  608. /api/v1/add/domain-policy:
  609. post:
  610. responses:
  611. '401':
  612. $ref: '#/components/responses/Unauthorized'
  613. '200':
  614. content:
  615. application/json:
  616. examples:
  617. response:
  618. value:
  619. - log:
  620. - policy
  621. - add
  622. - domain
  623. - domain: domain.tld
  624. object_from: '*@baddomain.tld'
  625. object_list: bl
  626. msg:
  627. - domain_modified
  628. - domain.tld
  629. type: success
  630. schema:
  631. properties:
  632. log:
  633. description: contains request object
  634. items: {}
  635. type: array
  636. msg:
  637. items: {}
  638. type: array
  639. type:
  640. enum:
  641. - success
  642. - danger
  643. - error
  644. type: string
  645. type: object
  646. description: OK
  647. headers: {}
  648. tags:
  649. - Domain antispam policies
  650. description: >-
  651. You may create your own domain policy using this action. It takes a JSON
  652. object containing a domain informations.
  653. operationId: Create domain policy
  654. requestBody:
  655. content:
  656. application/json:
  657. schema:
  658. example:
  659. domain: domain.tld
  660. object_from: '*@baddomain.tld'
  661. object_list: bl
  662. properties:
  663. domain:
  664. description: domain name to which policy is associated to
  665. type: string
  666. object_from:
  667. description: exact address or use wildcard to match whole domain
  668. type: string
  669. object_list:
  670. enum:
  671. - wl
  672. - bl
  673. type: string
  674. type: object
  675. summary: Create domain policy
  676. /api/v1/add/fwdhost:
  677. post:
  678. responses:
  679. '401':
  680. $ref: '#/components/responses/Unauthorized'
  681. '200':
  682. content:
  683. application/json:
  684. examples:
  685. response:
  686. value:
  687. - log:
  688. - fwdhost
  689. - add
  690. - filter_spam: '0'
  691. hostname: hosted.mailcow.de
  692. msg:
  693. - forwarding_host_added
  694. - '5.1.76.202, 2a00:f820:417::202'
  695. type: success
  696. schema:
  697. properties:
  698. log:
  699. description: contains request object
  700. items: {}
  701. type: array
  702. msg:
  703. items: {}
  704. type: array
  705. type:
  706. enum:
  707. - success
  708. - danger
  709. - error
  710. type: string
  711. type: object
  712. description: OK
  713. headers: {}
  714. tags:
  715. - Fordwarding Hosts
  716. description: >-
  717. Add a new Forwarding host to mailcow. You can chose to enable or disable
  718. spam filtering of incoming emails by specifing `filter_spam` 0 =
  719. inactive, 1 = active.
  720. operationId: Add Forward Host
  721. requestBody:
  722. content:
  723. application/json:
  724. schema:
  725. example:
  726. filter_spam: '0'
  727. hostname: hosted.mailcow.de
  728. properties:
  729. filter_spam:
  730. description: '1 to enable spam filter, 0 to disable spam filter'
  731. type: number
  732. hostname:
  733. description: contains the hostname you want to add
  734. type: string
  735. type: object
  736. summary: Add Forward Host
  737. /api/v1/add/mailbox:
  738. post:
  739. responses:
  740. '401':
  741. $ref: '#/components/responses/Unauthorized'
  742. '200':
  743. content:
  744. application/json:
  745. examples:
  746. response:
  747. value:
  748. - log:
  749. - mailbox
  750. - add
  751. - mailbox
  752. - active: '1'
  753. domain: domain.tld
  754. local_part: info
  755. name: Full name
  756. password: '*'
  757. password2: '*'
  758. quota: '3072'
  759. force_pw_update: '1'
  760. tls_enforce_in: '1'
  761. tls_enforce_out: '1'
  762. - null
  763. msg:
  764. - mailbox_added
  765. - info@domain.tld
  766. type: success
  767. schema:
  768. properties:
  769. log:
  770. description: contains request object
  771. items: {}
  772. type: array
  773. msg:
  774. items: {}
  775. type: array
  776. type:
  777. enum:
  778. - success
  779. - danger
  780. - error
  781. type: string
  782. type: object
  783. description: OK
  784. headers: {}
  785. tags:
  786. - Mailboxes
  787. description: >-
  788. You may create your own mailbox using this action. It takes a JSON
  789. object containing a domain informations.
  790. operationId: Create mailbox
  791. requestBody:
  792. content:
  793. application/json:
  794. schema:
  795. example:
  796. active: '1'
  797. domain: domain.tld
  798. local_part: info
  799. name: Full name
  800. password: atedismonsin
  801. password2: atedismonsin
  802. quota: '3072'
  803. force_pw_update: '1'
  804. tls_enforce_in: '1'
  805. tls_enforce_out: '1'
  806. properties:
  807. active:
  808. description: is mailbox active or not
  809. type: boolean
  810. domain:
  811. description: domain name
  812. type: string
  813. local_part:
  814. description: left part of email address
  815. type: string
  816. name:
  817. description: Full name of the mailbox user
  818. type: string
  819. password2:
  820. description: mailbox password for confirmation
  821. type: string
  822. pasword:
  823. description: mailbox password
  824. type: string
  825. quota:
  826. description: mailbox quota
  827. type: number
  828. force_pw_update:
  829. description: forces the user to update its password on first login
  830. type: boolean
  831. tls_enforce_in:
  832. description: force inbound email tls encryption
  833. type: boolean
  834. tls_enforce_out:
  835. description: force oubound tmail tls encryption
  836. type: boolean
  837. type: object
  838. summary: Create mailbox
  839. /api/v1/add/oauth2-client:
  840. post:
  841. responses:
  842. '401':
  843. $ref: '#/components/responses/Unauthorized'
  844. '200':
  845. content:
  846. application/json:
  847. examples:
  848. response:
  849. value:
  850. - log:
  851. - oauth2
  852. - add
  853. - client
  854. - redirect_uri: 'https://mailcow.tld'
  855. msg: Added client access
  856. type: success
  857. schema:
  858. properties:
  859. log:
  860. description: contains request object
  861. items: {}
  862. type: array
  863. msg:
  864. items: {}
  865. type: array
  866. type:
  867. enum:
  868. - success
  869. - danger
  870. - error
  871. type: string
  872. type: object
  873. description: OK
  874. headers: {}
  875. tags:
  876. - oAuth Clients
  877. description: Using this endpoint you can create a oAuth clients.
  878. operationId: Create oAuth Client
  879. requestBody:
  880. content:
  881. application/json:
  882. schema:
  883. example:
  884. redirect_uri: 'https://mailcow.tld'
  885. properties:
  886. redirect_uri:
  887. description: the uri where you should be redirected after oAuth
  888. type: string
  889. type: object
  890. summary: Create oAuth Client
  891. /api/v1/add/recipient_map:
  892. post:
  893. responses:
  894. '401':
  895. $ref: '#/components/responses/Unauthorized'
  896. '200':
  897. content:
  898. application/json:
  899. examples:
  900. response:
  901. value:
  902. - log:
  903. - recipient_map
  904. - add
  905. - active: '1'
  906. recipient_map_new: target@mailcow.tld
  907. recipient_map_old: recipient@mailcow.tld
  908. - null
  909. msg:
  910. - recipient_map_entry_saved
  911. - recipient@mailcow.tld
  912. type: success
  913. schema:
  914. properties:
  915. log:
  916. description: contains request object
  917. items: {}
  918. type: array
  919. msg:
  920. items: {}
  921. type: array
  922. type:
  923. enum:
  924. - success
  925. - danger
  926. - error
  927. type: string
  928. type: object
  929. description: OK
  930. headers: {}
  931. tags:
  932. - Address Rewriting
  933. description: >-
  934. Using this endpoint you can create a recipient map to forward all mails
  935. from one email address to another.
  936. operationId: Create Recipient Map
  937. requestBody:
  938. content:
  939. application/json:
  940. schema:
  941. example:
  942. active: '1'
  943. recipient_map_new: target@mailcow.tld
  944. recipient_map_old: recipient@mailcow.tld
  945. properties:
  946. active:
  947. description: 1 for a active user account 0 for a disabled user account
  948. type: number
  949. recipient_map_new:
  950. description: the email address that should receive the forwarded emails
  951. type: string
  952. recipient_map_old:
  953. description: the email address which emails should be forwarded
  954. type: string
  955. type: object
  956. summary: Create Recipient Map
  957. /api/v1/add/relayhost:
  958. post:
  959. responses:
  960. '401':
  961. $ref: '#/components/responses/Unauthorized'
  962. '200':
  963. content:
  964. application/json:
  965. examples:
  966. response:
  967. value:
  968. - log:
  969. - relayhost
  970. - add
  971. - hostname: 'mailcow.tld:25'
  972. password: supersecurepassword
  973. username: testuser
  974. msg:
  975. - relayhost_added
  976. - ''
  977. type: success
  978. schema:
  979. properties:
  980. log:
  981. description: contains request object
  982. items: {}
  983. type: array
  984. msg:
  985. items: {}
  986. type: array
  987. type:
  988. enum:
  989. - success
  990. - danger
  991. - error
  992. type: string
  993. type: object
  994. description: OK
  995. headers: {}
  996. tags:
  997. - Routing
  998. description: Using this endpoint you can create Sender-Dependent Transports.
  999. operationId: Create Sender-Dependent Transports
  1000. requestBody:
  1001. content:
  1002. application/json:
  1003. schema:
  1004. example:
  1005. hostname: 'mailcow.tld:25'
  1006. password: supersecurepassword
  1007. username: testuser
  1008. properties:
  1009. hostname:
  1010. description: the hostname of the smtp server with port
  1011. type: string
  1012. password:
  1013. description: the password for the smtp user
  1014. type: string
  1015. username:
  1016. description: the username used to authenticate
  1017. type: string
  1018. type: object
  1019. summary: Create Sender-Dependent Transports
  1020. /api/v1/add/resource:
  1021. post:
  1022. responses:
  1023. '401':
  1024. $ref: '#/components/responses/Unauthorized'
  1025. '200':
  1026. content:
  1027. application/json:
  1028. examples:
  1029. response:
  1030. value:
  1031. - log:
  1032. - mailbox
  1033. - add
  1034. - resource
  1035. - active: '1'
  1036. description: test
  1037. domain: mailcow.tld
  1038. kind: location
  1039. multiple_bookings: '0'
  1040. multiple_bookings_custom: ''
  1041. multiple_bookings_select: '0'
  1042. - null
  1043. msg:
  1044. - resource_added
  1045. - mailcow.tld
  1046. type: success
  1047. schema:
  1048. properties:
  1049. log:
  1050. description: contains request object
  1051. items: {}
  1052. type: array
  1053. msg:
  1054. items: {}
  1055. type: array
  1056. type:
  1057. enum:
  1058. - success
  1059. - danger
  1060. - error
  1061. type: string
  1062. type: object
  1063. description: OK
  1064. headers: {}
  1065. tags:
  1066. - Resources
  1067. description: Using this endpoint you can create Resources.
  1068. operationId: Create Resources
  1069. requestBody:
  1070. content:
  1071. application/json:
  1072. schema:
  1073. example:
  1074. active: '1'
  1075. description: test
  1076. domain: mailcow.tld
  1077. kind: location
  1078. multiple_bookings: '0'
  1079. multiple_bookings_custom: ''
  1080. multiple_bookings_select: '0'
  1081. properties:
  1082. active:
  1083. description: 1 for a active transport map 0 for a disabled transport map
  1084. type: number
  1085. description:
  1086. description: a description of the resource
  1087. type: string
  1088. domain:
  1089. description: the domain for which the resource should be
  1090. type: string
  1091. kind:
  1092. description: the kind of recouse
  1093. enum:
  1094. - location
  1095. - group
  1096. - thing
  1097. type: string
  1098. multiple_bookings:
  1099. enum:
  1100. - '-1'
  1101. - '1'
  1102. - custom
  1103. type: string
  1104. multiple_bookings_custom:
  1105. description: always empty
  1106. type: number
  1107. multiple_bookings_select:
  1108. enum:
  1109. - '-1'
  1110. - '1'
  1111. - custom
  1112. type: string
  1113. type: object
  1114. summary: Create Resources
  1115. /api/v1/add/syncjob:
  1116. post:
  1117. responses:
  1118. '401':
  1119. $ref: '#/components/responses/Unauthorized'
  1120. '200':
  1121. content:
  1122. application/json:
  1123. examples:
  1124. response:
  1125. value:
  1126. - log:
  1127. - mailbox
  1128. - add
  1129. - syncjob
  1130. - active: '1'
  1131. automap: '1'
  1132. custom_params: ''
  1133. delete1: '0'
  1134. delete2: '0'
  1135. delete2duplicates: '1'
  1136. enc1: SSL
  1137. exclude: (?i)spam|(?i)junk
  1138. host1: imap.server.tld
  1139. maxage: '0'
  1140. maxbytespersecond: '0'
  1141. mins_interval: '20'
  1142. password1: supersecret
  1143. port1: 993
  1144. skipcrossduplicates: '0'
  1145. subfolder2: External
  1146. subscribeall: '1'
  1147. timeout1: '600'
  1148. timeout2: '600'
  1149. user1: username
  1150. username: mailbox@domain.tld
  1151. - null
  1152. msg:
  1153. - mailbox_modified
  1154. - mailbox@domain.tld
  1155. type: success
  1156. schema:
  1157. properties:
  1158. log:
  1159. description: contains request object
  1160. items: {}
  1161. type: array
  1162. msg:
  1163. items: {}
  1164. type: array
  1165. type:
  1166. enum:
  1167. - success
  1168. - danger
  1169. - error
  1170. type: string
  1171. type: object
  1172. description: OK
  1173. headers: {}
  1174. tags:
  1175. - Sync jobs
  1176. description: >-
  1177. You can create new sync job using this action. It takes a JSON object
  1178. containing a domain informations.
  1179. operationId: Create sync job
  1180. summary: Create sync job
  1181. requestBody:
  1182. content:
  1183. application/json:
  1184. schema:
  1185. example:
  1186. username: lisa@mailcow.tld
  1187. host1: mail.mailcow.tld
  1188. port1: '143'
  1189. user1: demo@mailcow.tld
  1190. password1: supersecretpw
  1191. enc1: TLS
  1192. mins_interval: '20'
  1193. subfolder2: "/SyncIntoSubfolder"
  1194. maxage: '0'
  1195. maxbytespersecond: '0'
  1196. timeout1: '600'
  1197. timeout2: '600'
  1198. exclude: "(?i)spam|(?i)junk"
  1199. custom_params: "--dry"
  1200. delete2duplicates: '1'
  1201. delete1: '1'
  1202. delete2: '0'
  1203. automap: '1'
  1204. skipcrossduplicates: '0'
  1205. subscribeall: '0'
  1206. active: '1'
  1207. properties:
  1208. parameters:
  1209. description: your local mailcow mailbox
  1210. type: string
  1211. host1:
  1212. description: the smtp server where mails should be synced from
  1213. type: string
  1214. port1:
  1215. description: the smtp port of the target mail server
  1216. type: string
  1217. password:
  1218. description: the password of the mailbox
  1219. type: string
  1220. enc1:
  1221. description: the encryption method used to connect to the mailserver
  1222. type: string
  1223. mins_internal:
  1224. description: the interval in which messages should be syned
  1225. type: number
  1226. subfolder2:
  1227. description: sync into subfolder on destination (empty = do not use subfolder)
  1228. type: string
  1229. maxage:
  1230. description: only sync messages up to this age in days
  1231. type: number
  1232. maxbytespersecond:
  1233. description: max speed transfer limit for the sync
  1234. type: number
  1235. timeout1:
  1236. description: timeout for connection to remote host
  1237. type: number
  1238. timeout2:
  1239. description: timeout for connection to local host
  1240. type: number
  1241. exclude:
  1242. description: exclude objects (regex)
  1243. type: string
  1244. custom_params:
  1245. description: custom parameters
  1246. type: string
  1247. delete2duplicates:
  1248. description: delete duplicates on destination (--delete2duplicates)
  1249. type: boolean
  1250. delete1:
  1251. description: delete from source when completed (--delete1)
  1252. type: boolean
  1253. delete2:
  1254. description: delete messages on destination that are not on source (--delete2)
  1255. type: boolean
  1256. automap:
  1257. description: try to automap folders ("Sent items", "Sent" => "Sent" etc.) (--automap)
  1258. type: boolean
  1259. skipcrossduplicates:
  1260. description: skip duplicate messages across folders (first come, first serve) (--skipcrossduplicates)
  1261. type: boolean
  1262. subscribeall:
  1263. description: subscribe all folders (--subscribeall)
  1264. type: boolean
  1265. active:
  1266. description: enables or disables the sync job
  1267. type: boolean
  1268. type: object
  1269. /api/v1/add/tls-policy-map:
  1270. post:
  1271. responses:
  1272. '401':
  1273. $ref: '#/components/responses/Unauthorized'
  1274. '200':
  1275. content:
  1276. application/json:
  1277. examples:
  1278. response:
  1279. value:
  1280. - log:
  1281. - tls_policy_maps
  1282. - add
  1283. - parameters: ''
  1284. active: '1'
  1285. dest: mailcow.tld
  1286. policy: encrypt
  1287. - null
  1288. msg:
  1289. - tls_policy_map_entry_saved
  1290. - mailcow.tld
  1291. type: success
  1292. schema:
  1293. properties:
  1294. log:
  1295. description: contains request object
  1296. items: {}
  1297. type: array
  1298. msg:
  1299. items: {}
  1300. type: array
  1301. type:
  1302. enum:
  1303. - success
  1304. - danger
  1305. - error
  1306. type: string
  1307. type: object
  1308. description: OK
  1309. headers: {}
  1310. tags:
  1311. - Outgoing TLS Policy Map Overrides
  1312. description: Using this endpoint you can create a TLS policy map override.
  1313. operationId: Create TLS Policy Map
  1314. requestBody:
  1315. content:
  1316. application/json:
  1317. schema:
  1318. example:
  1319. parameters: ''
  1320. active: '1'
  1321. dest: mailcow.tld
  1322. policy: encrypt
  1323. properties:
  1324. parameters:
  1325. description: >-
  1326. custom parameters you find out more about them
  1327. [here](http://www.postfix.org/postconf.5.html#smtp_tls_policy_maps)
  1328. type: string
  1329. active:
  1330. description: 1 for a active user account 0 for a disabled user account
  1331. type: number
  1332. dest:
  1333. description: the target domain or email address
  1334. type: string
  1335. policy:
  1336. description: the policy
  1337. enum:
  1338. - none
  1339. - may
  1340. - encrypt
  1341. - dane
  1342. - '''dane'
  1343. - fingerprint
  1344. - verify
  1345. - secure
  1346. type: string
  1347. type: object
  1348. summary: Create TLS Policy Map
  1349. /api/v1/add/transport/all:
  1350. post:
  1351. responses:
  1352. '401':
  1353. $ref: '#/components/responses/Unauthorized'
  1354. '200':
  1355. content:
  1356. application/json:
  1357. examples:
  1358. response:
  1359. value:
  1360. - log:
  1361. - transport
  1362. - add
  1363. - active: '1'
  1364. destination: example2.org
  1365. nexthop: 'host:25'
  1366. password: supersecurepw
  1367. username: testuser
  1368. msg:
  1369. - relayhost_added
  1370. - ''
  1371. type: success
  1372. schema:
  1373. properties:
  1374. log:
  1375. description: contains request object
  1376. items: {}
  1377. type: array
  1378. msg:
  1379. items: {}
  1380. type: array
  1381. type:
  1382. enum:
  1383. - success
  1384. - danger
  1385. - error
  1386. type: string
  1387. type: object
  1388. description: OK
  1389. headers: {}
  1390. tags:
  1391. - Routing
  1392. description: Using this endpoint you can create Sender-Dependent Transports.
  1393. operationId: Create Transport Maps
  1394. requestBody:
  1395. content:
  1396. application/json:
  1397. schema:
  1398. example:
  1399. active: '1'
  1400. destination: example.org
  1401. nexthop: 'host:25'
  1402. password: supersecurepw
  1403. username: testuser
  1404. properties:
  1405. active:
  1406. description: 1 for a active transport map 0 for a disabled transport map
  1407. type: number
  1408. destination:
  1409. type: string
  1410. nexthop:
  1411. type: string
  1412. password:
  1413. description: the password for the smtp user
  1414. type: string
  1415. username:
  1416. description: the username used to authenticate
  1417. type: string
  1418. type: object
  1419. summary: Create Transport Maps
  1420. /api/v1/delete/alias:
  1421. post:
  1422. responses:
  1423. '401':
  1424. $ref: '#/components/responses/Unauthorized'
  1425. '200':
  1426. content:
  1427. application/json:
  1428. examples:
  1429. response:
  1430. value:
  1431. - log:
  1432. - mailbox
  1433. - delete
  1434. - alias
  1435. - id:
  1436. - '6'
  1437. - '9'
  1438. - null
  1439. msg:
  1440. - alias_removed
  1441. - alias@domain.tld
  1442. type: success
  1443. - log:
  1444. - mailbox
  1445. - delete
  1446. - alias
  1447. - id:
  1448. - '6'
  1449. - '9'
  1450. - null
  1451. msg:
  1452. - alias_removed
  1453. - alias2@domain.tld
  1454. type: success
  1455. schema:
  1456. properties:
  1457. log:
  1458. description: contains request object
  1459. items: {}
  1460. type: array
  1461. msg:
  1462. items: {}
  1463. type: array
  1464. type:
  1465. enum:
  1466. - success
  1467. - danger
  1468. - error
  1469. type: string
  1470. type: object
  1471. description: OK
  1472. headers: {}
  1473. tags:
  1474. - Aliases
  1475. description: You can delete one or more aliases.
  1476. operationId: Delete alias
  1477. requestBody:
  1478. content:
  1479. application/json:
  1480. schema:
  1481. items:
  1482. example:
  1483. - '6'
  1484. - '9'
  1485. type: string
  1486. type: array
  1487. summary: Delete alias
  1488. /api/v1/delete/app-passwd:
  1489. post:
  1490. responses:
  1491. '401':
  1492. $ref: '#/components/responses/Unauthorized'
  1493. '200':
  1494. content:
  1495. application/json:
  1496. examples:
  1497. response:
  1498. value:
  1499. - log:
  1500. - app_passwd
  1501. - delete
  1502. - id:
  1503. - '2'
  1504. msg:
  1505. - app_passwd_removed
  1506. - '2'
  1507. type: success
  1508. schema:
  1509. properties:
  1510. log:
  1511. description: contains request object
  1512. items: {}
  1513. type: array
  1514. msg:
  1515. items: {}
  1516. type: array
  1517. type:
  1518. enum:
  1519. - success
  1520. - danger
  1521. - error
  1522. type: string
  1523. type: object
  1524. description: OK
  1525. headers: {}
  1526. tags:
  1527. - App Passwords
  1528. description: Using this endpoint you can delete a single app password.
  1529. operationId: Delete App Password
  1530. requestBody:
  1531. content:
  1532. application/json:
  1533. schema:
  1534. example:
  1535. - '1'
  1536. properties:
  1537. items:
  1538. description: contains list of app passwords you want to delete
  1539. type: object
  1540. type: object
  1541. summary: Delete App Password
  1542. /api/v1/delete/bcc:
  1543. post:
  1544. responses:
  1545. '401':
  1546. $ref: '#/components/responses/Unauthorized'
  1547. '200':
  1548. content:
  1549. application/json:
  1550. examples:
  1551. response:
  1552. value:
  1553. - log:
  1554. - bcc
  1555. - delete
  1556. - id:
  1557. - '4'
  1558. - null
  1559. msg:
  1560. - bcc_deleted
  1561. - '4'
  1562. type: success
  1563. schema:
  1564. properties:
  1565. log:
  1566. description: contains request object
  1567. items: {}
  1568. type: array
  1569. msg:
  1570. items: {}
  1571. type: array
  1572. type:
  1573. enum:
  1574. - success
  1575. - danger
  1576. - error
  1577. type: string
  1578. type: object
  1579. description: OK
  1580. headers: {}
  1581. tags:
  1582. - Address Rewriting
  1583. description: >-
  1584. Using this endpoint you can delete a BCC map, for this you have to know
  1585. its ID. You can get the ID using the GET method.
  1586. operationId: Delete BCC Map
  1587. requestBody:
  1588. content:
  1589. application/json:
  1590. schema:
  1591. example:
  1592. - '3'
  1593. properties:
  1594. items:
  1595. description: contains list of bcc maps you want to delete
  1596. type: object
  1597. type: object
  1598. summary: Delete BCC Map
  1599. /api/v1/delete/dkim:
  1600. post:
  1601. responses:
  1602. '401':
  1603. $ref: '#/components/responses/Unauthorized'
  1604. '200':
  1605. content:
  1606. application/json:
  1607. examples:
  1608. response:
  1609. value:
  1610. - log:
  1611. - dkim
  1612. - delete
  1613. - domains:
  1614. - mailcow.tld
  1615. msg:
  1616. - dkim_removed
  1617. - mailcow.tld
  1618. type: success
  1619. schema:
  1620. properties:
  1621. log:
  1622. description: contains request object
  1623. items: {}
  1624. type: array
  1625. msg:
  1626. items: {}
  1627. type: array
  1628. type:
  1629. enum:
  1630. - success
  1631. - danger
  1632. - error
  1633. type: string
  1634. type: object
  1635. description: OK
  1636. headers: {}
  1637. tags:
  1638. - DKIM
  1639. description: Using this endpoint a existing DKIM Key can be deleted
  1640. operationId: Delete DKIM Key
  1641. requestBody:
  1642. content:
  1643. application/json:
  1644. schema:
  1645. items:
  1646. example:
  1647. - mailcow.tld
  1648. type: string
  1649. type: array
  1650. summary: Delete DKIM Key
  1651. /api/v1/delete/domain:
  1652. post:
  1653. responses:
  1654. '401':
  1655. $ref: '#/components/responses/Unauthorized'
  1656. '200':
  1657. content:
  1658. application/json:
  1659. examples:
  1660. response:
  1661. value:
  1662. - log:
  1663. - mailbox
  1664. - delete
  1665. - domain
  1666. - domain:
  1667. - domain.tld
  1668. - domain2.tld
  1669. - null
  1670. msg:
  1671. - domain_removed
  1672. - domain.tld
  1673. type: success
  1674. - log:
  1675. - mailbox
  1676. - delete
  1677. - domain
  1678. - domain:
  1679. - domain.tld
  1680. - domain2.tld
  1681. - null
  1682. msg:
  1683. - domain_removed
  1684. - domain2.tld
  1685. type: success
  1686. schema:
  1687. properties:
  1688. log:
  1689. description: contains request object
  1690. items: {}
  1691. type: array
  1692. msg:
  1693. items: {}
  1694. type: array
  1695. type:
  1696. enum:
  1697. - success
  1698. - danger
  1699. - error
  1700. type: string
  1701. type: object
  1702. description: OK
  1703. headers: {}
  1704. tags:
  1705. - Domains
  1706. description: You can delete one or more domains.
  1707. operationId: Delete domain
  1708. requestBody:
  1709. content:
  1710. application/json:
  1711. schema:
  1712. example:
  1713. - domain.tld
  1714. - domain2.tld
  1715. properties:
  1716. items:
  1717. description: contains list of domains you want to delete
  1718. type: object
  1719. type: object
  1720. summary: Delete domain
  1721. /api/v1/delete/domain-admin:
  1722. post:
  1723. responses:
  1724. '401':
  1725. $ref: '#/components/responses/Unauthorized'
  1726. '200':
  1727. content:
  1728. application/json:
  1729. examples:
  1730. response:
  1731. value:
  1732. - log:
  1733. - domain_admin
  1734. - delete
  1735. - username:
  1736. - testadmin
  1737. msg:
  1738. - domain_admin_removed
  1739. - testadmin
  1740. type: success
  1741. schema:
  1742. properties:
  1743. log:
  1744. description: contains request object
  1745. items: {}
  1746. type: array
  1747. msg:
  1748. items: {}
  1749. type: array
  1750. type:
  1751. enum:
  1752. - success
  1753. - danger
  1754. - error
  1755. type: string
  1756. type: object
  1757. description: OK
  1758. headers: {}
  1759. tags:
  1760. - Domain admin
  1761. description: Using this endpoint a existing Domain Admin user can be deleted.
  1762. operationId: Delete Domain Admin
  1763. requestBody:
  1764. content:
  1765. application/json:
  1766. schema:
  1767. example:
  1768. - testadmin
  1769. properties:
  1770. items:
  1771. description: contains list of usernames of the users you want to delete
  1772. type: object
  1773. type: object
  1774. summary: Delete Domain Admin
  1775. /api/v1/delete/domain-policy:
  1776. post:
  1777. responses:
  1778. '401':
  1779. $ref: '#/components/responses/Unauthorized'
  1780. '200':
  1781. content:
  1782. application/json:
  1783. examples:
  1784. response:
  1785. value:
  1786. - log:
  1787. - policy
  1788. - delete
  1789. - domain
  1790. - prefid:
  1791. - '1'
  1792. - '2'
  1793. msg:
  1794. - item_deleted
  1795. - '1'
  1796. type: success
  1797. - log:
  1798. - policy
  1799. - delete
  1800. - domain
  1801. - prefid:
  1802. - '1'
  1803. - '2'
  1804. msg:
  1805. - item_deleted
  1806. - '2'
  1807. type: success
  1808. schema:
  1809. properties:
  1810. log:
  1811. description: contains request object
  1812. items: {}
  1813. type: array
  1814. msg:
  1815. items: {}
  1816. type: array
  1817. type:
  1818. enum:
  1819. - success
  1820. - danger
  1821. - error
  1822. type: string
  1823. type: object
  1824. description: OK
  1825. headers: {}
  1826. tags:
  1827. - Domain antispam policies
  1828. description: You can delete one o more domain policies.
  1829. operationId: Delete domain policy
  1830. requestBody:
  1831. content:
  1832. application/json:
  1833. schema:
  1834. example:
  1835. - '1'
  1836. - '2'
  1837. properties:
  1838. items:
  1839. description: contains list of domain policys you want to delete
  1840. type: object
  1841. type: object
  1842. summary: Delete domain policy
  1843. /api/v1/delete/fwdhost:
  1844. post:
  1845. responses:
  1846. '401':
  1847. $ref: '#/components/responses/Unauthorized'
  1848. '200':
  1849. content:
  1850. application/json:
  1851. examples:
  1852. response:
  1853. value:
  1854. - log:
  1855. - fwdhost
  1856. - delete
  1857. - forwardinghost:
  1858. - 5.1.76.202
  1859. - '2a00:f820:417::202'
  1860. msg:
  1861. - forwarding_host_removed
  1862. - 5.1.76.202
  1863. type: success
  1864. - log:
  1865. - fwdhost
  1866. - delete
  1867. - forwardinghost:
  1868. - 5.1.76.202
  1869. - '2a00:f820:417::202'
  1870. msg:
  1871. - forwarding_host_removed
  1872. - '2a00:f820:417::202'
  1873. type: success
  1874. schema:
  1875. properties:
  1876. log:
  1877. description: contains request object
  1878. items: {}
  1879. type: array
  1880. msg:
  1881. items: {}
  1882. type: array
  1883. type:
  1884. enum:
  1885. - success
  1886. - danger
  1887. - error
  1888. type: string
  1889. type: object
  1890. description: OK
  1891. headers: {}
  1892. tags:
  1893. - Fordwarding Hosts
  1894. description: >-
  1895. Using this endpoint you can delete a forwarding host, in order to do so
  1896. you need to know the IP of the host.
  1897. operationId: Delete Forward Host
  1898. requestBody:
  1899. content:
  1900. application/json:
  1901. schema:
  1902. example:
  1903. - 5.1.76.202
  1904. - '2a00:f820:417::202'
  1905. properties:
  1906. ip:
  1907. description: contains the ip of the fowarding host you want to delete
  1908. type: string
  1909. type: object
  1910. summary: Delete Forward Host
  1911. /api/v1/delete/mailbox:
  1912. post:
  1913. responses:
  1914. '401':
  1915. $ref: '#/components/responses/Unauthorized'
  1916. '200':
  1917. content:
  1918. application/json:
  1919. examples:
  1920. response:
  1921. value:
  1922. - log:
  1923. - mailbox
  1924. - delete
  1925. - mailbox
  1926. - username:
  1927. - info@domain.tld
  1928. - sales@domain.tld
  1929. - null
  1930. msg:
  1931. - mailbox_removed
  1932. - info@domain.tld
  1933. type: success
  1934. - log:
  1935. - mailbox
  1936. - delete
  1937. - mailbox
  1938. - username:
  1939. - info@domain.tld
  1940. - sales@domain.tld
  1941. - null
  1942. msg:
  1943. - mailbox_removed
  1944. - sales@domain.tld
  1945. type: success
  1946. schema:
  1947. properties:
  1948. log:
  1949. description: contains request object
  1950. items: {}
  1951. type: array
  1952. msg:
  1953. items: {}
  1954. type: array
  1955. type:
  1956. enum:
  1957. - success
  1958. - danger
  1959. - error
  1960. type: string
  1961. type: object
  1962. description: OK
  1963. headers: {}
  1964. tags:
  1965. - Mailboxes
  1966. description: You can delete one or more mailboxes.
  1967. operationId: Delete mailbox
  1968. requestBody:
  1969. content:
  1970. application/json:
  1971. schema:
  1972. example:
  1973. - info@domain.tld
  1974. - sales@domain.tld
  1975. properties:
  1976. items:
  1977. description: contains list of mailboxes you want to delete
  1978. type: object
  1979. type: object
  1980. summary: Delete mailbox
  1981. /api/v1/delete/mailq:
  1982. post:
  1983. responses:
  1984. '401':
  1985. $ref: '#/components/responses/Unauthorized'
  1986. '200':
  1987. content:
  1988. application/json:
  1989. examples:
  1990. response:
  1991. value:
  1992. msg: Task completed
  1993. type: success
  1994. description: OK
  1995. headers: {}
  1996. tags:
  1997. - Queue Manager
  1998. description: >-
  1999. Using this API you can delete the current mail queue. This will delete
  2000. all mails in it.
  2001. This API uses the command: `postsuper -d`
  2002. operationId: Delete Queue
  2003. requestBody:
  2004. content:
  2005. application/json:
  2006. schema:
  2007. example:
  2008. action: super_delete
  2009. properties:
  2010. action:
  2011. description: use super_delete to delete the mail queue
  2012. type: string
  2013. type: object
  2014. summary: Delete Queue
  2015. /api/v1/delete/oauth2-client:
  2016. post:
  2017. responses:
  2018. '401':
  2019. $ref: '#/components/responses/Unauthorized'
  2020. '200':
  2021. content:
  2022. application/json:
  2023. examples:
  2024. response:
  2025. value:
  2026. - log:
  2027. - oauth2
  2028. - delete
  2029. - client
  2030. - id:
  2031. - '1'
  2032. msg:
  2033. - items_deleted
  2034. - '1'
  2035. type: success
  2036. schema:
  2037. properties:
  2038. log:
  2039. description: contains request object
  2040. items: {}
  2041. type: array
  2042. msg:
  2043. items: {}
  2044. type: array
  2045. type:
  2046. enum:
  2047. - success
  2048. - danger
  2049. - error
  2050. type: string
  2051. type: object
  2052. description: OK
  2053. headers: {}
  2054. tags:
  2055. - oAuth Clients
  2056. description: >-
  2057. Using this endpoint you can delete a oAuth client, for this you have to
  2058. know its ID. You can get the ID using the GET method.
  2059. operationId: Delete oAuth Client
  2060. requestBody:
  2061. content:
  2062. application/json:
  2063. schema:
  2064. example:
  2065. - '3'
  2066. properties:
  2067. items:
  2068. description: contains list of oAuth clients you want to delete
  2069. type: object
  2070. type: object
  2071. summary: Delete oAuth Client
  2072. /api/v1/delete/qitem:
  2073. post:
  2074. responses:
  2075. '401':
  2076. $ref: '#/components/responses/Unauthorized'
  2077. '200':
  2078. content:
  2079. application/json:
  2080. examples:
  2081. response:
  2082. value:
  2083. - log:
  2084. - quarantine
  2085. - delete
  2086. - id:
  2087. - '33'
  2088. msg:
  2089. - item_deleted
  2090. - '33'
  2091. type: success
  2092. schema:
  2093. properties:
  2094. log:
  2095. description: contains request object
  2096. items: {}
  2097. type: array
  2098. msg:
  2099. items: {}
  2100. type: array
  2101. type:
  2102. enum:
  2103. - success
  2104. - danger
  2105. - error
  2106. type: string
  2107. type: object
  2108. description: OK
  2109. headers: {}
  2110. tags:
  2111. - Quarantine
  2112. description: >-
  2113. Using this endpoint you can delete a email from quarantine, for this you
  2114. have to know its ID. You can get the ID using the GET method.
  2115. operationId: Delete mails in Quarantine
  2116. requestBody:
  2117. content:
  2118. application/json:
  2119. schema:
  2120. example:
  2121. - '33'
  2122. properties:
  2123. items:
  2124. description: contains list of emails you want to delete
  2125. type: object
  2126. type: object
  2127. summary: Delete mails in Quarantine
  2128. /api/v1/delete/recipient_map:
  2129. post:
  2130. responses:
  2131. '401':
  2132. $ref: '#/components/responses/Unauthorized'
  2133. '200':
  2134. content:
  2135. application/json:
  2136. examples:
  2137. response:
  2138. value:
  2139. - log:
  2140. - recipient_map
  2141. - delete
  2142. - id:
  2143. - '1'
  2144. - null
  2145. msg:
  2146. - recipient_map_entry_deleted
  2147. - '1'
  2148. type: success
  2149. schema:
  2150. properties:
  2151. log:
  2152. description: contains request object
  2153. items: {}
  2154. type: array
  2155. msg:
  2156. items: {}
  2157. type: array
  2158. type:
  2159. enum:
  2160. - success
  2161. - danger
  2162. - error
  2163. type: string
  2164. type: object
  2165. description: OK
  2166. headers: {}
  2167. tags:
  2168. - Address Rewriting
  2169. description: >-
  2170. Using this endpoint you can delete a recipient map, for this you have to
  2171. know its ID. You can get the ID using the GET method.
  2172. operationId: Delete Recipient Map
  2173. requestBody:
  2174. content:
  2175. application/json:
  2176. schema:
  2177. example:
  2178. - '1'
  2179. properties:
  2180. items:
  2181. description: contains list of recipient maps you want to delete
  2182. type: object
  2183. type: object
  2184. summary: Delete Recipient Map
  2185. /api/v1/delete/relayhost:
  2186. post:
  2187. responses:
  2188. '401':
  2189. $ref: '#/components/responses/Unauthorized'
  2190. '200':
  2191. content:
  2192. application/json:
  2193. examples:
  2194. response:
  2195. value:
  2196. - log:
  2197. - relayhost
  2198. - delete
  2199. - id:
  2200. - '1'
  2201. msg:
  2202. - relayhost_removed
  2203. - '1'
  2204. type: success
  2205. schema:
  2206. properties:
  2207. log:
  2208. description: contains request object
  2209. items: {}
  2210. type: array
  2211. msg:
  2212. items: {}
  2213. type: array
  2214. type:
  2215. enum:
  2216. - success
  2217. - danger
  2218. - error
  2219. type: string
  2220. type: object
  2221. description: OK
  2222. headers: {}
  2223. tags:
  2224. - Routing
  2225. description: >-
  2226. Using this endpoint you can delete a Sender-Dependent Transport, for
  2227. this you have to know its ID. You can get the ID using the GET method.
  2228. operationId: Delete Sender-Dependent Transports
  2229. requestBody:
  2230. content:
  2231. application/json:
  2232. schema:
  2233. example:
  2234. - '1'
  2235. properties:
  2236. items:
  2237. description: >-
  2238. contains list of Sender-Dependent Transport you want to
  2239. delete
  2240. type: object
  2241. type: object
  2242. summary: Delete Sender-Dependent Transports
  2243. /api/v1/delete/resource:
  2244. post:
  2245. responses:
  2246. '401':
  2247. $ref: '#/components/responses/Unauthorized'
  2248. '200':
  2249. content:
  2250. application/json:
  2251. examples:
  2252. response:
  2253. value:
  2254. - log:
  2255. - mailbox
  2256. - delete
  2257. - resource
  2258. - name:
  2259. - test@mailcow.tld
  2260. - null
  2261. msg:
  2262. - resource_removed
  2263. - test@mailcow.tld
  2264. type: success
  2265. schema:
  2266. properties:
  2267. log:
  2268. description: contains request object
  2269. items: {}
  2270. type: array
  2271. msg:
  2272. items: {}
  2273. type: array
  2274. type:
  2275. enum:
  2276. - success
  2277. - danger
  2278. - error
  2279. type: string
  2280. type: object
  2281. description: OK
  2282. headers: {}
  2283. tags:
  2284. - Resources
  2285. description: >-
  2286. Using this endpoint you can delete a Resources, for this you have to
  2287. know its ID. You can get the ID using the GET method.
  2288. operationId: Delete Resources
  2289. requestBody:
  2290. content:
  2291. application/json:
  2292. schema:
  2293. example:
  2294. - test@mailcow.tld
  2295. properties:
  2296. items:
  2297. description: contains list of Resources you want to delete
  2298. type: object
  2299. type: object
  2300. summary: Delete Resources
  2301. /api/v1/delete/syncjob:
  2302. post:
  2303. responses:
  2304. '401':
  2305. $ref: '#/components/responses/Unauthorized'
  2306. '200':
  2307. content:
  2308. application/json:
  2309. examples:
  2310. response:
  2311. value:
  2312. log:
  2313. - entity
  2314. - action
  2315. - object
  2316. msg:
  2317. - message
  2318. - entity name
  2319. type: success
  2320. schema:
  2321. properties:
  2322. log:
  2323. description: contains request object
  2324. items: {}
  2325. type: array
  2326. msg:
  2327. items: {}
  2328. type: array
  2329. type:
  2330. enum:
  2331. - success
  2332. - danger
  2333. - error
  2334. type: string
  2335. type: object
  2336. description: OK
  2337. headers: {}
  2338. tags:
  2339. - Sync jobs
  2340. description: You can delete one or more sync jobs.
  2341. operationId: Delete sync job
  2342. requestBody:
  2343. content:
  2344. application/json:
  2345. schema:
  2346. example:
  2347. - '6'
  2348. - '9'
  2349. properties:
  2350. items:
  2351. description: contains list of aliases you want to delete
  2352. type: object
  2353. type: object
  2354. summary: Delete sync job
  2355. /api/v1/delete/tls-policy-map:
  2356. post:
  2357. responses:
  2358. '401':
  2359. $ref: '#/components/responses/Unauthorized'
  2360. '200':
  2361. content:
  2362. application/json:
  2363. examples:
  2364. response:
  2365. value:
  2366. - log:
  2367. - tls_policy_maps
  2368. - delete
  2369. - id:
  2370. - '1'
  2371. - null
  2372. msg:
  2373. - tls_policy_map_entry_deleted
  2374. - '1'
  2375. type: success
  2376. schema:
  2377. properties:
  2378. log:
  2379. description: contains request object
  2380. items: {}
  2381. type: array
  2382. msg:
  2383. items: {}
  2384. type: array
  2385. type:
  2386. enum:
  2387. - success
  2388. - danger
  2389. - error
  2390. type: string
  2391. type: object
  2392. description: OK
  2393. headers: {}
  2394. tags:
  2395. - Outgoing TLS Policy Map Overrides
  2396. description: >-
  2397. Using this endpoint you can delete a TLS Policy Map, for this you have
  2398. to know its ID. You can get the ID using the GET method.
  2399. operationId: Delete TLS Policy Map
  2400. requestBody:
  2401. content:
  2402. application/json:
  2403. schema:
  2404. example:
  2405. - '3'
  2406. properties:
  2407. items:
  2408. description: contains list of tls policy maps you want to delete
  2409. type: object
  2410. type: object
  2411. summary: Delete TLS Policy Map
  2412. /api/v1/delete/transport:
  2413. post:
  2414. responses:
  2415. '401':
  2416. $ref: '#/components/responses/Unauthorized'
  2417. '200':
  2418. content:
  2419. application/json:
  2420. examples:
  2421. response:
  2422. value:
  2423. - log:
  2424. - transport
  2425. - delete
  2426. - id:
  2427. - '1'
  2428. msg:
  2429. - relayhost_removed
  2430. - '1'
  2431. type: success
  2432. schema:
  2433. properties:
  2434. log:
  2435. description: contains request object
  2436. items: {}
  2437. type: array
  2438. msg:
  2439. items: {}
  2440. type: array
  2441. type:
  2442. enum:
  2443. - success
  2444. - danger
  2445. - error
  2446. type: string
  2447. type: object
  2448. description: OK
  2449. headers: {}
  2450. tags:
  2451. - Routing
  2452. description: >-
  2453. Using this endpoint you can delete a Transport Maps, for this you have
  2454. to know its ID. You can get the ID using the GET method.
  2455. operationId: Delete Transport Maps
  2456. requestBody:
  2457. content:
  2458. application/json:
  2459. schema:
  2460. example:
  2461. - '1'
  2462. properties:
  2463. items:
  2464. description: contains list of transport maps you want to delete
  2465. type: object
  2466. type: object
  2467. summary: Delete Transport Maps
  2468. /api/v1/edit/alias:
  2469. post:
  2470. responses:
  2471. '401':
  2472. $ref: '#/components/responses/Unauthorized'
  2473. '200':
  2474. content:
  2475. application/json:
  2476. examples:
  2477. response:
  2478. value:
  2479. - log:
  2480. - mailbox
  2481. - edit
  2482. - alias
  2483. - active: '1'
  2484. address: alias@domain.tld
  2485. goto: destination@domain.tld
  2486. id:
  2487. - '6'
  2488. private_comment: private comment
  2489. public_comment: public comment
  2490. - null
  2491. msg:
  2492. - alias_modified
  2493. - alias@domain.tld
  2494. type: success
  2495. schema:
  2496. properties:
  2497. log:
  2498. description: contains request object
  2499. items: {}
  2500. type: array
  2501. msg:
  2502. items: {}
  2503. type: array
  2504. type:
  2505. enum:
  2506. - success
  2507. - danger
  2508. - error
  2509. type: string
  2510. type: object
  2511. description: OK
  2512. headers: {}
  2513. tags:
  2514. - Aliases
  2515. description: >-
  2516. You can update one or more aliases per request. You can also send just
  2517. attributes you want to change
  2518. operationId: Update alias
  2519. requestBody:
  2520. content:
  2521. application/json:
  2522. schema:
  2523. example:
  2524. attr:
  2525. active: '1'
  2526. address: alias@domain.tld
  2527. goto: destination@domain.tld
  2528. private_comment: private comment
  2529. public_comment: public comment
  2530. items: '6'
  2531. properties:
  2532. attr:
  2533. properties:
  2534. active:
  2535. description: is alias active or not
  2536. type: boolean
  2537. address:
  2538. description: 'alias address, for catchall use "@domain.tld"'
  2539. type: string
  2540. goto:
  2541. description: 'destination address, comma separated'
  2542. type: string
  2543. goto_ham:
  2544. description: learn as ham
  2545. type: boolean
  2546. goto_null:
  2547. description: silently ignore
  2548. type: boolean
  2549. goto_spam:
  2550. description: learn as spam
  2551. type: boolean
  2552. private_comment:
  2553. type: string
  2554. public_comment:
  2555. type: string
  2556. type: object
  2557. items:
  2558. description: contains list of aliases you want update
  2559. type: object
  2560. type: object
  2561. summary: Update alias
  2562. /api/v1/edit/domain:
  2563. post:
  2564. responses:
  2565. '401':
  2566. $ref: '#/components/responses/Unauthorized'
  2567. '200':
  2568. content:
  2569. '*/*':
  2570. schema:
  2571. properties:
  2572. log:
  2573. description: contains request object
  2574. items: {}
  2575. type: array
  2576. msg:
  2577. items: {}
  2578. type: array
  2579. type:
  2580. enum:
  2581. - success
  2582. - danger
  2583. - error
  2584. type: string
  2585. type: object
  2586. description: OK
  2587. headers: {}
  2588. tags:
  2589. - Domains
  2590. description: >-
  2591. You can update one or more domains per request. You can also send just
  2592. attributes you want to change.
  2593. Example: You can add domain names to items list and in attr object just
  2594. include `"active": "0"` to deactivate domains.
  2595. operationId: Update domain
  2596. requestBody:
  2597. content:
  2598. application/json:
  2599. schema:
  2600. example:
  2601. attr:
  2602. active: '1'
  2603. aliases: '400'
  2604. backupmx: '1'
  2605. defquota: '3072'
  2606. description: domain description
  2607. gal: '1'
  2608. lang: cs
  2609. mailboxes: '10'
  2610. maxquota: '10240'
  2611. quota: '10240'
  2612. relay_all_recipients: '0'
  2613. relayhost: '2'
  2614. items: domain.tld
  2615. properties:
  2616. attr:
  2617. properties:
  2618. active:
  2619. description: is domain active or not
  2620. type: boolean
  2621. aliases:
  2622. description: limit count of aliases associated with this domain
  2623. type: number
  2624. backupmx:
  2625. description: relay domain or not
  2626. type: boolean
  2627. defquota:
  2628. description: predefined mailbox quota in `add mailbox` form
  2629. type: number
  2630. description:
  2631. description: Description of domain
  2632. type: string
  2633. gal:
  2634. description: >-
  2635. is domain global address list active or not, it enables
  2636. shared contacts accross domain in SOGo webmail
  2637. type: boolean
  2638. lang:
  2639. description: language code
  2640. enum:
  2641. - sk
  2642. - cs
  2643. - de
  2644. - en
  2645. - es
  2646. - fr
  2647. - lv
  2648. - nl
  2649. - pl
  2650. - pt
  2651. - ru
  2652. - it
  2653. - ca
  2654. type: string
  2655. mailboxes:
  2656. description: limit count of mailboxes associated with this domain
  2657. type: number
  2658. maxquota:
  2659. description: maximum quota per mailbox
  2660. type: number
  2661. quota:
  2662. description: maximum quota for this domain (for all mailboxes in sum)
  2663. type: number
  2664. relay_all_recipients:
  2665. description: >-
  2666. if not, them you have to create "dummy" mailbox for each
  2667. address to relay
  2668. type: boolean
  2669. relayhost:
  2670. description: id of relayhost
  2671. type: number
  2672. type: object
  2673. items:
  2674. description: contains list of domain names you want update
  2675. type: object
  2676. type: object
  2677. summary: Update domain
  2678. /api/v1/edit/fail2ban:
  2679. post:
  2680. responses:
  2681. '401':
  2682. $ref: '#/components/responses/Unauthorized'
  2683. '200':
  2684. content:
  2685. '*/*':
  2686. schema:
  2687. properties:
  2688. log:
  2689. description: contains request object
  2690. items: {}
  2691. type: array
  2692. msg:
  2693. items: {}
  2694. type: array
  2695. type:
  2696. enum:
  2697. - success
  2698. - danger
  2699. - error
  2700. type: string
  2701. type: object
  2702. description: OK
  2703. headers: {}
  2704. tags:
  2705. - Fail2Ban
  2706. description: >-
  2707. Using this endpoint you can edit the Fail2Ban config and black or
  2708. whitelist new ips.
  2709. operationId: Edit Fail2Ban
  2710. requestBody:
  2711. content:
  2712. application/json:
  2713. schema:
  2714. example:
  2715. attr:
  2716. ban_time: '86400'
  2717. blacklist: '10.100.6.5/32,10.100.8.4/32'
  2718. max_attempts: '5'
  2719. netban_ipv4: '24'
  2720. netban_ipv6: '64'
  2721. retry_window: '600'
  2722. whitelist: mailcow.tld
  2723. items: none
  2724. properties:
  2725. attr:
  2726. description: array containing the fail2ban settings
  2727. properties:
  2728. backlist:
  2729. description: the backlisted ips or hostnames separated by comma
  2730. type: string
  2731. ban_time:
  2732. description: the time a ip should be banned
  2733. type: number
  2734. max_attempts:
  2735. description: the maximum numbe of wrong logins before a ip is banned
  2736. type: number
  2737. netban_ipv4:
  2738. description: the networks mask to ban for ipv4
  2739. type: number
  2740. netban_ipv6:
  2741. description: the networks mask to ban for ipv6
  2742. type: number
  2743. retry_window:
  2744. description: >-
  2745. the maximum time in which a ip as to login with false
  2746. credentials to be banned
  2747. type: number
  2748. whitelist:
  2749. description: whitelisted ips or hostnames sepereated by comma
  2750. type: string
  2751. type: object
  2752. items:
  2753. description: has to be none
  2754. type: object
  2755. summary: Edit Fail2Ban
  2756. /api/v1/edit/mailbox:
  2757. post:
  2758. responses:
  2759. '401':
  2760. $ref: '#/components/responses/Unauthorized'
  2761. '200':
  2762. content:
  2763. application/json:
  2764. examples:
  2765. response:
  2766. value:
  2767. - log:
  2768. - mailbox
  2769. - edit
  2770. - mailbox
  2771. - active: '1'
  2772. force_pw_update: '0'
  2773. name: Full name
  2774. password: '*'
  2775. password2: '*'
  2776. quota: '3072'
  2777. sender_acl:
  2778. - default
  2779. - info@domain2.tld
  2780. - domain3.tld
  2781. - '*'
  2782. sogo_access: '1'
  2783. username:
  2784. - info@domain.tld
  2785. - null
  2786. msg:
  2787. - mailbox_modified
  2788. - info@domain.tld
  2789. type: success
  2790. schema:
  2791. properties:
  2792. log:
  2793. description: contains request object
  2794. items: {}
  2795. type: array
  2796. msg:
  2797. items: {}
  2798. type: array
  2799. type:
  2800. enum:
  2801. - success
  2802. - danger
  2803. - error
  2804. type: string
  2805. type: object
  2806. description: OK
  2807. headers: {}
  2808. tags:
  2809. - Mailboxes
  2810. description: >-
  2811. You can update one or more mailboxes per request. You can also send just
  2812. attributes you want to change
  2813. operationId: Update mailbox
  2814. requestBody:
  2815. content:
  2816. application/json:
  2817. schema:
  2818. example:
  2819. attr:
  2820. active: '1'
  2821. force_pw_update: '0'
  2822. name: Full name
  2823. password: ''
  2824. password2: ''
  2825. quota: '3072'
  2826. sender_acl:
  2827. - default
  2828. - info@domain2.tld
  2829. - domain3.tld
  2830. - '*'
  2831. sogo_access: '1'
  2832. items: info@domain.tld
  2833. properties:
  2834. attr:
  2835. properties:
  2836. active:
  2837. description: is mailbox active or not
  2838. type: boolean
  2839. force_pw_update:
  2840. description: force user to change password on next login
  2841. type: boolean
  2842. name:
  2843. description: Full name of the mailbox user
  2844. type: string
  2845. password2:
  2846. description: new mailbox password for confirmation
  2847. type: string
  2848. pasword:
  2849. description: new mailbox password
  2850. type: string
  2851. quota:
  2852. description: mailbox quota
  2853. type: number
  2854. sender_acl:
  2855. description: list of allowed send from addresses
  2856. type: object
  2857. sogo_access:
  2858. description: is access to SOGo webmail active or not
  2859. type: boolean
  2860. type: object
  2861. items:
  2862. description: contains list of mailboxes you want update
  2863. type: object
  2864. type: object
  2865. summary: Update mailbox
  2866. /api/v1/edit/mailq:
  2867. post:
  2868. responses:
  2869. '401':
  2870. $ref: '#/components/responses/Unauthorized'
  2871. '200':
  2872. content:
  2873. application/json:
  2874. examples:
  2875. response:
  2876. value:
  2877. msg: Task completed
  2878. type: success
  2879. description: OK
  2880. headers: {}
  2881. tags:
  2882. - Queue Manager
  2883. description: >-
  2884. Using this API you can flush the current mail queue. This will try to
  2885. deliver all mails currently in it.
  2886. This API uses the command: `postqueue -f`
  2887. operationId: Flush Queue
  2888. requestBody:
  2889. content:
  2890. application/json:
  2891. schema:
  2892. example:
  2893. action: flush
  2894. properties:
  2895. action:
  2896. description: use flush to flush the mail queue
  2897. type: string
  2898. type: object
  2899. summary: Flush Queue
  2900. /api/v1/edit/pushover:
  2901. post:
  2902. responses:
  2903. '401':
  2904. $ref: '#/components/responses/Unauthorized'
  2905. '200':
  2906. content:
  2907. application/json:
  2908. examples:
  2909. response:
  2910. value:
  2911. - log:
  2912. - pushover
  2913. - edit
  2914. - active: '0'
  2915. evaluate_x_prio: '0'
  2916. key: 21e8918e1jksdjcpis712
  2917. only_x_prio: '0'
  2918. senders: ''
  2919. senders_regex: ''
  2920. text: ''
  2921. title: Mail
  2922. token: 9023e2ohcwed27d1idu2
  2923. username:
  2924. - info@domain.tld
  2925. msg: pushover_settings_edited
  2926. type: success
  2927. schema:
  2928. properties:
  2929. log:
  2930. description: contains request object
  2931. items: {}
  2932. type: array
  2933. msg:
  2934. items: {}
  2935. type: array
  2936. type:
  2937. enum:
  2938. - success
  2939. - danger
  2940. - error
  2941. type: string
  2942. type: object
  2943. description: OK
  2944. headers: {}
  2945. tags:
  2946. - Mailboxes
  2947. description: >-
  2948. Using this endpoint it is possible to update the pushover settings for
  2949. mailboxes
  2950. operationId: Update Pushover settings
  2951. requestBody:
  2952. content:
  2953. application/json:
  2954. schema:
  2955. example:
  2956. attr:
  2957. active: '0'
  2958. evaluate_x_prio: '0'
  2959. key: 21e8918e1jksdjcpis712
  2960. only_x_prio: '0'
  2961. senders: ''
  2962. senders_regex: ''
  2963. text: ''
  2964. title: Mail
  2965. token: 9023e2ohcwed27d1idu2
  2966. items: info@domain.tld
  2967. properties:
  2968. attr:
  2969. properties:
  2970. active:
  2971. description: Enables pushover 1 disable pushover 0
  2972. type: number
  2973. evaluate_x_prio:
  2974. description: Send the Push with High priority
  2975. type: number
  2976. key:
  2977. description: Pushover key
  2978. type: string
  2979. only_x_prio:
  2980. description: Only send push for prio mails
  2981. type: number
  2982. senders:
  2983. description: Only send push for emails from these senders
  2984. type: string
  2985. senders_regex:
  2986. description: Regex to match senders for which a push will be send
  2987. type: string
  2988. text:
  2989. description: Custom push noficiation text
  2990. type: string
  2991. title:
  2992. description: Push title
  2993. type: string
  2994. token:
  2995. description: Pushover token
  2996. type: string
  2997. type: object
  2998. items:
  2999. description: contains list of mailboxes you want to delete
  3000. type: object
  3001. type: object
  3002. summary: Update Pushover settings
  3003. /api/v1/edit/quarantine_notification:
  3004. post:
  3005. responses:
  3006. '401':
  3007. $ref: '#/components/responses/Unauthorized'
  3008. '200':
  3009. description: OK
  3010. headers: {}
  3011. tags:
  3012. - Mailboxes
  3013. description: You can update one or more mailboxes per request.
  3014. operationId: Quarantine Notifications
  3015. requestBody:
  3016. content:
  3017. application/json:
  3018. schema:
  3019. example:
  3020. attr:
  3021. quarantine_notification: hourly
  3022. items:
  3023. anyOf:
  3024. - mailbox1@domain.tld
  3025. - mailbox2@domain.tld
  3026. properties:
  3027. attr:
  3028. properties:
  3029. quarantine_notification:
  3030. description: recurrence
  3031. enum:
  3032. - hourly
  3033. - daily
  3034. - weekly
  3035. - never
  3036. type: string
  3037. type: object
  3038. items:
  3039. description: >-
  3040. contains list of mailboxes you want set qurantine
  3041. notifications
  3042. type: object
  3043. type: object
  3044. summary: Quarantine Notifications
  3045. /api/v1/edit/syncjob:
  3046. post:
  3047. responses:
  3048. '401':
  3049. $ref: '#/components/responses/Unauthorized'
  3050. '200':
  3051. content:
  3052. application/json:
  3053. examples:
  3054. response:
  3055. value:
  3056. log:
  3057. - entity
  3058. - action
  3059. - object
  3060. msg:
  3061. - message
  3062. - entity name
  3063. type: success
  3064. schema:
  3065. properties:
  3066. log:
  3067. description: contains request object
  3068. items: {}
  3069. type: array
  3070. msg:
  3071. items: {}
  3072. type: array
  3073. type:
  3074. enum:
  3075. - success
  3076. - danger
  3077. - error
  3078. type: string
  3079. type: object
  3080. description: OK
  3081. headers: {}
  3082. tags:
  3083. - Sync jobs
  3084. description: >-
  3085. You can update one or more sync jobs per request. You can also send just
  3086. attributes you want to change.
  3087. operationId: Update sync job
  3088. requestBody:
  3089. content:
  3090. application/json:
  3091. schema:
  3092. example:
  3093. attr:
  3094. active: '1'
  3095. automap: '1'
  3096. custom_params: ''
  3097. delete1: '0'
  3098. delete2: '0'
  3099. delete2duplicates: '1'
  3100. enc1: SSL
  3101. exclude: (?i)spam|(?i)junk
  3102. host1: imap.server.tld
  3103. maxage: '0'
  3104. maxbytespersecond: '0'
  3105. mins_interval: '20'
  3106. password1: supersecret
  3107. port1: '993'
  3108. skipcrossduplicates: '0'
  3109. subfolder2: External
  3110. subscribeall: '1'
  3111. timeout1: '600'
  3112. timeout2: '600'
  3113. user1: username
  3114. items: '1'
  3115. properties:
  3116. attr:
  3117. properties:
  3118. active:
  3119. description: Is sync job active
  3120. type: boolean
  3121. automap:
  3122. description: >-
  3123. Try to automap folders ("Sent items", "Sent" => "Sent"
  3124. etc.)
  3125. type: boolean
  3126. custom_params:
  3127. description: Custom parameters passed to imapsync command
  3128. type: string
  3129. delete1:
  3130. description: Delete from source when completed
  3131. type: boolean
  3132. delete2:
  3133. description: Delete messages on destination that are not on source
  3134. type: boolean
  3135. delete2duplicates:
  3136. description: Delete duplicates on destination
  3137. type: boolean
  3138. enc1:
  3139. description: Encryption
  3140. enum:
  3141. - TLS
  3142. - SSL
  3143. - PLAIN
  3144. type: string
  3145. exclude:
  3146. description: Exclude objects (regex)
  3147. type: string
  3148. host1:
  3149. description: Hostname
  3150. type: string
  3151. maxage:
  3152. description: >-
  3153. Maximum age of messages in days that will be polled from
  3154. remote (0 = ignore age)
  3155. type: number
  3156. maxbytespersecond:
  3157. description: Max. bytes per second (0 = unlimited)
  3158. type: number
  3159. mins_interval:
  3160. description: Interval (min)
  3161. type: number
  3162. password1:
  3163. description: Password
  3164. type: string
  3165. port1:
  3166. description: Port
  3167. type: string
  3168. skipcrossduplicates:
  3169. description: >-
  3170. Skip duplicate messages across folders (first come,
  3171. first serve)
  3172. type: boolean
  3173. subfolder2:
  3174. description: >-
  3175. Sync into subfolder on destination (empty = do not use
  3176. subfolder)
  3177. type: string
  3178. subscribeall:
  3179. description: Subscribe all folders
  3180. type: boolean
  3181. timeout1:
  3182. description: Timeout for connection to remote host
  3183. type: number
  3184. timeout2:
  3185. description: Timeout for connection to local host
  3186. type: number
  3187. user1:
  3188. description: Username
  3189. type: string
  3190. type: object
  3191. items:
  3192. description: contains list of aliases you want update
  3193. type: object
  3194. type: object
  3195. summary: Update sync job
  3196. /api/v1/edit/user-acl:
  3197. post:
  3198. responses:
  3199. '401':
  3200. $ref: '#/components/responses/Unauthorized'
  3201. '200':
  3202. content:
  3203. application/json:
  3204. examples:
  3205. response:
  3206. value:
  3207. - log:
  3208. - acl
  3209. - edit
  3210. - user
  3211. - user_acl:
  3212. - spam_alias
  3213. - tls_policy
  3214. - spam_score
  3215. - spam_policy
  3216. - delimiter_action
  3217. - syncjobs
  3218. - eas_reset
  3219. - quarantine
  3220. - sogo_profile_reset
  3221. - quarantine_attachments
  3222. - quarantine_notification
  3223. - app_passwds
  3224. - pushover
  3225. username:
  3226. - info@domain.tld
  3227. msg:
  3228. - acl_saved
  3229. - info@domain.tld
  3230. type: success
  3231. schema:
  3232. properties:
  3233. log:
  3234. description: contains request object
  3235. items: {}
  3236. type: array
  3237. msg:
  3238. items: {}
  3239. type: array
  3240. type:
  3241. enum:
  3242. - success
  3243. - danger
  3244. - error
  3245. type: string
  3246. type: object
  3247. description: OK
  3248. headers: {}
  3249. tags:
  3250. - Mailboxes
  3251. description: Using this endpoints its possible to update the ACL's for mailboxes
  3252. operationId: Update mailbox ACL
  3253. requestBody:
  3254. content:
  3255. application/json:
  3256. schema:
  3257. example:
  3258. attr:
  3259. user_acl:
  3260. - spam_alias
  3261. - tls_policy
  3262. - spam_score
  3263. - spam_policy
  3264. - delimiter_action
  3265. - syncjobs
  3266. - eas_reset
  3267. - quarantine
  3268. - sogo_profile_reset
  3269. - quarantine_attachments
  3270. - quarantine_notification
  3271. - app_passwds
  3272. - pushover
  3273. items: info@domain.tld
  3274. properties:
  3275. attr:
  3276. properties:
  3277. user_acl:
  3278. description: contains a list of active user acls
  3279. type: object
  3280. type: object
  3281. items:
  3282. description: contains list of mailboxes you want to delete
  3283. type: object
  3284. type: object
  3285. summary: Update mailbox ACL
  3286. '/api/v1/get/alias/{id}':
  3287. get:
  3288. parameters:
  3289. - description: id of entry you want to get
  3290. example: all
  3291. in: path
  3292. name: id
  3293. required: true
  3294. schema:
  3295. enum:
  3296. - all
  3297. - '1'
  3298. - '2'
  3299. - '5'
  3300. - '10'
  3301. type: string
  3302. - description: e.g. api-key-string
  3303. example: api-key-string
  3304. in: header
  3305. name: X-API-Key
  3306. required: false
  3307. schema:
  3308. type: string
  3309. responses:
  3310. '401':
  3311. $ref: '#/components/responses/Unauthorized'
  3312. '200':
  3313. content:
  3314. application/json:
  3315. examples:
  3316. response:
  3317. value:
  3318. - active: '✔'
  3319. active_int: 1
  3320. address: alias@domain.tld
  3321. created: '2019-04-04 19:29:49'
  3322. domain: domain.tld
  3323. goto: destination@domain.tld
  3324. id: 6
  3325. in_primary_domain: ''
  3326. is_catch_all: 0
  3327. modified: null
  3328. private_comment: null
  3329. public_comment: null
  3330. - active: '✔'
  3331. active_int: 1
  3332. address: '@domain.tld'
  3333. created: '2019-04-27 13:42:39'
  3334. domain: domain.tld
  3335. goto: destination@domain.tld
  3336. id: 10
  3337. in_primary_domain: ''
  3338. is_catch_all: 1
  3339. modified: null
  3340. private_comment: null
  3341. public_comment: null
  3342. description: OK
  3343. headers: {}
  3344. tags:
  3345. - Aliases
  3346. description: You can list mailbox aliases existing in system.
  3347. operationId: Get aliases
  3348. summary: Get aliases
  3349. '/api/v1/get/app-passwd/all/{mailbox}':
  3350. get:
  3351. parameters:
  3352. - description: mailbox of entry you want to get
  3353. example: hello@mailcow.email
  3354. in: path
  3355. name: mailbox
  3356. required: true
  3357. schema:
  3358. enum:
  3359. - hello@mailcow.email
  3360. type: string
  3361. - description: e.g. api-key-string
  3362. example: api-key-string
  3363. in: header
  3364. name: X-API-Key
  3365. required: false
  3366. schema:
  3367. type: string
  3368. responses:
  3369. '401':
  3370. $ref: '#/components/responses/Unauthorized'
  3371. '200':
  3372. content:
  3373. application/json:
  3374. examples:
  3375. response:
  3376. value:
  3377. - active: '✓'
  3378. active_int: 1
  3379. created: '2019-12-21 16:04:55'
  3380. domain: mailcow.email
  3381. id: 2
  3382. mailbox: hello@mailcow.email
  3383. modified: null
  3384. name: emclient
  3385. description: OK
  3386. headers: {}
  3387. tags:
  3388. - App Passwords
  3389. description: >-
  3390. Using this endpoint you can get all app passwords from a specific
  3391. mailbox.
  3392. operationId: Get App Password
  3393. summary: Get App Password
  3394. '/api/v1/get/bcc/{id}':
  3395. get:
  3396. parameters:
  3397. - description: id of entry you want to get
  3398. example: all
  3399. in: path
  3400. name: id
  3401. required: true
  3402. schema:
  3403. enum:
  3404. - all
  3405. - '1'
  3406. - '2'
  3407. - '5'
  3408. - '10'
  3409. type: string
  3410. - description: e.g. api-key-string
  3411. example: api-key-string
  3412. in: header
  3413. name: X-API-Key
  3414. required: false
  3415. schema:
  3416. type: string
  3417. responses:
  3418. '401':
  3419. $ref: '#/components/responses/Unauthorized'
  3420. '200':
  3421. content:
  3422. application/json:
  3423. examples:
  3424. response:
  3425. value:
  3426. - active: '✓'
  3427. active_int: 1
  3428. bcc_dest: bcc@awesomecow.tld
  3429. created: '2019-10-02 21:44:34'
  3430. domain: mailcow.tld
  3431. id: 3
  3432. local_dest: '@mailcow.tld'
  3433. modified: null
  3434. type: sender
  3435. description: OK
  3436. headers: {}
  3437. tags:
  3438. - Address Rewriting
  3439. description: Using this endpoint you can get all BCC maps.
  3440. operationId: Get BCC Map
  3441. summary: Get BCC Map
  3442. '/api/v1/get/dkim/{domain}':
  3443. get:
  3444. parameters:
  3445. - description: name of domain
  3446. in: path
  3447. name: domain
  3448. required: true
  3449. schema:
  3450. type: string
  3451. - description: e.g. api-key-string
  3452. example: api-key-string
  3453. in: header
  3454. name: X-API-Key
  3455. required: false
  3456. schema:
  3457. type: string
  3458. responses:
  3459. '401':
  3460. $ref: '#/components/responses/Unauthorized'
  3461. '200':
  3462. content:
  3463. application/json:
  3464. examples:
  3465. response:
  3466. value:
  3467. dkim_selector: dkim
  3468. dkim_txt: >-
  3469. v=DKIM1;k=rsa;t=s;s=email;p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA21tUSjyasQy/hJmVjPnlRGfzx6TPhYj8mXY9DVOzSAE64Gddw/GnE/GcCR6WXNT23u9q4zPnz1IPoNt5kFOps8vg/iNqrcH++494noaZuYyFPPFnebkfryO4EvEyxC/c66qts+gnOUml+M8uv5WObBJld2gG12jLwFM0263J/N6J8LuUsaXOB2uCIfx8Nf4zjuJ6Ieez2uyHNK5dXjDLfKA4mTr+EEK6W6e34M4KN1liWM6r9Oy5S1FlLrD42VpURxxBZtBiEtaJPEKSQuk6GQz8ihu7W20Yr53tyCdaORu8dhxXVUWVf+GjuuMEdAmQCjYkarXdYCrt56Psw703kwIDAQAB
  3470. length: '2048'
  3471. privkey: ''
  3472. pubkey: >-
  3473. MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA21tUSjyasQy/hJmVjPnlRGfzx6TPhYj8mXY9DVOzSAE64Gddw/GnE/GcCR6WXNT23u9q4zPnz1IPoNt5kFOps8vg/iNqrcH++494noaZuYyFPPFnebkfryO4EvEyxC/c66qts+gnOUml+M8uv5WObBJld2gG12jLwFM0263J/N6J8LuUsaXOB2uCIfx8Nf4zjuJ6Ieez2uyHNK5dXjDLfKA4mTr+EEK6W6e34M4KN1liWM6r9Oy5S1FlLrD42VpURxxBZtBiEtaJPEKSQuk6GQz8ihu7W20Yr53tyCdaORu8dhxXVUWVf+GjuuMEdAmQCjYkarXdYCrt56Psw703kwIDAQAB
  3474. description: OK
  3475. headers: {}
  3476. tags:
  3477. - DKIM
  3478. description: >-
  3479. Using this endpoint you can get the DKIM public key for a specific
  3480. domain.
  3481. operationId: Get DKIM Key
  3482. summary: Get DKIM Key
  3483. /api/v1/get/domain-admin/all:
  3484. get:
  3485. responses:
  3486. '401':
  3487. $ref: '#/components/responses/Unauthorized'
  3488. '200':
  3489. content:
  3490. application/json:
  3491. examples:
  3492. response:
  3493. value:
  3494. - active: '✓'
  3495. active_int: 1
  3496. created: '2019-10-02 10:29:41'
  3497. selected_domains:
  3498. - mailcow.tld
  3499. tfa_active: '✕'
  3500. tfa_active_int: null
  3501. unselected_domains:
  3502. - awesomemailcow.de
  3503. - mailcowisgreat.de
  3504. username: testadmin
  3505. description: OK
  3506. headers: {}
  3507. tags:
  3508. - Domain admin
  3509. description: ''
  3510. operationId: Get Domain Admins
  3511. summary: Get Domain Admins
  3512. '/api/v1/get/domain/{id}':
  3513. get:
  3514. parameters:
  3515. - description: id of entry you want to get
  3516. example: all
  3517. in: path
  3518. name: id
  3519. required: true
  3520. schema:
  3521. enum:
  3522. - all
  3523. - mailcow.tld
  3524. type: string
  3525. - description: e.g. api-key-string
  3526. example: api-key-string
  3527. in: header
  3528. name: X-API-Key
  3529. required: false
  3530. schema:
  3531. type: string
  3532. responses:
  3533. '401':
  3534. $ref: '#/components/responses/Unauthorized'
  3535. '200':
  3536. content:
  3537. application/json:
  3538. examples:
  3539. response:
  3540. value:
  3541. - active: '✔'
  3542. active_int: 1
  3543. aliases_in_domain: 0
  3544. aliases_left: 400
  3545. backupmx: '✘'
  3546. backupmx_int: 0
  3547. bytes_total: '5076666944'
  3548. def_new_mailbox_quota: 3221225472
  3549. def_quota_for_mbox: 3221225472
  3550. description: Some description
  3551. domain_name: domain.tld
  3552. gal: '✘'
  3553. gal_int: 0
  3554. lang: en
  3555. max_new_mailbox_quota: 10737418240
  3556. max_num_aliases_for_domain: 400
  3557. max_num_mboxes_for_domain: 10
  3558. max_quota_for_domain: 10737418240
  3559. max_quota_for_mbox: 10737418240
  3560. mboxes_in_domain: 0
  3561. mboxes_left: 10
  3562. msgs_total: '172440'
  3563. quota_used_in_domain: '0'
  3564. relay_all_recipients: '✘'
  3565. relay_all_recipients_int: 0
  3566. relayhost: '0'
  3567. rl: false
  3568. - active: '✔'
  3569. active_int: 1
  3570. aliases_in_domain: 0
  3571. aliases_left: 400
  3572. backupmx: '✔'
  3573. backupmx_int: 1
  3574. bytes_total: '5076666944'
  3575. def_new_mailbox_quota: 3221225472
  3576. def_quota_for_mbox: 3221225472
  3577. description: domain description
  3578. domain_name: domain2.tld
  3579. gal: '✘'
  3580. gal_int: 0
  3581. lang: cs
  3582. max_new_mailbox_quota: 10737418240
  3583. max_num_aliases_for_domain: 400
  3584. max_num_mboxes_for_domain: 10
  3585. max_quota_for_domain: 10737418240
  3586. max_quota_for_mbox: 10737418240
  3587. mboxes_in_domain: 0
  3588. mboxes_left: 10
  3589. msgs_total: '172440'
  3590. quota_used_in_domain: '0'
  3591. relay_all_recipients: '✘'
  3592. relay_all_recipients_int: 0
  3593. relayhost: '0'
  3594. rl: false
  3595. description: OK
  3596. headers: {}
  3597. tags:
  3598. - Domains
  3599. description: You can list all domains existing in system.
  3600. operationId: Get domains
  3601. summary: Get domains
  3602. /api/v1/get/fail2ban:
  3603. get:
  3604. responses:
  3605. '401':
  3606. $ref: '#/components/responses/Unauthorized'
  3607. '200':
  3608. content:
  3609. application/json:
  3610. examples:
  3611. response:
  3612. value:
  3613. ban_time: 604800
  3614. blacklist: |-
  3615. 45.82.153.37/32
  3616. 92.118.38.52/32
  3617. max_attempts: 1
  3618. netban_ipv4: 32
  3619. netban_ipv6: 128
  3620. perm_bans:
  3621. - 45.82.153.37/32
  3622. - 92.118.38.52/32
  3623. retry_window: 7200
  3624. whitelist: 1.1.1.1
  3625. description: OK
  3626. headers: {}
  3627. tags:
  3628. - Fail2Ban
  3629. description: Gets the current Fail2Ban configuration.
  3630. operationId: Get Fail2Ban Config
  3631. summary: Get Fail2Ban Config
  3632. /api/v1/get/fwdhost/all:
  3633. get:
  3634. responses:
  3635. '401':
  3636. $ref: '#/components/responses/Unauthorized'
  3637. '200':
  3638. content:
  3639. application/json:
  3640. examples:
  3641. response:
  3642. value:
  3643. - host: 5.1.76.202
  3644. keep_spam: 'yes'
  3645. source: hosted.mailcow.de
  3646. - host: '2a00:f820:417::202'
  3647. keep_spam: 'yes'
  3648. source: hosted.mailcow.de
  3649. description: OK
  3650. headers: {}
  3651. tags:
  3652. - Fordwarding Hosts
  3653. description: You can list all Forwarding Hosts in your mailcow.
  3654. operationId: Get Forwarding Hosts
  3655. summary: Get Forwarding Hosts
  3656. '/api/v1/get/logs/acme/{count}':
  3657. get:
  3658. parameters:
  3659. - description: Number of logs to return
  3660. in: path
  3661. name: count
  3662. required: true
  3663. schema:
  3664. type: number
  3665. - description: e.g. api-key-string
  3666. example: api-key-string
  3667. in: header
  3668. name: X-API-Key
  3669. required: false
  3670. schema:
  3671. type: string
  3672. responses:
  3673. '401':
  3674. $ref: '#/components/responses/Unauthorized'
  3675. '200':
  3676. content:
  3677. application/json:
  3678. examples:
  3679. response:
  3680. value:
  3681. - message: >-
  3682. Certificate validation done, neither changed nor due for
  3683. renewal, sleeping for another day.
  3684. time: '1569927728'
  3685. description: OK
  3686. headers: {}
  3687. tags:
  3688. - Logs
  3689. description: >-
  3690. This Api endpoint lists all ACME logs from issued Lets Enctypts
  3691. certificates.
  3692. Tip: You can limit how many logs you want to get by using `/<count>` at
  3693. the end of the api url.
  3694. operationId: Get ACME logs
  3695. summary: Get ACME logs
  3696. '/api/v1/get/logs/api/{count}':
  3697. get:
  3698. parameters:
  3699. - description: Number of logs to return
  3700. in: path
  3701. name: count
  3702. required: true
  3703. schema:
  3704. type: number
  3705. - description: e.g. api-key-string
  3706. example: api-key-string
  3707. in: header
  3708. name: X-API-Key
  3709. required: false
  3710. schema:
  3711. type: string
  3712. responses:
  3713. '401':
  3714. $ref: '#/components/responses/Unauthorized'
  3715. '200':
  3716. content:
  3717. application/json:
  3718. examples:
  3719. response:
  3720. value:
  3721. - data: ''
  3722. method: GET
  3723. remote: 1.1.1.1
  3724. time: 1569939001
  3725. uri: /api/v1/get/logs/api/2
  3726. description: OK
  3727. headers: {}
  3728. tags:
  3729. - Logs
  3730. description: >-
  3731. This Api endpoint lists all Api logs.
  3732. Tip: You can limit how many logs you want to get by using `/<count>` at
  3733. the end of the api url.
  3734. operationId: Get Api logs
  3735. summary: Get Api logs
  3736. '/api/v1/get/logs/autodiscover/{count}':
  3737. get:
  3738. parameters:
  3739. - description: Number of logs to return
  3740. in: path
  3741. name: count
  3742. required: true
  3743. schema:
  3744. type: number
  3745. - description: e.g. api-key-string
  3746. example: api-key-string
  3747. in: header
  3748. name: X-API-Key
  3749. required: false
  3750. schema:
  3751. type: string
  3752. responses:
  3753. '401':
  3754. $ref: '#/components/responses/Unauthorized'
  3755. '200':
  3756. content:
  3757. application/json:
  3758. examples:
  3759. response:
  3760. value:
  3761. - service: activesync
  3762. time: 1569684212
  3763. ua: >-
  3764. Microsoft Office/16.0 (Windows NT 6.2; MAPICPL
  3765. 16.0.11328; Pro)
  3766. user: awesome@mailcow.de
  3767. description: OK
  3768. headers: {}
  3769. tags:
  3770. - Logs
  3771. description: >-
  3772. This Api endpoint lists all Autodiscover logs.
  3773. Tip: You can limit how many logs you want to get by using `/<count>` at
  3774. the end of the api url.
  3775. operationId: Get Autodiscover logs
  3776. summary: Get Autodiscover logs
  3777. '/api/v1/get/logs/dovecot/{count}':
  3778. get:
  3779. parameters:
  3780. - description: Number of logs to return
  3781. in: path
  3782. name: count
  3783. required: true
  3784. schema:
  3785. type: number
  3786. - description: e.g. api-key-string
  3787. example: api-key-string
  3788. in: header
  3789. name: X-API-Key
  3790. required: false
  3791. schema:
  3792. type: string
  3793. responses:
  3794. '401':
  3795. $ref: '#/components/responses/Unauthorized'
  3796. '200':
  3797. content:
  3798. application/json:
  3799. examples:
  3800. response:
  3801. value:
  3802. - message: >-
  3803. managesieve-login: Disconnected (no auth attempts in 0
  3804. secs): user=<>, rip=172.22.1.3, lip=172.22.1.250
  3805. priority: info
  3806. program: dovecot
  3807. time: '1569938740'
  3808. description: OK
  3809. headers: {}
  3810. tags:
  3811. - Logs
  3812. description: >-
  3813. This Api endpoint lists all Dovecot logs.
  3814. Tip: You can limit how many logs you want to get by using `/<count>` at
  3815. the end of the api url.
  3816. operationId: Get Dovecot logs
  3817. summary: Get Dovecot logs
  3818. '/api/v1/get/logs/netfilter/{count}':
  3819. get:
  3820. parameters:
  3821. - description: Number of logs to return
  3822. in: path
  3823. name: count
  3824. required: true
  3825. schema:
  3826. type: number
  3827. - description: e.g. api-key-string
  3828. example: api-key-string
  3829. in: header
  3830. name: X-API-Key
  3831. required: false
  3832. schema:
  3833. type: string
  3834. responses:
  3835. '401':
  3836. $ref: '#/components/responses/Unauthorized'
  3837. '200':
  3838. content:
  3839. application/json:
  3840. examples:
  3841. response:
  3842. value:
  3843. - message: 'Whitelist was changed, it has 1 entries'
  3844. priority: info
  3845. time: 1569754911
  3846. - message: Add host/network 1.1.1.1/32 to blacklist
  3847. priority: crit
  3848. time: 1569754911
  3849. description: OK
  3850. headers: {}
  3851. tags:
  3852. - Logs
  3853. description: >-
  3854. This Api endpoint lists all Netfilter logs.
  3855. Tip: You can limit how many logs you want to get by using `/<count>` at
  3856. the end of the api url.
  3857. operationId: Get Netfilter logs
  3858. summary: Get Netfilter logs
  3859. '/api/v1/get/logs/postfix/{count}':
  3860. get:
  3861. parameters:
  3862. - description: Number of logs to return
  3863. in: path
  3864. name: count
  3865. required: true
  3866. schema:
  3867. type: number
  3868. - description: e.g. api-key-string
  3869. example: api-key-string
  3870. in: header
  3871. name: X-API-Key
  3872. required: false
  3873. schema:
  3874. type: string
  3875. responses:
  3876. '401':
  3877. $ref: '#/components/responses/Unauthorized'
  3878. '200':
  3879. content:
  3880. application/json:
  3881. examples:
  3882. response:
  3883. value:
  3884. - message: 'EF1711500458: removed'
  3885. priority: info
  3886. program: postfix/qmgr
  3887. time: '1569937433'
  3888. description: OK
  3889. headers: {}
  3890. tags:
  3891. - Logs
  3892. description: >-
  3893. This Api endpoint lists all Postfix logs.
  3894. Tip: You can limit how many logs you want to get by using `/<count>` at
  3895. the end of the api url.
  3896. operationId: Get Postfix logs
  3897. summary: Get Postfix logs
  3898. '/api/v1/get/logs/ratelimited/{count}':
  3899. get:
  3900. parameters:
  3901. - description: Number of logs to return
  3902. in: path
  3903. name: count
  3904. required: true
  3905. schema:
  3906. type: number
  3907. - description: e.g. api-key-string
  3908. example: api-key-string
  3909. in: header
  3910. name: X-API-Key
  3911. required: false
  3912. schema:
  3913. type: string
  3914. responses:
  3915. '401':
  3916. $ref: '#/components/responses/Unauthorized'
  3917. '200':
  3918. content:
  3919. application/json:
  3920. examples:
  3921. response:
  3922. value:
  3923. - from: awesome@mailcow.email
  3924. header_from: '"Awesome" <awesome@mailcow.email>'
  3925. header_subject: Mailcow is amazing
  3926. ip: 172.22.1.248
  3927. message_id: 6a-5d892500-7-240abd80@90879116
  3928. qid: E3CF91500458
  3929. rcpt: hello@mailcow.email
  3930. rl_hash: RLsdz3tuabozgd4oacbdh8kc78
  3931. rl_info: mailcow(RLsdz3tuabozgd4oacbdh8kc78)
  3932. rl_name: mailcow
  3933. time: 1569269003
  3934. user: awesome@mailcow.email
  3935. description: OK
  3936. headers: {}
  3937. tags:
  3938. - Logs
  3939. description: >-
  3940. This Api endpoint lists all Ratelimit logs.
  3941. Tip: You can limit how many logs you want to get by using `/<count>` at
  3942. the end of the api url.
  3943. operationId: Get Ratelimit logs
  3944. summary: Get Ratelimit logs
  3945. '/api/v1/get/logs/rspamd-history/{count}':
  3946. get:
  3947. parameters:
  3948. - description: Number of logs to return
  3949. in: path
  3950. name: count
  3951. required: true
  3952. schema:
  3953. type: number
  3954. - description: e.g. api-key-string
  3955. example: api-key-string
  3956. in: header
  3957. name: X-API-Key
  3958. required: false
  3959. schema:
  3960. type: string
  3961. responses:
  3962. '401':
  3963. $ref: '#/components/responses/Unauthorized'
  3964. '200':
  3965. description: OK
  3966. headers: {}
  3967. tags:
  3968. - Logs
  3969. description: >-
  3970. This Api endpoint lists all Rspamd logs.
  3971. Tip: You can limit how many logs you want to get by using `/<count>` at
  3972. the end of the api url.
  3973. operationId: Get Rspamd logs
  3974. summary: Get Rspamd logs
  3975. '/api/v1/get/logs/sogo/{count}':
  3976. get:
  3977. parameters:
  3978. - description: Number of logs to return
  3979. in: path
  3980. name: count
  3981. required: true
  3982. schema:
  3983. type: number
  3984. - description: e.g. api-key-string
  3985. example: api-key-string
  3986. in: header
  3987. name: X-API-Key
  3988. required: false
  3989. schema:
  3990. type: string
  3991. responses:
  3992. '401':
  3993. $ref: '#/components/responses/Unauthorized'
  3994. '200':
  3995. content:
  3996. application/json:
  3997. examples:
  3998. response:
  3999. value:
  4000. - message: >-
  4001. [109]:
  4002. mailcowdockerized_watchdog-mailcow_1.mailcowdockerized_mailcow-network
  4003. "GET /SOGo.index/ HTTP/1.1" 200 2531/0 0.005 - - 0
  4004. priority: notice
  4005. program: sogod
  4006. time: '1569938874'
  4007. description: OK
  4008. headers: {}
  4009. tags:
  4010. - Logs
  4011. description: >-
  4012. This Api endpoint lists all SOGo logs.
  4013. Tip: You can limit how many logs you want to get by using `/<count>` at
  4014. the end of the api url.
  4015. operationId: Get SOGo logs
  4016. summary: Get SOGo logs
  4017. '/api/v1/get/logs/watchdog/{count}':
  4018. get:
  4019. parameters:
  4020. - description: Number of logs to return
  4021. in: path
  4022. name: count
  4023. required: true
  4024. schema:
  4025. type: number
  4026. - description: e.g. api-key-string
  4027. example: api-key-string
  4028. in: header
  4029. name: X-API-Key
  4030. required: false
  4031. schema:
  4032. type: string
  4033. responses:
  4034. '401':
  4035. $ref: '#/components/responses/Unauthorized'
  4036. '200':
  4037. content:
  4038. application/json:
  4039. examples:
  4040. response:
  4041. value:
  4042. - hpdiff: '0'
  4043. hpnow: '1'
  4044. hptotal: '1'
  4045. lvl: '100'
  4046. service: Fail2ban
  4047. time: '1569938958'
  4048. - hpdiff: '0'
  4049. hpnow: '5'
  4050. hptotal: '5'
  4051. lvl: '100'
  4052. service: Rspamd
  4053. time: '1569938956'
  4054. description: OK
  4055. headers: {}
  4056. tags:
  4057. - Logs
  4058. description: >-
  4059. This Api endpoint lists all Watchdog logs.
  4060. Tip: You can limit how many logs you want to get by using `/<count>` at
  4061. the end of the api url.
  4062. operationId: Get Watchdog logs
  4063. summary: Get Watchdog logs
  4064. '/api/v1/get/mailbox/{id}':
  4065. get:
  4066. parameters:
  4067. - description: id of entry you want to get
  4068. example: all
  4069. in: path
  4070. name: id
  4071. required: true
  4072. schema:
  4073. enum:
  4074. - all
  4075. - user@domain.tld
  4076. type: string
  4077. - description: e.g. api-key-string
  4078. example: api-key-string
  4079. in: header
  4080. name: X-API-Key
  4081. required: false
  4082. schema:
  4083. type: string
  4084. responses:
  4085. '401':
  4086. $ref: '#/components/responses/Unauthorized'
  4087. '200':
  4088. content:
  4089. application/json:
  4090. examples:
  4091. response:
  4092. value:
  4093. - active: '&#10004;'
  4094. active_int: 1
  4095. attributes:
  4096. force_pw_update: '0'
  4097. mailbox_format: 'maildir:'
  4098. quarantine_notification: never
  4099. sogo_access: '1'
  4100. tls_enforce_in: '0'
  4101. tls_enforce_out: '0'
  4102. domain: doman3.tld
  4103. is_relayed: 0
  4104. local_part: info
  4105. max_new_quota: 10737418240
  4106. messages: 0
  4107. name: Full name
  4108. percent_class: success
  4109. percent_in_use: 0
  4110. quota: 3221225472
  4111. quota_used: 0
  4112. rl: false
  4113. spam_aliases: 0
  4114. username: info@doman3.tld
  4115. description: OK
  4116. headers: {}
  4117. tags:
  4118. - Mailboxes
  4119. description: You can list all mailboxes existing in system.
  4120. operationId: Get mailboxes
  4121. summary: Get mailboxes
  4122. /api/v1/get/mailq/all:
  4123. get:
  4124. responses:
  4125. '401':
  4126. $ref: '#/components/responses/Unauthorized'
  4127. '200':
  4128. content:
  4129. application/json:
  4130. examples:
  4131. response:
  4132. value:
  4133. - arrival_time: 1570091234
  4134. message_size: 1848
  4135. queue_id: B98C6260CA1
  4136. queue_name: incoming
  4137. recipients:
  4138. - recipient@awesomecow.tld
  4139. sender: sender@mailcow.tld
  4140. description: OK
  4141. headers: {}
  4142. tags:
  4143. - Queue Manager
  4144. description: Get the current mail queue and everything it contains.
  4145. operationId: Get Queue
  4146. summary: Get Queue
  4147. '/api/v1/get/oauth2-client/{id}':
  4148. get:
  4149. parameters:
  4150. - description: id of entry you want to get
  4151. example: all
  4152. in: path
  4153. name: id
  4154. required: true
  4155. schema:
  4156. enum:
  4157. - all
  4158. - '1'
  4159. - '2'
  4160. - '5'
  4161. - '10'
  4162. type: string
  4163. - description: e.g. api-key-string
  4164. example: api-key-string
  4165. in: header
  4166. name: X-API-Key
  4167. required: false
  4168. schema:
  4169. type: string
  4170. responses:
  4171. '401':
  4172. $ref: '#/components/responses/Unauthorized'
  4173. '200':
  4174. content:
  4175. application/json:
  4176. examples:
  4177. response:
  4178. value:
  4179. - client_id: 17c76aaa88c0
  4180. client_secret: 73fc668a88147e32a31ff80c
  4181. grant_types: null
  4182. id: 1
  4183. redirect_uri: 'https://mailcow.tld'
  4184. scope: profile
  4185. user_id: null
  4186. description: OK
  4187. headers: {}
  4188. tags:
  4189. - oAuth Clients
  4190. description: Using this endpoint you can get all oAuth clients.
  4191. operationId: Get oAuth Clients
  4192. summary: Get oAuth Clients
  4193. '/api/v1/get/policy_bl_domain/{domain}':
  4194. get:
  4195. parameters:
  4196. - description: name of domain
  4197. in: path
  4198. name: domain
  4199. required: true
  4200. schema:
  4201. type: string
  4202. - description: e.g. api-key-string
  4203. example: api-key-string
  4204. in: header
  4205. name: X-API-Key
  4206. required: false
  4207. schema:
  4208. type: string
  4209. responses:
  4210. '401':
  4211. $ref: '#/components/responses/Unauthorized'
  4212. '200':
  4213. content:
  4214. application/json:
  4215. examples:
  4216. response:
  4217. value:
  4218. - object: domain.tld
  4219. prefid: 2
  4220. value: '*@baddomain.tld'
  4221. description: OK
  4222. headers: {}
  4223. tags:
  4224. - Domain antispam policies
  4225. description: You can list all blacklist policies per domain.
  4226. operationId: List blacklist domain policy
  4227. summary: List blacklist domain policy
  4228. '/api/v1/get/policy_wl_domain/{domain}':
  4229. get:
  4230. parameters:
  4231. - description: name of domain
  4232. in: path
  4233. name: domain
  4234. required: true
  4235. schema:
  4236. type: string
  4237. - description: e.g. api-key-string
  4238. example: api-key-string
  4239. in: header
  4240. name: X-API-Key
  4241. required: false
  4242. schema:
  4243. type: string
  4244. responses:
  4245. '401':
  4246. $ref: '#/components/responses/Unauthorized'
  4247. '200':
  4248. content:
  4249. application/json:
  4250. examples:
  4251. response:
  4252. value:
  4253. - object: domain.tld
  4254. prefid: 1
  4255. value: '*@gooddomain.tld'
  4256. description: OK
  4257. headers: {}
  4258. tags:
  4259. - Domain antispam policies
  4260. description: You can list all whitelist policies per domain.
  4261. operationId: List whitelist domain policy
  4262. summary: List whitelist domain policy
  4263. /api/v1/get/quarantine/all:
  4264. get:
  4265. responses:
  4266. '401':
  4267. $ref: '#/components/responses/Unauthorized'
  4268. '200':
  4269. content:
  4270. application/json:
  4271. examples:
  4272. response:
  4273. value:
  4274. created: 1572688831
  4275. id: 33
  4276. notified: 1
  4277. qid: 8224615004C1
  4278. rcpt: admin@domain.tld
  4279. score: 15.48
  4280. sender: bounces@send.domain.tld
  4281. subject: mailcow is awesome
  4282. virus_flag: 0
  4283. description: OK
  4284. headers: {}
  4285. tags:
  4286. - Quarantine
  4287. description: Get all mails that are currently in Quarantine.
  4288. operationId: Get mails in Quarantine
  4289. summary: Get mails in Quarantine
  4290. '/api/v1/get/recipient_map/{id}':
  4291. get:
  4292. parameters:
  4293. - description: id of entry you want to get
  4294. example: all
  4295. in: path
  4296. name: id
  4297. required: true
  4298. schema:
  4299. enum:
  4300. - all
  4301. - '1'
  4302. - '2'
  4303. - '5'
  4304. - '10'
  4305. type: string
  4306. - description: e.g. api-key-string
  4307. example: api-key-string
  4308. in: header
  4309. name: X-API-Key
  4310. required: false
  4311. schema:
  4312. type: string
  4313. responses:
  4314. '401':
  4315. $ref: '#/components/responses/Unauthorized'
  4316. '200':
  4317. content:
  4318. application/json:
  4319. examples:
  4320. response:
  4321. value:
  4322. - active: '&#10003;'
  4323. active_int: 1
  4324. created: '2019-10-02 22:06:29'
  4325. id: 3
  4326. modified: null
  4327. recipient_map_new: target@mailcow.tld
  4328. recipient_map_old: recipient@mailcow.tld
  4329. description: OK
  4330. headers: {}
  4331. tags:
  4332. - Address Rewriting
  4333. description: Using this endpoint you can get all recipient maps.
  4334. operationId: Get Recipient Map
  4335. summary: Get Recipient Map
  4336. '/api/v1/get/relayhost/{id}':
  4337. get:
  4338. parameters:
  4339. - description: id of entry you want to get
  4340. example: all
  4341. in: path
  4342. name: id
  4343. required: true
  4344. schema:
  4345. enum:
  4346. - all
  4347. - '1'
  4348. - '2'
  4349. - '5'
  4350. - '10'
  4351. type: string
  4352. - description: e.g. api-key-string
  4353. example: api-key-string
  4354. in: header
  4355. name: X-API-Key
  4356. required: false
  4357. schema:
  4358. type: string
  4359. responses:
  4360. '401':
  4361. $ref: '#/components/responses/Unauthorized'
  4362. '200':
  4363. content:
  4364. application/json:
  4365. examples:
  4366. response:
  4367. value:
  4368. - active: '&#10003;'
  4369. active_int: 1
  4370. hostname: 'mailcow.tld:25'
  4371. id: 1
  4372. password: supersecurepassword
  4373. password_short: tes...
  4374. used_by_domains: ''
  4375. username: testuser
  4376. description: OK
  4377. headers: {}
  4378. tags:
  4379. - Routing
  4380. description: Using this endpoint you can get all Sender-Dependent Transports.
  4381. operationId: Get Sender-Dependent Transports
  4382. summary: Get Sender-Dependent Transports
  4383. /api/v1/get/resource/all:
  4384. get:
  4385. responses:
  4386. '401':
  4387. $ref: '#/components/responses/Unauthorized'
  4388. '200':
  4389. content:
  4390. application/json:
  4391. examples:
  4392. response:
  4393. value:
  4394. - active: '&#10003;'
  4395. active_int: 1
  4396. description: test
  4397. domain: mailcow.tld
  4398. kind: location
  4399. local_part: test
  4400. multiple_bookings: 0
  4401. name: test@mailcow.tld
  4402. description: OK
  4403. headers: {}
  4404. tags:
  4405. - Resources
  4406. description: Using this endpoint you can get all Resources.
  4407. operationId: Get Resources
  4408. summary: Get Resources
  4409. '/api/v1/get/rl-mbox/{mailbox}':
  4410. get:
  4411. parameters:
  4412. - description: name of mailbox or all
  4413. in: path
  4414. name: mailbox
  4415. required: true
  4416. schema:
  4417. type: string
  4418. - description: e.g. api-key-string
  4419. example: api-key-string
  4420. in: header
  4421. name: X-API-Key
  4422. required: false
  4423. schema:
  4424. type: string
  4425. responses:
  4426. '401':
  4427. $ref: '#/components/responses/Unauthorized'
  4428. '200':
  4429. content:
  4430. application/json:
  4431. examples:
  4432. response:
  4433. value:
  4434. - frame: s
  4435. mailbox: leon@mailcow.tld
  4436. value: '5'
  4437. - frame: s
  4438. mailbox: lisa@mailcow.tld
  4439. value: '3'
  4440. description: OK
  4441. headers: {}
  4442. tags:
  4443. - Ratelimits
  4444. description: >-
  4445. Using this endpoint you can get the ratelimits for a certain mailbox.
  4446. You can use all for all mailboxes.
  4447. operationId: Get mailbox ratelimits
  4448. summary: Get mailbox ratelimits
  4449. '/api/v1/get/rl-domain/{domain}':
  4450. get:
  4451. parameters:
  4452. - description: name of domain or all
  4453. in: path
  4454. name: domain
  4455. required: true
  4456. schema:
  4457. type: string
  4458. - description: e.g. api-key-string
  4459. example: api-key-string
  4460. in: header
  4461. name: X-API-Key
  4462. required: false
  4463. schema:
  4464. type: string
  4465. responses:
  4466. '401':
  4467. $ref: '#/components/responses/Unauthorized'
  4468. '200':
  4469. content:
  4470. application/json:
  4471. examples:
  4472. response:
  4473. value:
  4474. - frame: s
  4475. domain: domain.tld
  4476. value: '5'
  4477. - frame: s
  4478. mailbox: domain2.tld
  4479. value: '3'
  4480. description: OK
  4481. headers: {}
  4482. tags:
  4483. - Ratelimits
  4484. description: >-
  4485. Using this endpoint you can get the ratelimits for a certain domains.
  4486. You can use all for all domain.
  4487. operationId: Get domain ratelimits
  4488. summary: Get domain ratelimits
  4489. /api/v1/edit/rl-mbox/:
  4490. post:
  4491. responses:
  4492. '401':
  4493. $ref: '#/components/responses/Unauthorized'
  4494. '200':
  4495. content:
  4496. application/json:
  4497. examples:
  4498. response:
  4499. value:
  4500. - type: success
  4501. log:
  4502. - ratelimit
  4503. - edit
  4504. - mailbox
  4505. - object:
  4506. - info@domain.tld
  4507. rl_value: "10"
  4508. rl_frame: h
  4509. msg:
  4510. - rl_saved
  4511. - info@domain.tld
  4512. schema:
  4513. properties:
  4514. log:
  4515. description: contains request object
  4516. items: {}
  4517. type: array
  4518. msg:
  4519. items: {}
  4520. type: array
  4521. type:
  4522. enum:
  4523. - success
  4524. - danger
  4525. - error
  4526. type: string
  4527. type: object
  4528. description: OK
  4529. headers: {}
  4530. tags:
  4531. - Ratelimits
  4532. description: >-
  4533. Using this endpoint you can edit the ratelimits for a certain mailbox.
  4534. operationId: Edit mailbox ratelimits
  4535. requestBody:
  4536. content:
  4537. application/json:
  4538. schema:
  4539. example:
  4540. attr:
  4541. - rl_vlaue: "10"
  4542. rl_frame: "h"
  4543. items: info@domain.tld
  4544. properties:
  4545. attr:
  4546. properties:
  4547. rl_frame:
  4548. description: contains the frame for the ratelimit h,s,m
  4549. type: string
  4550. rl_vlaue:
  4551. description: contains the rate for the ratelimit 10,20,50,1
  4552. type: number
  4553. type: object
  4554. items:
  4555. description: contains list of mailboxes you want to edit the ratelimit of
  4556. type: object
  4557. type: object
  4558. summary: Edit mailbox ratelimits
  4559. /api/v1/edit/rl-domain/:
  4560. post:
  4561. responses:
  4562. '401':
  4563. $ref: '#/components/responses/Unauthorized'
  4564. '200':
  4565. content:
  4566. application/json:
  4567. examples:
  4568. response:
  4569. value:
  4570. - type: success
  4571. - log:
  4572. - ratelimit
  4573. - edit
  4574. - domain
  4575. - object:
  4576. - domain.tld
  4577. rl_value: "50"
  4578. rl_frame: "h"
  4579. msg:
  4580. - rl_saved
  4581. - domain.tld
  4582. schema:
  4583. properties:
  4584. log:
  4585. description: contains request object
  4586. items: {}
  4587. type: array
  4588. msg:
  4589. items: {}
  4590. type: array
  4591. type:
  4592. enum:
  4593. - success
  4594. - danger
  4595. - error
  4596. type: string
  4597. type: object
  4598. description: OK
  4599. headers: {}
  4600. tags:
  4601. - Ratelimits
  4602. description: >-
  4603. Using this endpoint you can edit the ratelimits for a certain domains.
  4604. operationId: Edit domain ratelimits
  4605. requestBody:
  4606. content:
  4607. application/json:
  4608. schema:
  4609. example:
  4610. attr:
  4611. - rl_vlaue: "10"
  4612. rl_frame: "h"
  4613. items: domain.tld
  4614. properties:
  4615. attr:
  4616. properties:
  4617. rl_frame:
  4618. description: contains the frame for the ratelimit h,s,m
  4619. type: string
  4620. rl_vlaue:
  4621. description: contains the rate for the ratelimit 10,20,50,1
  4622. type: number
  4623. type: object
  4624. items:
  4625. description: contains list of domains you want to edit the ratelimit of
  4626. type: object
  4627. type: object
  4628. summary: Edit domain ratelimits
  4629. /api/v1/get/status/containers:
  4630. get:
  4631. responses:
  4632. '401':
  4633. $ref: '#/components/responses/Unauthorized'
  4634. '200':
  4635. content:
  4636. application/json:
  4637. examples:
  4638. response:
  4639. value:
  4640. acme-mailcow:
  4641. container: acme-mailcow
  4642. image: 'mailcow/acme:1.63'
  4643. started_at: '2019-12-22T21:00:08.270660275Z'
  4644. state: running
  4645. type: info
  4646. clamd-mailcow:
  4647. container: clamd-mailcow
  4648. image: 'mailcow/clamd:1.35'
  4649. started_at: '2019-12-22T21:00:01.622856172Z'
  4650. state: running
  4651. type: info
  4652. dockerapi-mailcow:
  4653. container: dockerapi-mailcow
  4654. image: 'mailcow/dockerapi:1.36'
  4655. started_at: '2019-12-22T20:59:59.984797808Z'
  4656. state: running
  4657. type: info
  4658. dovecot-mailcow:
  4659. container: dovecot-mailcow
  4660. image: 'mailcow/dovecot:1.104'
  4661. started_at: '2019-12-22T21:00:08.988680259Z'
  4662. state: running
  4663. type: info
  4664. ipv6nat-mailcow:
  4665. container: ipv6nat-mailcow
  4666. image: robbertkl/ipv6nat
  4667. started_at: '2019-12-22T21:06:37.273225445Z'
  4668. state: running
  4669. type: info
  4670. memcached-mailcow:
  4671. container: memcached-mailcow
  4672. image: 'memcached:alpine'
  4673. started_at: '2019-12-22T20:59:58.0907785Z'
  4674. state: running
  4675. type: info
  4676. mysql-mailcow:
  4677. container: mysql-mailcow
  4678. image: 'mariadb:10.3'
  4679. started_at: '2019-12-22T21:00:02.201937528Z'
  4680. state: running
  4681. type: info
  4682. netfilter-mailcow:
  4683. container: netfilter-mailcow
  4684. image: 'mailcow/netfilter:1.31'
  4685. started_at: '2019-12-22T21:00:09.851559297Z'
  4686. state: running
  4687. type: info
  4688. nginx-mailcow:
  4689. container: nginx-mailcow
  4690. image: 'nginx:mainline-alpine'
  4691. started_at: '2019-12-22T21:00:12.9843038Z'
  4692. state: running
  4693. type: info
  4694. olefy-mailcow:
  4695. container: olefy-mailcow
  4696. image: 'mailcow/olefy:1.2'
  4697. started_at: '2019-12-22T20:59:59.676259274Z'
  4698. state: running
  4699. type: info
  4700. php-fpm-mailcow:
  4701. container: php-fpm-mailcow
  4702. image: 'mailcow/phpfpm:1.55'
  4703. started_at: '2019-12-22T21:00:00.955808957Z'
  4704. state: running
  4705. type: info
  4706. postfix-mailcow:
  4707. container: postfix-mailcow
  4708. image: 'mailcow/postfix:1.44'
  4709. started_at: '2019-12-22T21:00:07.186717617Z'
  4710. state: running
  4711. type: info
  4712. redis-mailcow:
  4713. container: redis-mailcow
  4714. image: 'redis:5-alpine'
  4715. started_at: '2019-12-22T20:59:56.827166834Z'
  4716. state: running
  4717. type: info
  4718. rspamd-mailcow:
  4719. container: rspamd-mailcow
  4720. image: 'mailcow/rspamd:1.56'
  4721. started_at: '2019-12-22T21:00:12.456075355Z'
  4722. state: running
  4723. type: info
  4724. sogo-mailcow:
  4725. container: sogo-mailcow
  4726. image: 'mailcow/sogo:1.65'
  4727. started_at: '2019-12-22T20:59:58.382274592Z'
  4728. state: running
  4729. type: info
  4730. solr-mailcow:
  4731. container: solr-mailcow
  4732. image: 'mailcow/solr:1.7'
  4733. started_at: '2019-12-22T20:59:59.635413798Z'
  4734. state: running
  4735. type: info
  4736. unbound-mailcow:
  4737. container: unbound-mailcow
  4738. image: 'mailcow/unbound:1.10'
  4739. started_at: '2019-12-22T20:59:58.760595825Z'
  4740. state: running
  4741. type: info
  4742. watchdog-mailcow:
  4743. container: watchdog-mailcow
  4744. image: 'mailcow/watchdog:1.65'
  4745. started_at: '2019-12-22T20:59:56.028660382Z'
  4746. state: running
  4747. type: info
  4748. description: OK
  4749. headers: {}
  4750. tags:
  4751. - Status
  4752. description: >-
  4753. Using this endpoint you can get the status of all containers and when
  4754. hey where started and a few other details.
  4755. operationId: Get container status
  4756. summary: Get container status
  4757. /api/v1/get/status/solr:
  4758. get:
  4759. responses:
  4760. '401':
  4761. $ref: '#/components/responses/Unauthorized'
  4762. '200':
  4763. content:
  4764. application/json:
  4765. examples:
  4766. response:
  4767. value:
  4768. solr_documents: null
  4769. solr_enabled: false
  4770. solr_size: null
  4771. type: info
  4772. description: OK
  4773. headers: {}
  4774. tags:
  4775. - Status
  4776. description: >-
  4777. Using this endpoint you can get the status of all containers and when
  4778. hey where started and a few other details.
  4779. operationId: Get solr status
  4780. summary: Get solr status
  4781. /api/v1/get/status/vmail:
  4782. get:
  4783. responses:
  4784. '401':
  4785. $ref: '#/components/responses/Unauthorized'
  4786. '200':
  4787. content:
  4788. application/json:
  4789. examples:
  4790. response:
  4791. value:
  4792. disk: /dev/mapper/mail--vg-root
  4793. total: 41G
  4794. type: info
  4795. used: 11G
  4796. used_percent: 28%
  4797. description: OK
  4798. headers: {}
  4799. tags:
  4800. - Status
  4801. description: >-
  4802. Using this endpoint you can get the status of the vmail and the amount
  4803. of used storage.
  4804. operationId: Get vmail status
  4805. summary: Get vmail status
  4806. /api/v1/get/syncjobs/all/no_log:
  4807. get:
  4808. responses:
  4809. '401':
  4810. $ref: '#/components/responses/Unauthorized'
  4811. '200':
  4812. content:
  4813. application/json:
  4814. examples:
  4815. response:
  4816. value:
  4817. - active: '&#10003;'
  4818. active_int: 1
  4819. authmd51: 0
  4820. authmech1: PLAIN
  4821. automap: 1
  4822. created: '2019-05-22 11:37:25'
  4823. custom_params: ''
  4824. delete1: 0
  4825. delete2: 0
  4826. delete2duplicates: 1
  4827. domain2: ''
  4828. enc1: TLS
  4829. exclude: (?i)spam|(?i)junk
  4830. host1: imap.server.tld
  4831. id: 1
  4832. is_running: 0
  4833. last_run: '2019-05-22 11:40:02'
  4834. log: ''
  4835. maxage: 0
  4836. maxbytespersecond: '0'
  4837. mins_interval: '20'
  4838. modified: '2019-05-22 11:40:02'
  4839. port1: 993
  4840. regextrans2: ''
  4841. skipcrossduplicates: 0
  4842. subfolder2: External
  4843. subscribeall: 1
  4844. timeout1: 600
  4845. timeout2: 600
  4846. user1: username
  4847. user2: mailbox@domain.tld
  4848. description: OK
  4849. headers: {}
  4850. tags:
  4851. - Sync jobs
  4852. description: You can list all syn jobs existing in system.
  4853. operationId: Get sync jobs
  4854. summary: Get sync jobs
  4855. '/api/v1/get/tls-policy-map/{id}':
  4856. get:
  4857. parameters:
  4858. - description: id of entry you want to get
  4859. example: all
  4860. in: path
  4861. name: id
  4862. required: true
  4863. schema:
  4864. enum:
  4865. - all
  4866. - '1'
  4867. - '2'
  4868. - '5'
  4869. - '10'
  4870. type: string
  4871. - description: e.g. api-key-string
  4872. example: api-key-string
  4873. in: header
  4874. name: X-API-Key
  4875. required: false
  4876. schema:
  4877. type: string
  4878. responses:
  4879. '401':
  4880. $ref: '#/components/responses/Unauthorized'
  4881. '200':
  4882. content:
  4883. application/json:
  4884. examples:
  4885. response:
  4886. value:
  4887. - parameters: ''
  4888. active: '&#10003;'
  4889. active_int: 1
  4890. created: '2019-10-03 08:42:12'
  4891. dest: mailcow.tld
  4892. id: 1
  4893. modified: null
  4894. policy: encrypt
  4895. description: OK
  4896. headers: {}
  4897. tags:
  4898. - Outgoing TLS Policy Map Overrides
  4899. description: Using this endpoint you can get all TLS policy map override maps.
  4900. operationId: Get TLS Policy Map
  4901. summary: Get TLS Policy Map
  4902. '/api/v1/get/transport/{id}':
  4903. get:
  4904. parameters:
  4905. - description: id of entry you want to get
  4906. example: all
  4907. in: path
  4908. name: id
  4909. required: true
  4910. schema:
  4911. enum:
  4912. - all
  4913. - '1'
  4914. - '2'
  4915. - '5'
  4916. - '10'
  4917. type: string
  4918. - description: e.g. api-key-string
  4919. example: api-key-string
  4920. in: header
  4921. name: X-API-Key
  4922. required: false
  4923. schema:
  4924. type: string
  4925. responses:
  4926. '401':
  4927. $ref: '#/components/responses/Unauthorized'
  4928. '200':
  4929. content:
  4930. application/json:
  4931. examples:
  4932. response:
  4933. value:
  4934. - active: '&#10003;'
  4935. active_int: 1
  4936. destination: example.org
  4937. id: 1
  4938. lookup_mx: '&#10005;'
  4939. lookup_mx_int: 0
  4940. nexthop: 'host:25'
  4941. password: supersecurepw
  4942. password_short: sup...
  4943. username: testuser
  4944. description: OK
  4945. headers: {}
  4946. tags:
  4947. - Routing
  4948. description: Using this endpoint you can get all Transport Maps.
  4949. operationId: Get Transport Maps
  4950. summary: Get Transport Maps
  4951. /api/v1/edit/spam-score/:
  4952. post:
  4953. responses:
  4954. '401':
  4955. $ref: '#/components/responses/Unauthorized'
  4956. '200':
  4957. content:
  4958. application/json:
  4959. examples:
  4960. response:
  4961. value:
  4962. - type: success
  4963. log:
  4964. - mailbox
  4965. - edit
  4966. - spam_score
  4967. - username:
  4968. - info@domain.tld
  4969. spam_score: '8,15'
  4970. msg:
  4971. - mailbox_modified
  4972. - info@domain.tld
  4973. schema:
  4974. properties:
  4975. log:
  4976. description: contains request object
  4977. items: {}
  4978. type: array
  4979. msg:
  4980. items: {}
  4981. type: array
  4982. type:
  4983. enum:
  4984. - success
  4985. - danger
  4986. - error
  4987. type: string
  4988. type: object
  4989. description: OK
  4990. headers: {}
  4991. tags:
  4992. - Mailboxes
  4993. description: >-
  4994. Using this endpoint you can edit the spam filter score for a certain mailbox.
  4995. operationId: Edit mailbox spam filter score
  4996. requestBody:
  4997. content:
  4998. application/json:
  4999. schema:
  5000. example:
  5001. - items:
  5002. - info@domain.tld
  5003. attr:
  5004. spam_score: '8,15'
  5005. summary: Edit mailbox spam filter score
  5006. tags:
  5007. - name: Domains
  5008. description: You can create antispam whitelist and blacklist policies
  5009. - name: Domain antispam policies
  5010. description: You can edit the Domain Antispam policies
  5011. - name: Mailboxes
  5012. description: You can manage mailboxes
  5013. - name: Aliases
  5014. description: You can manage aliases
  5015. - name: Sync jobs
  5016. description: Using Syncjobs you can sync your mails with other email servers
  5017. - name: Fordwarding Hosts
  5018. description: Forwarding Hosts enable you to send mail using a relay
  5019. - name: Logs
  5020. description: Get all mailcow sysmte logs
  5021. - name: Queue Manager
  5022. description: Manage the postfix mailque
  5023. - name: Quarantine
  5024. description: Check what emails went to quarantine
  5025. - name: Fail2Ban
  5026. description: Manage the Netfilter fail2ban options
  5027. - name: DKIM
  5028. description: Manage DKIM keys
  5029. - name: Domain admin
  5030. description: Create or udpdate domain admin users
  5031. - name: Address Rewriting
  5032. description: Create BBC maps or recipient maps
  5033. - name: Outgoing TLS Policy Map Overrides
  5034. description: Force global TLS policys
  5035. - name: oAuth Clients
  5036. description: Use mailcow as a oAuth server
  5037. - name: Routing
  5038. description: Define your own email routes
  5039. - name: Resources
  5040. description: Manage ressources
  5041. - name: App Passwords
  5042. description: Create mailbox app passwords
  5043. - name: Status
  5044. description: Get the status of your cow
  5045. - name: Ratelimits
  5046. description: Edit domain ratelimits