- Add sudo package - Add 25MB message limit - Switch getmail to Maildir - Fix startup scriptmulti_domain
| 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 |
| localhost.$mydomain | localhost.$mydomain | ||||
| localhost | localhost | ||||
| # 25 MB | |||||
| message_size_limit = 26214400 | |||||
| ################################################################################################### | ################################################################################################### | ||||
| ### Virtual Transport ### | ### Virtual Transport ### |
| # 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 |
| #!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 |