浏览代码

email: minor fixes

- Add sudo package
- Add 25MB message limit
- Switch getmail to Maildir
- Fix startup script
multi_domain
ßingen 6 年前
父节点
当前提交
67798f598f
共有 4 个文件被更改,包括 12 次插入6 次删除
  1. +1
    -1
      images/email/Dockerfile
  2. +2
    -0
      images/email/config/postfix/main.cf
  3. +8
    -4
      images/email/getmail/template.getmailrc-example
  4. +1
    -1
      images/email/startup.sh

+ 1
- 1
images/email/Dockerfile 查看文件

@@ -8,7 +8,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update -q --fix-missing && \
apt-get -y install --no-install-recommends \
rsyslog \
postfix postfix-pcre postfix-ldap \
cron getmail4 \
sudo cron getmail4 \
mutt swaks \
dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-ldap \
libsasl2-2 sasl2-bin libsasl2-modules-ldap

+ 2
- 0
images/email/config/postfix/main.cf 查看文件

@@ -44,6 +44,8 @@ mydestination =
localhost.$mydomain
localhost

# 25 MB
message_size_limit = 26214400

###################################################################################################
### Virtual Transport ###

+ 8
- 4
images/email/getmail/template.getmailrc-example 查看文件

@@ -15,7 +15,11 @@ password = your-password
# delete_after = 10 # days

[destination]
type = MDA_external
path = /usr/sbin/sendmail
arguments = ("-i", "-bm", "your-user@your-domain.com")
unixfrom = true
#type = MDA_external
#path = /usr/sbin/sendmail
#arguments = ("-i", "-bm", "your-user@your-domain.com")
#unixfrom = true
# or
type = Maildir
path = /srv/vmail/your-user@your-domain.com/Maildir/.Gmail/ # or any other Maildir folder
user = vmail

+ 1
- 1
images/email/startup.sh 查看文件

@@ -1,4 +1,4 @@
#!bin/bash
#!/bin/bash

# set LDAP password from secret
if [ ! -z $LDAP_BIND_PWD_FILE -a -f $LDAP_BIND_PWD_FILE ]; then

正在加载...
取消
保存