Skip to content

Instantly share code, notes, and snippets.

@Canx
Created December 1, 2023 12:46
Show Gist options
  • Save Canx/8293738ef76c4fc764938f7855e070f9 to your computer and use it in GitHub Desktop.
Save Canx/8293738ef76c4fc764938f7855e070f9 to your computer and use it in GitHub Desktop.
configuracion postfix para envio desde centros
/^From:/ REPLACE From: <correo>
/^Sender:/ REPLACE Sender: <correo>
/^Reply-To:/ REPLACE Reply-To: <correo>
/^Subject:/ REPLACE Subject: Escaner
relayhost = [smtp.office365.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtpd_relay_restrictions = permit_mynetworks, reject_unauth_destination
header_checks = regexp:/etc/postfix/header_checks
smtpd_sender_restrictions = regexp:/etc/postfix/smtpd_sender_restrictions
[smtp.office365.com]:587 <correo>:<contraseña>
/^MAIL FROM:/ REPLACE MAIL FROM: <correo>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment