| 1 | == Exemplo de Configuração do Postfix do Servidor Z-Push == |
| 2 | |
| 3 | Segue exemplo de configuração do arquivo ''main.cf'' do Postfix para servidor Z-Push enviar e-mail ao Expresso via SMTP. |
| 4 | |
| 5 | {{{ |
| 6 | # See /usr/share/postfix/main.cf.dist for a commented, more complete version |
| 7 | # Debian specific: Specifying a file name will cause the first |
| 8 | # line of that file to be used as the name. The Debian default |
| 9 | # is /etc/mailname. |
| 10 | #myorigin = /etc/mailname |
| 11 | smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) |
| 12 | biff = no |
| 13 | # appending .domain is the MUA's job. |
| 14 | append_dot_mydomain = no |
| 15 | # Uncomment the next line to generate "delayed mail" warnings |
| 16 | #delay_warning_time = 4h |
| 17 | |
| 18 | readme_directory = no |
| 19 | |
| 20 | # TLS parameters |
| 21 | smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem |
| 22 | smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key |
| 23 | smtpd_use_tls=yes |
| 24 | smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache |
| 25 | smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache |
| 26 | |
| 27 | # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for |
| 28 | # information on enabling SSL in the smtp client. |
| 29 | myhostname = exp-activesync |
| 30 | alias_maps = hash:/etc/aliases |
| 31 | alias_database = hash:/etc/aliases |
| 32 | mydestination = exp-activesync, localhost.localdomain, , localhost |
| 33 | relayhost = 10.29.200.100 |
| 34 | mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 |
| 35 | mailbox_command = procmail -a "$EXTENSION" |
| 36 | mailbox_size_limit = 0 |
| 37 | recipient_delimiter = + |
| 38 | inet_interfaces = all |
| 39 | myorigin = minha_organizacao.gov.br |
| 40 | }}} |