https://github.com/instrumentisto/haraka-docker-image/actions/workflows/ci.yml/badge.svg?branch=main "CI"](https://github.com/instrumentisto/haraka-docker-image/actions?query=workflow%3ACI+branch%3Amain)
https://hub.docker.com/r/instrumentisto/haraka | https://github.com/orgs/instrumentisto/packages/container/package/haraka | Quay.io
https://github.com/instrumentisto/haraka-docker-image/blob/main/CHANGELOG.md
Dockerfile链接linux: amd64, arm64v8https://haraka.github.io是一个开源SMTP服务器,采用Node.js编写,具备极高的性能,同时拥有灵活的插件系统,允许Javascript程序员全面修改服务器行为。
https://haraka.github.io
https://github.com/haraka/Haraka
!https://haraka.github.io/icon.png "Haraka Logo"
要运行https://haraka.github.io邮件服务器,只需启动容器:
bashdocker run -d -p 25:25 instrumentisto/haraka
默认情况下,镜像使用/etc/haraka/config/目录中的默认配置文件。如需使用自定义配置文件,应挂载该文件:
bashdocker run -d -p 25:25 \ -v /path/to/my/smtp.ini:/etc/haraka/config/smtp.ini:ro \ instrumentisto/haraka
注意! 安装https://haraka.github.io/core/Plugins后,务必在/etc/haraka/config/plugins文件中启用它们。
NPM打包插件
https://haraka.github.io/core/Plugins#plugins-as-modules可通过HARAKA_INSTALL_PLUGINS环境变量轻松安装。将其指定为逗号分隔的NPM包,容器将在启动时运行npm install:
bashdocker run -d -p 25:25 \ -v /path/to/my/plugins:/etc/haraka/config/plugins:ro \ -e HARAKA_INSTALL_PLUGINS=haraka-plugin-rcpt-postgresql,haraka-plugin-auth-enc-file@1.0 \ instrumentisto/haraka
遗留插件
遗留自定义插件文件可直接挂载到/etc/haraka/plugins目录:
bashdocker run -d -p 25:25 \ -v /path/to/my-awesome-plugin.js:/etc/haraka/plugins/my-awesome-plugin.js:ro \ -v /path/to/my/plugins:/etc/haraka/config/plugins:ro \ instrumentisto/haraka
Alpine包
某些插件(如https://haraka.github.io/plugins/tls)可能需要安装额外的系统库。使用APK_INSTALL_PACKAGES环境变量在容器启动时预安装这些库:
bashdocker run -d -p 25:25 \ -v /path/to/my/plugins:/etc/haraka/config/plugins:ro \ -e APK_INSTALL_PACKAGES=openssl \ instrumentisto/haraka
此镜像基于流行的Alpine Linux项目,可在https://hub.docker.com/_/alpine中获取。Alpine Linux比大多数发行版基础镜像小得多(约5MB),因此通常会生成更精简的镜像。
当希望最终镜像大小尽可能小时,强烈推荐此变体。需要注意的是,它使用musl libc而非glibc及类似库,因此某些软件可能因libc需求深度而遇到问题。然而,大多数软件对此没有问题,因此此变体通常是非常安全的选择。有关可能出现的问题以及使用Alpine基镜像的优缺点比较,请参见此Hacker News评论线程。
<X>最新X主版本的最新标签。
这是一个多平台镜像。
<X.Y>最新X.Y次版本的最新标签。
这是一个多平台镜像。
<X.Y.Z>具体X.Y.Z版本的最新标签。
这是一个多平台镜像。
<X.Y.Z>-node<A>-r<N>使用A主版本Node.js的具体X.Y.Z版本的第N次镜像修订标签。
构建后永不更新。
这是一个多平台镜像。
<X.Y.Z>-node<A>-r<N>-<os>-<arch>在特定os和arch上使用A主版本Node.js的具体X.Y.Z版本的第N次镜像修订标签。
构建后永不更新。
这是一个单平台镜像。
https://haraka.github.io采用https://github.com/haraka/Haraka/blob/master/LICENSE。
与所有Docker镜像一样,这些镜像可能还包含其他软件,这些软件可能采用其他许可证(如基础发行版中的Bash等,以及主要软件的任何直接或间接依赖项)。
对于任何预构建镜像的使用,镜像用户有责任确保对该镜像的任何使用符合其中包含的所有软件的相关许可证。
生成instrumentisto/harakaDocker镜像的https://github.com/instrumentisto/haraka-docker-image采用https://github.com/instrumentisto/haraka-docker-image/blob/main/LICENSE.md许可证。
我们无法注意到https://hub.docker.com(或其他容器仓库)中的评论,因此请勿使用它们报告问题或提问。
如对此镜像有任何问题或疑问,请通过https://github.com/instrumentisto/haraka-docker-image/issues与我们联系。
基于Node.js的高性能开源SMTP服务器Haraka的Docker镜像,具备灵活的插件系统,支持自定义配置与多平台部署,适用于构建可扩展的邮件服务器。 ===FULL_DESC===
https://github.com/instrumentisto/haraka-docker-image/actions/workflows/ci.yml/badge.svg?branch=main "CI"](https://github.com/instrumentisto/haraka-docker-image/actions?query=workflow%3ACI+branch%3Amain)
https://hub.docker.com/r/instrumentisto/haraka | https://github.com/orgs/instrumentisto/packages/container/package/haraka | Quay.io
https://github.com/instrumentisto/haraka-docker-image/blob/main/CHANGELOG.md
Dockerfile链接linux: amd64, arm64v8https://haraka.github.io是一款开源SMTP服务器,采用Node.js开发,具备极高性能与灵活的插件系统,允许Javascript开发者通过编程全面自定义服务器行为。
https://haraka.github.io
https://github.com/haraka/Haraka
!https://haraka.github.io/icon.png "Haraka Logo"
启动Haraka邮件服务器容器:
bashdocker run -d -p 25:25 instrumentisto/haraka
默认配置文件位于/etc/haraka/config/目录。如需使用自定义配置,可挂载配置文件:
bashdocker run -d -p 25:25 \ -v /path/to/custom/smtp.ini:/etc/haraka/config/smtp.ini:ro \ instrumentisto/haraka
注意:安装https://haraka.github.io/core/Plugins后,需在/etc/haraka/config/plugins文件中启用。
NPM打包插件
通过HARAKA_INSTALL_PACKAGES环境变量指定逗号分隔的NPM包,容器启动时将自动安装:
bashdocker run -d -p 25:25 \ -v /path/to/plugins.conf:/etc/haraka/config/plugins:ro \ -e HARAKA_INSTALL_PLUGINS=haraka-plugin-rcpt-postgresql,haraka-plugin-auth-enc-file@1.0 \ instrumentisto/haraka
遗留插件
将自定义插件文件直接挂载至/etc/haraka/plugins目录:
bashdocker run -d -p 25:25 \ -v /path/to/custom-plugin.js:/etc/haraka/plugins/custom-plugin.js:ro \ -v /path/to/plugins.conf:/etc/haraka/config/plugins:ro \ instrumentisto/haraka
系统依赖
部分插件(如https://haraka.github.io/plugins/tls)需系统库支持,通过APK_INSTALL_PACKAGES环境变量预安装Alpine包:
bashdocker run -d -p 25:25 \ -v /path/to/plugins.conf:/etc/haraka/config/plugins:ro \ -e APK_INSTALL_PACKAGES=openssl \ instrumentisto/haraka
此镜像基于Alpine Linux构建(约5MB基础镜像),相比其他发行版更精简。其使用musl libc而非glibc,大多数软件可正常运行,适合对镜像体积有严格要求的场景。关于Alpine基镜像的优缺点讨论,参见Hacker News评论线程。
<X>: 最新X主版本的最新标签(多平台)<X.Y>: 最新X.Y次版本的最新标签(多平台)<X.Y.Z>: 具体X.Y.Z版本的最新标签(多平台)<X.Y.Z>-node<A>-r<N>: 基于Node.js A版本的第N次修订标签(多平台,构建后不更新)<X.Y.Z>-node<A>-r<N>-<os>-<arch>: 特定系统架构的单平台标签(构建后不更新)使用前请确保遵守所有包含软件的许可证要求。
请勿在容器仓库评论区反馈问题。如有疑问或问题,请通过https://github.com/instrumentisto/haraka-docker-image/issues提交。
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务