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 [2023/11/28 18:41] – jdos | postfix [2025/01/29 17:52] (atual) – [Configurações] jdos | ||
---|---|---|---|
Linha 17: | Linha 17: | ||
+ | < | ||
+ | # 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 = / | ||
+ | smtputf8_enable = no | ||
+ | |||
+ | # TLS parameters | ||
+ | smtpd_tls_cert_file=/ | ||
+ | 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]: | ||
+ | relayhost = [smtp.gmail.com]: | ||
+ | |||
+ | mynetworks = 127.0.0.0/8 [:: | ||
+ | |||
+ | mailbox_size_limit = 0 | ||
+ | recipient_delimiter = + | ||
+ | inet_interfaces = all | ||
+ | inet_protocols = all | ||
+ | |||
+ | |||
+ | # outbound relay configurations | ||
+ | smtp_sasl_auth_enable = yes | ||
+ | smtp_sasl_password_maps = hash:/ | ||
+ | smtp_sasl_security_options = noanonymous | ||
+ | smtp_tls_security_level = may | ||
+ | header_size_limit = 4096000 | ||
+ | </ | ||
+ | |||
+ | |||
+ | 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: | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | Teste se o servidor está escutando corretamente na porta: | ||
+ | |||
+ | < | ||
+ | |||
+ | Deverá ser algo do tipo: | ||
+ | '' | ||
+ | |||
+ | ==== RECONFIGURAÇÕES ==== | ||
+ | Para reconfigurar e/ou mudar algum parametro: | ||
+ | < | ||
+ | |||
+ | Reload: | ||
+ | < | ||
postfix.1701207660.txt.gz · Última modificação: 2023/11/28 18:41 por jdos