Advertisement
Guest User

cinemapress_mail

a guest
Mar 26th, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 20.44 KB | None | 0 0
  1.  
  2. root@example:~# docker stop mail
  3. mail
  4. root@example:~# docker rm -f mail
  5. mail
  6. root@example:~# docker rmi -f cinemapress/mail
  7. Untagged: cinemapress/mail:latest
  8. Untagged: cinemapress/mail@sha256:65d3c96e27733761a83ac7db90c52870611a65c8fd338d6d077552b4f1085f1a
  9. Deleted: sha256:a2c2e768321965f591291da807d040611abec8b544a7337af2f5e816f15905ec
  10. Deleted: sha256:00d066652406b87273d6f94bd3b17da44f2fcdd7ec5810a89f9dab77a5ab82e1
  11. Deleted: sha256:566ba02597ed16627b1bb705e0a5c12244907b7e992ca933b78896528712612a
  12. Deleted: sha256:ae3d16c739658addff4a16c9875167db57c08ba24dbe0004a903386718c29267
  13. Deleted: sha256:56475b85210525ed07c52e8d49dbc6f69323a260aa06b76c2df9e72827c6020b
  14. Deleted: sha256:957a2ce2fcda57f6de2d5b5f0af88f8f273b38e0beb5e25a6066c621bcb0e701
  15. Deleted: sha256:327754eacb2065073e9418469d091042ea702db756dc52c0559061c6bc9e7835
  16. Deleted: sha256:b9828262ca4cc3c6263115b398970cb66b3cf7d46aaca65ecc5375778294573d
  17. Deleted: sha256:ca80c765c70fd389800cbe543768d86ebb92889400ca753c1f523c9b5c40353c
  18. Deleted: sha256:9a255fce44766e4daba34c6baa67e761430ef862fdfcc9f1e47fea0776a0e5e2
  19. Deleted: sha256:26db0ebd3c7b42c09cc89c00d7cf528e75490b056566ef64b84c7cd3a184b2e8
  20. Deleted: sha256:5557c2b6aa926dc1388292621e940207d219587397da084afac44cef5bb2fa4c
  21. Deleted: sha256:50bf034b3c89974f2f0cf28f9ce1c252d9cf27a02bd071fe379ca639400c4984
  22. Deleted: sha256:42cdb80b527abcc08559076025e0dcd63a64001104010a3234aafc63cae8dc36
  23. Deleted: sha256:6f8f8271620a4e59cb809eda07f097f4e45c61e2eab0bd1041b02f093e856995
  24. Deleted: sha256:b28d71e7a747a198b57bce9d36609ce94111ad70f3a3bdff93064f6c6a7196bb
  25. Deleted: sha256:613343930491433d1f1edf76e10eb4e2cf12a957e9d97c07bc900a917af64126
  26. Deleted: sha256:11b4a46873338423ab124f2ec4f28d3e9eb25a3ea0671147f751ad9296279e02
  27. Deleted: sha256:df2648ee63837e084e4e44865e5f1374208bc15325e124d214d27869f1235536
  28. Deleted: sha256:f5b87bef9a05c5ff70e1ed615e0dcbb4553ec0cb3ec6c07e996e557643c462a7
  29. Deleted: sha256:39c0a3786b884757f31b3f64b2c21b774b05c4bdf0691d1dae70f10f49c19ccf
  30. Deleted: sha256:288ee21fa681b11b62ed10a53e89ca85fcc57a56fee87decb7ad9c7562bd4a21
  31. Deleted: sha256:c070bce54d0589e79d4c02f04d4886acdbd401348b75aecd6dfe27193939bebd
  32. Deleted: sha256:944a50e8069285e15f4522e5e5e7501277afeac2b8fccf410d0fce397357deb5
  33. Deleted: sha256:46bb121cf77fdeaaab651d7749b865b80df388c386c31f29d7708175f9e10990
  34. Deleted: sha256:63ae42e44e95293b28f50e1a41374689d0566cbd7f0b0caab0c421f8b4b762a6
  35. Deleted: sha256:46c1f780543262ab5774f83b41106f366e64b7b20a953182200b880b8761aaa6
  36. Deleted: sha256:6b6467e9429da271c32d566585434d284832fd16416aa35f1b85d6435d4ef111
  37. Deleted: sha256:52c4f88984f4c24350238d1aaebe23a39a9c60eb2704ee60b0b5f4a23113dc88
  38. Deleted: sha256:905b284f4a809bd2330c9f97178ff4a3f53a30dfeead3711514b3b593d3b0c16
  39. Deleted: sha256:c456091707e335d3a58bd64af214fabc2bb88657417f21f53e012186be63e000
  40. Deleted: sha256:f76dbea2ee49c3ca37382cba31525281dd863eae99b78a124803a73ddc6017f1
  41. Deleted: sha256:432e972d50b835ec383f254f60f6c38bfcda9363579b479dccd2afd6af2f8ee2
  42. Deleted: sha256:53a84f3dcfe691ea846f8dd31358f95d0a8b4a7867ac93a3a9fa25d18c88923b
  43. Deleted: sha256:fe7129b343f73bd04faa6c7d2a175339d65f0ab09bf138211cf4685fb2d56e65
  44. Deleted: sha256:618b4471406c21dd68f4a5a7144b1264d66e4bcbe9cd0e30749d975c818d9afa
  45. Deleted: sha256:dac28a390e7faade1c695e953e4d4bb057b9cdfe35da506e3eab685270a7ea5b
  46. Deleted: sha256:190c5fc2fe03fc34e028988507cb8a3bb16f934ff9dd9c63b405793ded949722
  47. Deleted: sha256:b264a9b301ff296cf7717a63008b2e774107d99622d07bec24d6e3c580c16e2f
  48. Deleted: sha256:f124cae28578740a9766a852f4dfa7f3efee91b94a4141baf152e3cd807f58c9
  49. Deleted: sha256:4f7c01f7b51b27625eff0f6357df39c65239576ce0df08d36e82f815029c1c45
  50. Deleted: sha256:94d2253d16a5719086adb6a386f42385d2265ba393581a5ca1a5d355650b3197
  51. Deleted: sha256:cb42413394c4059335228c137fe884ff3ab8946a014014309676c25e3ac86864
  52. root@example:~# cinemapress mailserver example.org
  53. Unable to find image 'cinemapress/mail:latest' locally
  54. latest: Pulling from cinemapress/mail
  55. a076a628af6f: Pulling fs layer
  56. b5afddf182ca: Pulling fs layer
  57. 5ebe891e3bb9: Pulling fs layer
  58. 6884ed77b465: Waiting
  59. a7f3ed9aa5e0: Pulling fs layer
  60. 67f2c647b931: Waiting
  61. 957fffd1ae7c: Waiting
  62. 1c4b0df1cd9e: Waiting
  63. 7273a7428794: Waiting
  64. dada312e98ce: Waiting
  65. 0d5d2dca50c0: Waiting
  66. 6c8bf8f4a6ea: Waiting
  67. 6d7fde925ef0: Waiting
  68. 9a1a40f74889: Waiting
  69. bc616c82c456: Waiting
  70. b8b44592d63b: Waiting
  71. c7fc93c40b71: Waiting
  72. 089df0c1dbe2: Waiting
  73. 16754d43405a: Waiting
  74. b15fd8b176ef: Pull complete
  75. 81fc63e1f721: Pull complete
  76. 0f937ab04b2b: Pull complete
  77. 900f6f23b9c9: Pull complete
  78. ca4fc3440b50: Pull complete
  79. aaaf32a49af9: Pull complete
  80. 403966b19ce8: Pull complete
  81. a695b896a262: Pull complete
  82. 6f67ef3bb964: Pull complete
  83. 664061e4a837: Pull complete
  84. b5b701be8c14: Pull complete
  85. 537f6a09b583: Pull complete
  86. 20f27a6d7613: Pull complete
  87. 21ea0759530b: Pull complete
  88. a2f5899740ab: Pull complete
  89. 96716172574f: Pull complete
  90. 147d9a1127de: Pull complete
  91. 6e747da52806: Pull complete
  92. 6bd2149387e1: Pull complete
  93. 8ea006e405a1: Pull complete
  94. 85a41f71d6e9: Pull complete
  95. 255c9cc3b759: Pull complete
  96. 3ed37aecf3d0: Pull complete
  97. Digest: sha256:65d3c96e27733761a83ac7db90c52870611a65c8fd338d6d077552b4f1085f1a
  98. Status: Downloaded newer image for cinemapress/mail:latest
  99. 284f545610ea97119fadcfdeafa82b443112773488e48ff64269d2c6c0aed144
  100.  
  101. ------------------------------------------------------------------
  102. -----------------[ MAIL SERVER example.org STARTED ]----------------
  103. ------------------------------------------------------------------
  104. Type:     A
  105. Name:     mail.example.org
  106. Content:  IP of your server
  107. ------------------------------------------------------------------
  108. Type:     A
  109. Name:     imap.example.org
  110. Content:  IP of your server
  111. ------------------------------------------------------------------
  112. Type:     A
  113. Name:     smtp.example.org
  114. Content:  IP of your server
  115. ------------------------------------------------------------------
  116. Type:     MX
  117. Name:     example.org
  118. Content:  mail.example.org
  119. Priority: 1
  120. ------------------------------------------------------------------
  121. Type:     TXT
  122. Name:     example.org
  123. Content:  v=spf1 mx -all
  124. ------------------------------------------------------------------
  125.  
  126. root@example:~# cinemapress ms help
  127. SETUP(1)
  128.  
  129. NAME
  130.     setup.sh - docker-mailserver administration script
  131.  
  132. SYNOPSIS
  133.     ./setup.sh [ OPTIONS... ] COMMAND [ help | ARGUMENTS... ]
  134.  
  135.     COMMAND := { email | alias | quota | config | relay | debug } SUBCOMMAND
  136.  
  137. DESCRIPTION
  138.     This is the main administration script that you use for all interactions with your
  139.     mail server. Setup, configuration and much more is done with this script.
  140.  
  141.     Please note that the script executes most of the commands inside the container itself.
  142.     If the image was not found, this script will pull the :latest tag of
  143.     mailserver/docker-mailserver. This tag refers to the latest release,
  144.     see the tagging convention in the README under
  145.     https://github.com/docker-mailserver/docker-mailserver/blob/master/README.md
  146.  
  147.     You will be able to see detailed information about the script you're invoking and
  148.    its arguments by appending help after your command. Currently, this
  149.    does not work with all scripts.
  150.  
  151. VERSION
  152.    The current version of this script is backwards compatible with versions of
  153.    docker-mailserver after 8.0.1. In case that there is not a more recent release,
  154.    this script is currently only working with the :edge tag.
  155.  
  156.    You can download the script for your release by substituting TAG from the
  157.    following URL, where TAG looks like 'vX.X.X':
  158.    https://raw.githubusercontent.com/docker-mailserver/docker-mailserver/TAG/setup.sh
  159.  
  160. OPTIONS
  161.    Config path, container or image adjustments
  162.        -i IMAGE_NAME
  163.            Provides the name of the docker-mailserver image. The default value is
  164.            docker.io/mailserver/docker-mailserver:latest
  165.  
  166.        -c CONTAINER_NAME
  167.            Provides the name of the running container.
  168.  
  169.        -p PATH
  170.            Provides the config folder path. The default is
  171.            /usr/bin/config/
  172.  
  173.    SELinux
  174.        -z
  175.            Allows container access to the bind mount content that is shared among
  176.            multiple containers on a SELinux-enabled host.
  177.  
  178.        -Z
  179.            Allows container access to the bind mount content that is private and
  180.            unshared with other containers on a SELinux-enabled host.
  181.  
  182. [SUB]COMMANDS
  183.    COMMAND email :=
  184.        /usr/bin/mailcinema email add <EMAIL ADDRESS> [<PASSWORD>]
  185.        /usr/bin/mailcinema email update <EMAIL ADDRESS> [<PASSWORD>]
  186.        /usr/bin/mailcinema email del [ OPTIONS... ] <EMAIL ADDRESS>
  187.        /usr/bin/mailcinema email restrict <add|del|list> <send|receive> [<EMAIL ADDRESS>]
  188.        /usr/bin/mailcinema email list
  189.  
  190.    COMMAND alias :=
  191.        /usr/bin/mailcinema alias add <EMAIL ADDRESS> <RECIPIENT>
  192.        /usr/bin/mailcinema alias del <EMAIL ADDRESS> <RECIPIENT>
  193.        /usr/bin/mailcinema alias list
  194.  
  195.    COMMAND quota :=
  196.        /usr/bin/mailcinema quota set <EMAIL ADDRESS> [<QUOTA>]
  197.        /usr/bin/mailcinema quota del <EMAIL ADDRESS>
  198.  
  199.    COMMAND config :=
  200.        /usr/bin/mailcinema config dkim [ ARGUMENTS... ]
  201.        /usr/bin/mailcinema config ssl <FQDN> (ATTENTION: This is deprecated and will be removed soon.)
  202.  
  203.    COMMAND relay :=
  204.        /usr/bin/mailcinema relay add-domain <DOMAIN> <HOST> [<PORT>]
  205.        /usr/bin/mailcinema relay add-auth <DOMAIN> <USERNAME> [<PASSWORD>]
  206.        /usr/bin/mailcinema relay exclude-domain <DOMAIN>
  207.  
  208.    COMMAND debug :=
  209.        /usr/bin/mailcinema debug fetchmail
  210.        /usr/bin/mailcinema debug fail2ban [unban <IP>]
  211.        /usr/bin/mailcinema debug show-mail-logs
  212.        /usr/bin/mailcinema debug inspect
  213.        /usr/bin/mailcinema debug login <COMMANDS>
  214.  
  215. EXAMPLES
  216.    ./setup.sh email add test@domain.tld
  217.        Add the email account test@domain.tld. You will be prompted
  218.        to input a password afterwards since no password was supplied.
  219.  
  220.    ./setup.sh config dkim keysize 2048 domain 'whoami.com,whoareyou.org'
  221.        Creates keys of length 2048 but in an LDAP setup where domains are not known to
  222.        Postfix by default, so you need to provide them yourself in a comma-separated list.
  223.  
  224.    ./setup.sh config dkim help
  225.        This will provide you with a detailed explanation on how to use the
  226.        config dkim command, showing what arguments can be passed and what they do.
  227.  
  228. EXIT STATUS
  229.    Exit status is 0 if the command was successful. If there was an unexpected error, an error
  230.    message is shown describing the error. In case of an error, the script will exit with exit
  231.    status 1.
  232.  
  233. root@example:~# cinemapress ms email add support@example.org
  234.  
  235. root@example:~# cinemapress ms email update support@example.org
  236.  
  237. root@example:~# cinemapress ms email list
  238. support@example.org
  239.  
  240. root@example:~# cinemapress ms email del support@example.org
  241. Do you want to delete the mailbox as well (removing all mails) ? [Y/n] Y
  242. Mailbox directory '/var/mail/example.org/support' did not exist.
  243. Error :: No valid address:
  244. Aborting.
  245.  
  246. root@example:~# cinemapress ms config dkim
  247. OPEN-DKIM(8)
  248.  
  249. NAME
  250.    open-dkim - configure DomainKeys Identified Mail (DKIM)
  251.  
  252. SYNOPSIS
  253.    ./setup.sh config dkim [ OPTIONS... ]
  254.  
  255. DESCRIPTION
  256.    Configures DKIM keys. OPTIONS can be used to configure a more complex setup.
  257.    LDAP setups require these options.
  258.  
  259. OPTIONS
  260.    Generic Program Information
  261.        help       Print the usage information.
  262.  
  263.    Configuration adjustments
  264.        keysize    Set the size of the keys to be generated. Possible are 1024, 2024 and 4096 (default).
  265.        selector   Set a manual selector (default is 'mail') for the key. (ATTENTION: NOT IMPLEMENTED YET!)
  266.        domain     Provide the domain(s) for which keys are to be generated.
  267.  
  268. EXAMPLES
  269.    ./setup.sh config dkim size 2048
  270.        Creates keys of length 2048 bit in a default setup where domains are obtained from
  271.        your accounts.
  272.  
  273.    ./setup.sh config dkim size 2048 selector 2021-dkim
  274.        Creates keys of length 2048 bit in a default setup where domains are obtained from
  275.        your accounts. The DKIM selector used is '2021-dkim'.
  276.  
  277.    ./setup.sh config dkim size 2048 selector 2021-dkim domain 'whoami.com,whoareyou.org'
  278.        Appropriate for an LDAP setup. Creates keys of length 2048 bit in a default setup
  279.        where domains are obtained from your accounts. The DKIM selector used is '2021-dkim'.
  280.        The domains for which DKIM keys are generated are 'whoami.com' and 'whoareyou.org'.
  281.  
  282. EXIT STATUS
  283.    Exit status is 0 if command was successful. If wrong arguments are provided or arguments contain
  284.    errors, the script will exit early with exit status 2.
  285.  
  286.  
  287. Unknown options  . Aborting.
  288.  
  289. ––– UNCHECKED ERROR
  290.  – script    = setup.sh
  291.  – function  = _docker_image / ${CRI} run --rm -v "${CONFIG_PATH}:/tmp/docker-mailserver${USING_SELINUX}" "${USE_TTY}" "${IMAGE_NAME}" "${@}"
  292.  – line      = 235
  293.  – exit code = 2
  294.  
  295. Make sure you use a version of this script that matches
  296. the version / tag of docker-mailserver. Please read the
  297. 'Get the tools' section in the README on GitHub careful-
  298. ly and use ./setup.sh help and read the VERSION section.
  299.  
  300. root@example:~# cinemapress ms example.org
  301. docker: Error response from daemon: Conflict. The container name "/mail" is already in use by container "284f545610ea97119fadcfdeafa82b443112773488e48ff64269d2c6c0aed144". You have to remove (or rename) that container to be able to reuse that name.
  302. See 'docker run --help'.
  303.  
  304. ------------------------------------------------------------------
  305. -----------------[ MAIL SERVER example.org STARTED ]----------------
  306. ------------------------------------------------------------------
  307. Type:     A
  308. Name:     mail.example.org
  309. Content:  IP of your server
  310. ------------------------------------------------------------------
  311. Type:     A
  312. Name:     imap.example.org
  313. Content:  IP of your server
  314. ------------------------------------------------------------------
  315. Type:     A
  316. Name:     smtp.example.org
  317. Content:  IP of your server
  318. ------------------------------------------------------------------
  319. Type:     MX
  320. Name:     example.org
  321. Content:  mail.example.org
  322. Priority: 1
  323. ------------------------------------------------------------------
  324. Type:     TXT
  325. Name:     example.org
  326. Content:  v=spf1 mx -all
  327. ------------------------------------------------------------------
  328.  
  329. root@example:~# docker stop mail
  330. mail
  331. root@example:~# docker rm -f mail
  332. mail
  333. root@example:~# docker rmi -f cinemapress/mail
  334. Untagged: cinemapress/mail:latest
  335. Untagged: cinemapress/mail@sha256:65d3c96e27733761a83ac7db90c52870611a65c8fd338d6d077552b4f1085f1a
  336. Deleted: sha256:a2c2e768321965f591291da807d040611abec8b544a7337af2f5e816f15905ec
  337. Deleted: sha256:00d066652406b87273d6f94bd3b17da44f2fcdd7ec5810a89f9dab77a5ab82e1
  338. Deleted: sha256:566ba02597ed16627b1bb705e0a5c12244907b7e992ca933b78896528712612a
  339. Deleted: sha256:ae3d16c739658addff4a16c9875167db57c08ba24dbe0004a903386718c29267
  340. Deleted: sha256:56475b85210525ed07c52e8d49dbc6f69323a260aa06b76c2df9e72827c6020b
  341. Deleted: sha256:957a2ce2fcda57f6de2d5b5f0af88f8f273b38e0beb5e25a6066c621bcb0e701
  342. Deleted: sha256:327754eacb2065073e9418469d091042ea702db756dc52c0559061c6bc9e7835
  343. Deleted: sha256:b9828262ca4cc3c6263115b398970cb66b3cf7d46aaca65ecc5375778294573d
  344. Deleted: sha256:ca80c765c70fd389800cbe543768d86ebb92889400ca753c1f523c9b5c40353c
  345. Deleted: sha256:9a255fce44766e4daba34c6baa67e761430ef862fdfcc9f1e47fea0776a0e5e2
  346. Deleted: sha256:26db0ebd3c7b42c09cc89c00d7cf528e75490b056566ef64b84c7cd3a184b2e8
  347. Deleted: sha256:5557c2b6aa926dc1388292621e940207d219587397da084afac44cef5bb2fa4c
  348. Deleted: sha256:50bf034b3c89974f2f0cf28f9ce1c252d9cf27a02bd071fe379ca639400c4984
  349. Deleted: sha256:42cdb80b527abcc08559076025e0dcd63a64001104010a3234aafc63cae8dc36
  350. Deleted: sha256:6f8f8271620a4e59cb809eda07f097f4e45c61e2eab0bd1041b02f093e856995
  351. Deleted: sha256:b28d71e7a747a198b57bce9d36609ce94111ad70f3a3bdff93064f6c6a7196bb
  352. Deleted: sha256:613343930491433d1f1edf76e10eb4e2cf12a957e9d97c07bc900a917af64126
  353. Deleted: sha256:11b4a46873338423ab124f2ec4f28d3e9eb25a3ea0671147f751ad9296279e02
  354. Deleted: sha256:df2648ee63837e084e4e44865e5f1374208bc15325e124d214d27869f1235536
  355. Deleted: sha256:f5b87bef9a05c5ff70e1ed615e0dcbb4553ec0cb3ec6c07e996e557643c462a7
  356. Deleted: sha256:39c0a3786b884757f31b3f64b2c21b774b05c4bdf0691d1dae70f10f49c19ccf
  357. Deleted: sha256:288ee21fa681b11b62ed10a53e89ca85fcc57a56fee87decb7ad9c7562bd4a21
  358. Deleted: sha256:c070bce54d0589e79d4c02f04d4886acdbd401348b75aecd6dfe27193939bebd
  359. Deleted: sha256:944a50e8069285e15f4522e5e5e7501277afeac2b8fccf410d0fce397357deb5
  360. Deleted: sha256:46bb121cf77fdeaaab651d7749b865b80df388c386c31f29d7708175f9e10990
  361. Deleted: sha256:63ae42e44e95293b28f50e1a41374689d0566cbd7f0b0caab0c421f8b4b762a6
  362. Deleted: sha256:46c1f780543262ab5774f83b41106f366e64b7b20a953182200b880b8761aaa6
  363. Deleted: sha256:6b6467e9429da271c32d566585434d284832fd16416aa35f1b85d6435d4ef111
  364. Deleted: sha256:52c4f88984f4c24350238d1aaebe23a39a9c60eb2704ee60b0b5f4a23113dc88
  365. Deleted: sha256:905b284f4a809bd2330c9f97178ff4a3f53a30dfeead3711514b3b593d3b0c16
  366. Deleted: sha256:c456091707e335d3a58bd64af214fabc2bb88657417f21f53e012186be63e000
  367. Deleted: sha256:f76dbea2ee49c3ca37382cba31525281dd863eae99b78a124803a73ddc6017f1
  368. Deleted: sha256:432e972d50b835ec383f254f60f6c38bfcda9363579b479dccd2afd6af2f8ee2
  369. Deleted: sha256:53a84f3dcfe691ea846f8dd31358f95d0a8b4a7867ac93a3a9fa25d18c88923b
  370. Deleted: sha256:fe7129b343f73bd04faa6c7d2a175339d65f0ab09bf138211cf4685fb2d56e65
  371. Deleted: sha256:618b4471406c21dd68f4a5a7144b1264d66e4bcbe9cd0e30749d975c818d9afa
  372. Deleted: sha256:dac28a390e7faade1c695e953e4d4bb057b9cdfe35da506e3eab685270a7ea5b
  373. Deleted: sha256:190c5fc2fe03fc34e028988507cb8a3bb16f934ff9dd9c63b405793ded949722
  374. Deleted: sha256:b264a9b301ff296cf7717a63008b2e774107d99622d07bec24d6e3c580c16e2f
  375. Deleted: sha256:f124cae28578740a9766a852f4dfa7f3efee91b94a4141baf152e3cd807f58c9
  376. Deleted: sha256:4f7c01f7b51b27625eff0f6357df39c65239576ce0df08d36e82f815029c1c45
  377. Deleted: sha256:94d2253d16a5719086adb6a386f42385d2265ba393581a5ca1a5d355650b3197
  378. Deleted: sha256:cb42413394c4059335228c137fe884ff3ab8946a014014309676c25e3ac86864
  379. root@example:~# cinemapress ms email add support@example.org
  380.  
  381. root@example:~# cinemapress ms config dkim
  382. OPEN-DKIM(8)
  383.  
  384. NAME
  385.    open-dkim - configure DomainKeys Identified Mail (DKIM)
  386.  
  387. SYNOPSIS
  388.    ./setup.sh config dkim [ OPTIONS... ]
  389.  
  390. DESCRIPTION
  391.    Configures DKIM keys. OPTIONS can be used to configure a more complex setup.
  392.    LDAP setups require these options.
  393.  
  394. OPTIONS
  395.    Generic Program Information
  396.        help       Print the usage information.
  397.  
  398.    Configuration adjustments
  399.        keysize    Set the size of the keys to be generated. Possible are 1024, 2024 and 4096 (default).
  400.        selector   Set a manual selector (default is 'mail') for the key. (ATTENTION: NOT IMPLEMENTED YET!)
  401.        domain     Provide the domain(s) for which keys are to be generated.
  402.  
  403. EXAMPLES
  404.    ./setup.sh config dkim size 2048
  405.        Creates keys of length 2048 bit in a default setup where domains are obtained from
  406.        your accounts.
  407.  
  408.    ./setup.sh config dkim size 2048 selector 2021-dkim
  409.        Creates keys of length 2048 bit in a default setup where domains are obtained from
  410.        your accounts. The DKIM selector used is '2021-dkim'.
  411.  
  412.    ./setup.sh config dkim size 2048 selector 2021-dkim domain 'whoami.com,whoareyou.org'
  413.        Appropriate for an LDAP setup. Creates keys of length 2048 bit in a default setup
  414.        where domains are obtained from your accounts. The DKIM selector used is '2021-dkim'.
  415.        The domains for which DKIM keys are generated are 'whoami.com' and 'whoareyou.org'.
  416.  
  417. EXIT STATUS
  418.    Exit status is 0 if command was successful. If wrong arguments are provided or arguments contain
  419.    errors, the script will exit early with exit status 2.
  420.  
  421.  
  422. Unknown options  . Aborting.
  423.  
  424. ––– UNCHECKED ERROR
  425.  – script    = setup.sh
  426.  – function  = _docker_image / ${CRI} run --rm -v "${CONFIG_PATH}:/tmp/docker-mailserver${USING_SELINUX}" "${USE_TTY}" "${IMAGE_NAME}" "${@}"
  427.  – line      = 235
  428.  – exit code = 2
  429.  
  430. Make sure you use a version of this script that matches
  431. the version / tag of docker-mailserver. Please read the
  432. 'Get the tools' section in the README on GitHub careful-
  433. ly and use ./setup.sh help and read the VERSION section.
  434.  
  435. root@example:~# docker stop mail
  436. Error response from daemon: No such container: mail
  437. root@example:~# docker rm -f mail
  438. Error: No such container: mail
  439. root@example:~# docker rmi -f cinemapress/mail
  440. Error: No such image: cinemapress/mail
  441. root@example:~# docker rmi -f cinemapress/mail
  442. Error: No such image: cinemapress/mail
  443.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement