Mailserver-vmd9593: Unterschied zwischen den Versionen

Aus Info-Theke
Zur Navigation springen Zur Suche springen
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 29: Zeile 29:
query = SELECT goto FROM alias WHERE address = '%s' AND active = '1'
query = SELECT goto FROM alias WHERE address = '%s' AND active = '1'
EOS
EOS
</pre>
<pre>
cat >virtual_domains_maps.cf <<EOS
user = vimbadmin
password = password
hosts = 127.0.0.1
dbname = vimbadmin
query = SELECT goto FROM alias WHERE address = '%s' AND active = '1'
EOS
</pre>
<pre>cat >/etc/postfix/mysql/virtual_mailbox_maps.cf <<EOS
user = vimbadmin
password = password
hosts = 127.0.0.1
dbname = vimbadmin
query = SELECT maildir FROM mailbox WHERE username = '%s' AND active = '1'
EOS
</pre>
<pre>
groupadd -g 5000 vmail
useradd -g vmail -u 5000 vmail -d /var/vmail -m
service postfix restart
</pre>
</pre>

Aktuelle Version vom 30. September 2015, 22:12 Uhr


Installation[Bearbeiten]

apt-get install postfix postfix-mysql dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-mysql mariadb-server dovecot-sieve dovecot-managesieved
  • change /etc/postfix/master.cf
submission inet n       -       -       -       -       smtpd
smtps     inet  n       -       -       -       -       smtpd

main.cf:

smtpd_tls_cert_file=/etc/ssl/certs/dovecot.pem
smtpd_tls_key_file=/etc/ssl/private/dovecot.pem
cd /etc/postfix
mkdir mysql
cd mysql
cat >virtual_alias_maps.cf <<EOS
user = vimbadmin
password = password
hosts = 127.0.0.1
dbname = vimbadmin
query = SELECT goto FROM alias WHERE address = '%s' AND active = '1'
EOS
cat >virtual_domains_maps.cf <<EOS
user = vimbadmin
password = password
hosts = 127.0.0.1
dbname = vimbadmin
query = SELECT goto FROM alias WHERE address = '%s' AND active = '1'
EOS
cat >/etc/postfix/mysql/virtual_mailbox_maps.cf <<EOS
user = vimbadmin
password = password
hosts = 127.0.0.1
dbname = vimbadmin
query = SELECT maildir FROM mailbox WHERE username = '%s' AND active = '1'
EOS
groupadd -g 5000 vmail
useradd -g vmail -u 5000 vmail -d /var/vmail -m
service postfix restart