4 069
contributi
Riga 393: | Riga 393: | ||
<pre> | <pre> | ||
# apt-get install postfix postfix-ldap | # apt-get install postfix postfix-ldap | ||
</pre> | |||
Quindi creiamo un nuovo file di configurazione: | |||
<pre> | |||
# cp /etc/postfix/main.cf /etc/postfix/main.cf.old | |||
# cat /dev/null > /etc/postfix/main.cf | |||
# nano /etc/postfix/main.cf | |||
</pre> | |||
stando attenti a modificare correttamente il nome del server e il dominio: | |||
<pre> | |||
smtpd_banner = $myhostname ESMTP $mail_name (Debian) | |||
biff = no | |||
# appending .domain is the MUA's job. | |||
append_dot_mydomain = no | |||
readme_directory = no | |||
# TLS parameters | |||
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem | |||
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key | |||
smtpd_use_tls=yes | |||
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache | |||
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache | |||
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for | |||
# information on enabling SSL in the smtp client. | |||
myhostname = mioserver.domain.local | |||
alias_maps = hash:/etc/aliases | |||
alias_database = hash:/etc/aliases | |||
myorigin = /etc/mailname | |||
mydestination = mioserver.domain.local, localhost.domain.local, , localhost | |||
relayhost = | |||
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 | |||
mailbox_size_limit = 0 | |||
recipient_delimiter = + | |||
inet_interfaces = all | |||
virtual_alias_maps = ldap:/etc/postfix/ldap_aliases.cf | |||
virtual_mailbox_domains = virtual.domain.local | |||
virtual_transport = dovecot | |||
dovecot_destination_recipient_limit = 1 | |||
virtual_uid_maps = static:5000 | |||
virtual_gid_maps = static:5000 | |||
</pre> | </pre> |