Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timothee Gosselin
compose.libre.sh
Commits
27bdbf6a
Commit
27bdbf6a
authored
10 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
Reorganises postfix install script
parent
ccc2a413
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dockerfiles/email/postfix/Dockerfile
+4
-2
4 additions, 2 deletions
dockerfiles/email/postfix/Dockerfile
dockerfiles/email/postfix/install.sh
+6
-14
6 additions, 14 deletions
dockerfiles/email/postfix/install.sh
with
10 additions
and
16 deletions
dockerfiles/email/postfix/Dockerfile
+
4
−
2
View file @
27bdbf6a
...
...
@@ -14,10 +14,12 @@ RUN apt-get update \
supervisor
\
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
install.sh /opt/install.sh
COPY
install.sh install.sh
RUN
chmod
755 /install.sh
VOLUME
["/etc/postfix", "/var/spool/mail", "/var/log"]
EXPOSE
25
CMD
/opt
/install.sh;/usr/bin/supervisord -c /etc/supervisor/supervisord.conf
CMD
/install.sh;/usr/bin/supervisord -c /etc/supervisor/supervisord.conf
This diff is collapsed.
Click to expand it.
dockerfiles/email/postfix/install.sh
+
6
−
14
View file @
27bdbf6a
...
...
@@ -11,25 +11,15 @@ cat > /etc/supervisor/conf.d/supervisord.conf <<EOF
nodaemon=true
[program:postfix]
command=/opt/postfix.sh
process_name = master
command = /etc/init.d/postfix start
startsecs = 0
autorestart = false
[program:rsyslog]
command=/usr/sbin/rsyslogd -n
EOF
############
# postfix
############
cat
>>
/opt/postfix.sh
<<
EOF
#!/bin/bash
service postfix start
touch /var/log/mail.log
tail -f /var/log/mail.log
postmap /etc/postfix/virtual
service postfix restart
EOF
chmod
+x /opt/postfix.sh
# put the same FQDN in /data/hostname and in reverse DNS
# for the public IP address on which this server will be
# receiving smtp traffic.
...
...
@@ -46,3 +36,5 @@ cp /data/forwards /etc/postfix/virtual
# accept mails from docker networked machines:
/usr/sbin/postconf
-e
"mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 172.17.42.0/24"
# configure virtual
postmap /etc/postfix/virtual
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment