How To Setup Postfix To Relay Outbound Mail Using SASL ¿Cómo configurar Postfix para retransmitir el correo saliente usando SASL
Postfix is an excellent and powerful mail transfer agent (MTA) like sendmail. Postfix es un excelente y poderoso agente de transferencia de correo (MTA) como sendmail. You can configure postfix to send outbound mails directly (default) or relay it to another MTA, which could be postfix or sendmail. Puede configurar postfix para enviar correos directamente (por defecto) o de relevo a otro MTA, que podría ser postfix o sendmail. However you don’t want anyone to be able to relay mails through the server. Sin embargo usted no quiere que nadie sea capaz de relé mails a través del servidor. So normally MTA’s are configured to relay mails from trusted and/or authenticated networks only (configurable). Por lo tanto, normalmente la MTA se han configurado para transmitir mensajes de confianza y / o autenticados únicamente redes (configurable). Another option is available when your local MTA has a fixed IP address. Otra opción está disponible cuando su MTA local tiene una dirección IP fija. However for all other cases using SASL is a very secure and easily configurable option as detailed below. Sin embargo, para todos los demás casos utilizando SASL es muy seguro y fácilmente configurable opción como se detalla a continuación.
A typical configuration on the server which receives email for relaying to remote hosts looks like: Una típica configuración en el servidor que recibe el correo electrónico para transmitir a los hosts remotos se ve así:
smtpd_recipient_restrictions = permit_sasl_authenticated ,permit_mynetworks,reject_unauth_destination smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
The permit_sasl_authenticated entry ensures that SASL authenticated clients are permitted to relay emails through this server. La entrada permit_sasl_authenticated asegura que SASL autenticada clientes están permitidos para retransmitir mensajes de correo electrónico a través de este servidor.
However you have to configure your local postfix server to relay outbound mails to this server and also to use SASL while relaying. Sin embargo, usted tiene que configurar su servidor postfix local para transmitir mensajes salientes a este servidor y también para utilizar SASL, mientras que su reinstalación. You need to first set your relayhost parameter to relay outbound mails to your specified server. Usted necesita a su primera serie relayhost parámetro para transmitir mensajes salientes a su servidor especificado. The relayhost parameter specifies the default host to send mail to when no entry is matched in the optional transport table. El relayhost parámetro especifica el valor por defecto de acogida para enviar correo electrónico a la entrada cuando no se iguala en la tabla de transporte opcional. When no relayhost is given, mail is routed directly to the destination. Cuando no se da relayhost, el correo está conectado directamente al destino.
My relayhost settings is: Mi relayhost configuración es:
relayhost = mail.taragana.com relayhost = mail.taragana.com
This ensures relaying of emails. De esta forma se garantiza de transmisión de mensajes de correo electrónico. Now to configure sending mails with SASL you need to set at least the following: Ahora para configurar el envío de mails con SASL usted necesita establecer al menos las siguientes:
smtp_sasl_auth_enable = yes smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_password_maps = hash: / etc / postfix / sasl_passwd
smtp_sasl_mechanism_filter = plain, login smtp_sasl_mechanism_filter = llano, login
smtp_sasl_security_options = noanonymous smtp_sasl_security_options = noanonymous
The file /etc/postfix/sasl_passwd must contain the login and password which it will use to authenticate itself. El archivo / etc / postfix / sasl_passwd debe contener el nombre de usuario y contraseña que utilizará para autenticar. It looks like: Se tiene el siguiente aspecto:
mail.domain.com username:secret_password mail.domain.com usuario: secret_password
Replace mail.domain.com with the domain of your receiving postfix server (MTA). Sustituir mail.domain.com con el dominio de su recepción postfix servidor (MTA). Replace username with a valid user name and secret_password with a valid password. Sustitúyase el nombre de usuario con un nombre de usuario válido y secret_password con una contraseña válida.
You should create the hash of the map by using: Usted debe crear el hash del mapa mediante el uso de:
postmap /etc/postfix/sasl_passwd. postmap / etc / postfix / sasl_passwd.
Restart postfix as follows and you be ready to go: Reinicie postfix de la siguiente manera y usted estará listo para ir:
service postfix restart Postfix reiniciar servicio
Note: You can debug both the postfix servers by checking /var/log/maillog (use tail -f). Nota: Puede depurar los servidores postfix de control / var / log / maillog (uso tail-f).
Filed under Filed under Computer Security Seguridad informática , Enterprise Software Enterprise Software , Fedora 7 Fedora 7 , Fedora Core 6 Fedora Core 6 , Headline News Headline News , How To Cómo , Linux , Linux Migration La migración Linux , Open Source Software Open Source Software , Tech Note Nota técnica , Web , Web Services Web Services | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | este artículo |
Email this Article Enviar artículo
You may also like to read También puede leer |




