From 75d22ff1f72d2e6e15137155351ce23ef6e26c2b Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 15 Oct 2016 14:38:38 +0200 Subject: [PATCH] Add missing mailbase stuff --- Dockerfile | 5 +++++ config/mail/aliases | 34 ++++++++++++++++++++++++++++++++++ config/mailcap | 25 +++++++++++++++++++++++++ config/pam.d/imap | 8 ++++++++ config/pam.d/imap4 | 1 + config/pam.d/imap4s | 1 + config/pam.d/imaps | 1 + config/pam.d/pop | 8 ++++++++ config/pam.d/pop3 | 1 + config/pam.d/pop3s | 1 + config/pam.d/pops | 1 + 11 files changed, 86 insertions(+) create mode 100644 config/mail/aliases create mode 100644 config/mailcap create mode 100644 config/pam.d/imap create mode 120000 config/pam.d/imap4 create mode 120000 config/pam.d/imap4s create mode 120000 config/pam.d/imaps create mode 100644 config/pam.d/pop create mode 120000 config/pam.d/pop3 create mode 120000 config/pam.d/pop3s create mode 120000 config/pam.d/pops diff --git a/Dockerfile b/Dockerfile index 298fa3c..ad9a519 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,11 @@ RUN eclectic config accept-all ##### APPLICATION CONFIG ##### +# copy "mailbase" stuff +COPY ./config/mailcap /etc/mailcap +COPY ./config/mail /etc/mail +COPY ./config/pam.d /etc/pam.d + # create dovecot certificates RUN mkdir -p /var/tmp/dovecot-cert RUN cp /usr/share/doc/dovecot-*/mkcert.sh /var/tmp/dovecot-cert/ ; \ diff --git a/config/mail/aliases b/config/mail/aliases new file mode 100644 index 0000000..7a6c4ec --- /dev/null +++ b/config/mail/aliases @@ -0,0 +1,34 @@ +# Basic system aliases -- these MUST be present. +MAILER-DAEMON: postmaster +postmaster: root + +# General redirections for pseudo accounts. +adm: root +bin: root +daemon: root +exim: root +lp: root +mail: root +named: root +nobody: root +postfix: root + +# Well-known aliases -- these should be filled in! +# root: +# operator: + +# Standard RFC2142 aliases +abuse: postmaster +ftp: root +hostmaster: root +news: usenet +noc: root +security: root +usenet: root +uucp: root +webmaster: root +www: webmaster + +# trap decode to catch security attacks +# decode: /dev/null + diff --git a/config/mailcap b/config/mailcap new file mode 100644 index 0000000..7c42a55 --- /dev/null +++ b/config/mailcap @@ -0,0 +1,25 @@ + +text/plain; less '%s'; needsterminal +application/x-troff-man; /usr/bin/nroff -mandoc -Tlatin1; copiousoutput; print=/usr/bin/nroff -mandoc -Tlatin1 | print text/plain:- +text/plain; shownonascii iso-8859-1 '%s'; description="Plain ASCII Text"; test=test "$(echo %{charset} | tr "[A-Z]" "[a-z]")" = iso-8859-1 -a "$DISPLAY" != "" +text/richtext; shownonascii iso-8859-1 -e richtext -p '%s'; description="Richtext"; copiousoutput; test=test "$(echo %{charset} | tr "[A-Z]" "[a-z]")" = iso-8859-1 -a "$DISPLAY" != "" +text/enriched; shownonascii iso-8859-1 -e richtext -e -p '%s'; description="Enriched Text"; copiousoutput; test=test "$(echo %{charset} | tr "[A-Z]" "[a-z]")" = iso-8859-1 -a "$DISPLAY" != "" +message/partial; showpartial '%s' %{id} %{number} %{total}; description="An incomplete message" +message/external-body; showexternal '%s' %{access-type} %{name} %{site} %{directory} %{mode} %{server}; needsterminal; description="A reference to data stored in an external location"; composetyped="extcompose '%s"' +audio/basic; /usr/lib/mime/playaudio '%s'; description=Basic uLaw Audio; nametemplate=%s.au +application/x-tar; /bin/tar tvf -; print=/bin/tar tvf - | print text/plain:-; copiousoutput +application/x-gtar; /bin/tar tvzf -; print=/bin/tar tvzf - | print text/plain:-; copiousoutput +text/plain; more '%s'; needsterminal +application/xrx; view=xrx '%s'; description="remote X application"; test=test "$DISPLAY"; nametemplate=%s.rx +text/richtext; richtext '%s'; description="Richtext"; copiousoutput +text/enriched; richtext -e '%s'; description="Enriched Text"; copiousoutput +text/plain; gview '%s'; edit=gvim -f '%s'; compose=gvim -f '%s'; test=test "$DISPLAY" != "" +text/plain; view '%s'; edit=vim '%s'; compose=vim '%s'; needsterminal +text/html; /usr/bin/lynx -force_html '%s'; needsterminal; description=HTML Text; nametemplate=%s.html +text/*; less '%s'; needsterminal +text/html; /usr/bin/lynx -dump -force_html '%s'; copiousoutput; description=HTML Text; nametemplate=%s.html +text/*; gview '%s'; edit=gvim -f '%s'; compose=gvim -f '%s'; test=test "$DISPLAY" != "" +text/*; view '%s'; edit=vim '%s'; compose=vim '%s'; needsterminal +text/*; more '%s'; needsterminal +*/*; less '%s'; needsterminal +*/*; false; print=lpr '%s' diff --git a/config/pam.d/imap b/config/pam.d/imap new file mode 100644 index 0000000..88ca530 --- /dev/null +++ b/config/pam.d/imap @@ -0,0 +1,8 @@ +# Provided by mailbase (dont remove this line!) +# Standard pam.d file for mail service packages. +# $Id$ + +auth required pam_nologin.so +auth include system-auth +account include system-auth +session include system-auth diff --git a/config/pam.d/imap4 b/config/pam.d/imap4 new file mode 120000 index 0000000..3c1fb1d --- /dev/null +++ b/config/pam.d/imap4 @@ -0,0 +1 @@ +imap \ No newline at end of file diff --git a/config/pam.d/imap4s b/config/pam.d/imap4s new file mode 120000 index 0000000..3c1fb1d --- /dev/null +++ b/config/pam.d/imap4s @@ -0,0 +1 @@ +imap \ No newline at end of file diff --git a/config/pam.d/imaps b/config/pam.d/imaps new file mode 120000 index 0000000..3c1fb1d --- /dev/null +++ b/config/pam.d/imaps @@ -0,0 +1 @@ +imap \ No newline at end of file diff --git a/config/pam.d/pop b/config/pam.d/pop new file mode 100644 index 0000000..88ca530 --- /dev/null +++ b/config/pam.d/pop @@ -0,0 +1,8 @@ +# Provided by mailbase (dont remove this line!) +# Standard pam.d file for mail service packages. +# $Id$ + +auth required pam_nologin.so +auth include system-auth +account include system-auth +session include system-auth diff --git a/config/pam.d/pop3 b/config/pam.d/pop3 new file mode 120000 index 0000000..6a7375a --- /dev/null +++ b/config/pam.d/pop3 @@ -0,0 +1 @@ +pop \ No newline at end of file diff --git a/config/pam.d/pop3s b/config/pam.d/pop3s new file mode 120000 index 0000000..6a7375a --- /dev/null +++ b/config/pam.d/pop3s @@ -0,0 +1 @@ +pop \ No newline at end of file diff --git a/config/pam.d/pops b/config/pam.d/pops new file mode 120000 index 0000000..6a7375a --- /dev/null +++ b/config/pam.d/pops @@ -0,0 +1 @@ +pop \ No newline at end of file