ソースを参照

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 ファイルの表示

apt-get -y install --no-install-recommends \ apt-get -y install --no-install-recommends \
rsyslog \ rsyslog \
postfix postfix-pcre postfix-ldap \ postfix postfix-pcre postfix-ldap \
cron getmail4 \
sudo cron getmail4 \
mutt swaks \ mutt swaks \
dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-ldap \ dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-ldap \
libsasl2-2 sasl2-bin libsasl2-modules-ldap libsasl2-2 sasl2-bin libsasl2-modules-ldap

+ 2
- 0
images/email/config/postfix/main.cf ファイルの表示

localhost.$mydomain localhost.$mydomain
localhost localhost


# 25 MB
message_size_limit = 26214400


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

+ 8
- 4
images/email/getmail/template.getmailrc-example ファイルの表示

# delete_after = 10 # days # delete_after = 10 # days


[destination] [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 ファイルの表示

#!bin/bash
#!/bin/bash


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

読み込み中…
キャンセル
保存