Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
111 lines (100 sloc) 4.04 KB
Sending build context to Docker daemon 14.85kB
Step 1/11 : FROM ubuntu:18.04
---> 4e5021d210f6
Step 2/11 : RUN apt update && apt install -y openssl=1.1.1-1ubuntu2.1~18.04.5 sendmail=8.15.2-10
---> Using cache
---> f41cf4bc51d1
Step 3/11 : RUN cd /etc/mail && mkdir -p /etc/mail/auth
---> Using cache
---> 2d5b5993ba06
Step 4/11 : RUN ls -l /etc/aliases
---> Using cache
---> fa894d14a1b3
Step 5/11 : COPY config/sendmail.mc /etc/mail
---> Using cache
---> 799ecd23fa80
Step 6/11 : COPY config/gmail-auth /etc/mail/auth
---> Using cache
---> 77e3ee9cbe57
Step 7/11 : RUN chmod 700 /etc/mail/auth
---> Using cache
---> 881b02877654
Step 8/11 : RUN cd /etc/mail/auth && makemap hash gmail-auth <gmail-auth
---> Running in 4bcf989272e2
Removing intermediate container 4bcf989272e2
---> 96e9f012f1a2
Step 9/11 : RUN yes 'y' | sendmailconfig
---> Running in 9999495ee9fc
Configure sendmail with the existing /etc/mail/sendmail.conf? [Y] Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Configure sendmail with the existing /etc/mail/sendmail.mc? [Y] Updating sendmail environment ...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Could not open /etc/mail/databases(No such file or directory), creating it.
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Checking filesystem, this may take some time - it will not hang!
... Done.
Checking for installed MDAs...
sasl2-bin not installed, not configuring sendmail support.
To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth"
Creating/Updating SSL(for TLS) information
Creating /etc/mail/tls/starttls.m4...
You already have sendmail certificates
*** *** *** WARNING *** WARNING *** WARNING *** WARNING *** *** ***
Everything you need to support STARTTLS (encrypted mail transmission
and user authentication via certificates) is installed and configured
but is *NOT* being used.
To enable sendmail to use STARTTLS, you need to:
1) Add this line to /etc/mail/sendmail.mc and optionally
to /etc/mail/submit.mc:
include(`/etc/mail/tls/starttls.m4')dnl
2) Run sendmailconfig
3) Restart sendmail
Checking {sendmail,submit}.mc and related databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/Makefile...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Disabling HOST statistics file(/var/lib/sendmail/host_status).
Creating /etc/mail/sendmail.cf...
Creating /etc/mail/submit.cf...
Informational: confCR_FILE file empty: /etc/mail/relay-domains
Informational: confCT_FILE file empty: /etc/mail/trusted-users
Updating /etc/mail/access...
Updating /etc/mail/auth/gmail-auth...
Informational: ALIAS_FILE file empty: /etc/mail/aliases
Updating /etc/mail/aliases...
WARNING: local host name (9999495ee9fc) is not qualified; see cf/README: WHO AM I?
/etc/mail/aliases: 0 aliases, longest 0 bytes, 0 bytes total
Reload the running sendmail now with the new configuration? [Y] Reloading sendmail ...
Removing intermediate container 9999495ee9fc
---> 4ef44a33bab7
Step 10/11 : EXPOSE 25
---> Running in b496510afad1
Removing intermediate container b496510afad1
---> 182f333488c3
Step 11/11 : CMD while true; do sleep 1000; done
---> Running in 7045163e5199
Removing intermediate container 7045163e5199
---> 80c9b467ba53
Successfully built 80c9b467ba53
Successfully tagged sendmailtest:latest
You can’t perform that action at this time.