public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/Dockerfiles/postfix/Dockerfile
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
FROM debian:trixie-slim
3
LABEL maintainer="The Infrastructure Company GmbH <[email protected]>"
5
ARG DEBIAN_FRONTEND=noninteractive
6
ENV LC_ALL=C
8
RUN dpkg-divert --local --rename --add /sbin/initctl \
9
&& ln -sf /bin/true /sbin/initctl \
10
&& dpkg-divert --local --rename --add /usr/bin/ischroot \
11
&& ln -sf /bin/true /usr/bin/ischroot
13
# Add groups and users before installing Postfix to not break compatibility
14
RUN groupadd -g 102 postfix \
15
&& groupadd -g 103 postdrop \
16
&& useradd -g postfix -u 101 -d /var/spool/postfix -s /usr/sbin/nologin postfix \
17
&& apt-get update && apt-get install -y --no-install-recommends \
18
ca-certificates \
19
curl \
20
dirmngr \
21
dnsutils \
22
gnupg \
23
libsasl2-modules \
24
mariadb-client \
25
perl \
26
postfix \
27
postfix-mysql \
28
postfix-pcre \
29
redis-tools \
30
sasl2-bin \
31
sudo \
32
supervisor \
33
syslog-ng \
34
syslog-ng-core \
35
syslog-ng-mod-redis \
36
tzdata \
37
&& rm -rf /var/lib/apt/lists/* \
38
&& touch /etc/default/locale \
39
&& printf '#!/bin/bash\n/usr/sbin/postconf -c /opt/postfix/conf "$@"' > /usr/local/sbin/postconf \
40
&& chmod +x /usr/local/sbin/postconf
42
COPY supervisord.conf /etc/supervisor/supervisord.conf
43
COPY syslog-ng.conf /etc/syslog-ng/syslog-ng.conf
44
COPY syslog-ng-redis_slave.conf /etc/syslog-ng/syslog-ng-redis_slave.conf
45
COPY postfix.sh /opt/postfix.sh
46
COPY rspamd-pipe-ham /usr/local/bin/rspamd-pipe-ham
47
COPY rspamd-pipe-spam /usr/local/bin/rspamd-pipe-spam
48
COPY whitelist_forwardinghosts.sh /usr/local/bin/whitelist_forwardinghosts.sh
49
COPY stop-supervisor.sh /usr/local/sbin/stop-supervisor.sh
50
COPY docker-entrypoint.sh /docker-entrypoint.sh
52
RUN chmod +x /opt/postfix.sh \
53
/usr/local/bin/rspamd-pipe-ham \
54
/usr/local/bin/rspamd-pipe-spam \
55
/usr/local/bin/whitelist_forwardinghosts.sh \
56
/usr/local/sbin/stop-supervisor.sh
57
RUN rm -rf /tmp/* /var/tmp/*
59
EXPOSE 588
61
ENTRYPOINT ["/docker-entrypoint.sh"]
63
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]