postfix
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Ambos lados da revisão anteriorRevisão anteriorPróxima revisão | Revisão anterior | ||
postfix [2024/11/01 21:04] – [Configurações] jdos | postfix [2025/01/29 17:52] (atual) – [Configurações] jdos | ||
---|---|---|---|
Linha 18: | Linha 18: | ||
< | < | ||
- | #para habilitar o log | + | # See / |
+ | |||
+ | |||
+ | # Debian specific: | ||
+ | # line of that file to be used as the name. The Debian default | ||
+ | # is / | ||
+ | #myorigin = / | ||
+ | |||
+ | smtpd_banner = $myhostname ESMTP $mail_name (Debian/ | ||
+ | biff = no | ||
+ | |||
+ | # appending .domain is the MUA's job. | ||
+ | append_dot_mydomain = no | ||
+ | |||
+ | # Uncomment the next line to generate " | ||
+ | # | ||
+ | |||
+ | readme_directory = no | ||
+ | |||
+ | # See http:// | ||
+ | # fresh installs. | ||
+ | compatibility_level = 3.6 | ||
maillog_file = / | maillog_file = / | ||
- | #essa opção dependera da versão que está instalada, alguns servidores podem não disparar por te-la ativada/ | ||
smtputf8_enable = no | smtputf8_enable = no | ||
- | #o seu email de disparo e configurações | + | |
- | relayhost = [mail.itti.org.br]:587 | + | # TLS parameters |
- | #clientes de confiança | + | smtpd_tls_cert_file=/ |
- | mynetworks = 127.0.0.0/8 [:: | + | smtpd_tls_key_file=/ |
- | # | + | smtpd_tls_security_level=may |
+ | |||
+ | smtp_tls_CApath=/ | ||
+ | smtp_tls_security_level=may | ||
+ | smtp_tls_session_cache_database = btree: | ||
+ | |||
+ | |||
+ | smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination | ||
+ | myhostname = debian | ||
+ | alias_maps = hash:/ | ||
+ | alias_database = hash:/ | ||
+ | myorigin = / | ||
+ | mydestination = debian, digi@itti.org.br, | ||
+ | |||
+ | #relayhost = [mail.jdos.com.br]:587 | ||
+ | relayhost = [smtp.gmail.com]: | ||
+ | |||
+ | mynetworks = 127.0.0.0/8 [:: | ||
+ | |||
+ | mailbox_size_limit = 0 | ||
+ | recipient_delimiter = + | ||
inet_interfaces = all | inet_interfaces = all | ||
+ | inet_protocols = all | ||
+ | |||
+ | |||
# outbound relay configurations | # outbound relay configurations | ||
smtp_sasl_auth_enable = yes | smtp_sasl_auth_enable = yes | ||
Linha 37: | Linha 81: | ||
+ | Destaque para esse argumento, aqui você definirá quem poderá utilizar o recurso de envio de e-mails: | ||
+ | |||
+ | ''# | ||
+ | mynetworks = 127.0.0.0/8 [:: | ||
+ | |||
+ | Crie o arquivo com '' | ||
+ | |||
+ | Adicione: | ||
+ | |||
+ | < | ||
+ | |||
+ | A senha '' | ||
+ | |||
+ | Execute: | ||
+ | < | ||
+ | sudo postmap main.cf | ||
+ | sudo postmap sasl_passwd | ||
+ | service postfix restart | ||
+ | |||
+ | </ | ||
+ | ==== CONFIGURAÇÂO ==== | ||
+ | |||
+ | Para utilizá-lo como servidor de e-mail utilize as seguintes configurações: | ||
+ | |||
+ | < | ||
+ | Gateway SMTP primário: ip do seu servidor | ||
+ | PORTA: 25 | ||
+ | </ | ||
+ | |||
+ | ==== TESTES ==== | ||
+ | |||
+ | Teste se o servidor está enviando e-mails: | ||
+ | |||
+ | < | ||
Linha 46: | Linha 124: | ||
'' | '' | ||
+ | ==== RECONFIGURAÇÕES ==== | ||
+ | Para reconfigurar e/ou mudar algum parametro: | ||
+ | < | ||
+ | Reload: | ||
+ | < | ||
postfix.1730505890.txt.gz · Última modificação: 2024/11/01 21:04 por jdos