Difference between revisions of "Instalation Null Client in Debian"
Line 2: | Line 2: | ||
'''Sendmail Null Client (Debian)''' | '''Sendmail Null Client (Debian)''' | ||
− | |||
== Installation == | == Installation == | ||
− | |||
{{Command|<nowiki>aptitude install sendmail</nowiki>}} | {{Command|<nowiki>aptitude install sendmail</nowiki>}} | ||
− | |||
== Setting-up == | == Setting-up == | ||
+ | ''Replace ${ADMIN_EMAIL}, ${HOSTNAME}, ${DNS_DOMAIN}, ${IP_ADDR} for the adequate values'' | ||
+ | Redirect messages from root, postmaster, admin, etc, to the administrator of the machine. | ||
− | |||
− | |||
− | |||
Editar /etc/mail/aliases | Editar /etc/mail/aliases | ||
Revision as of 21:39, 4 September 2014
Back to Mail server
Sendmail Null Client (Debian)
Installation
Setting-up
Replace ${ADMIN_EMAIL}, ${HOSTNAME}, ${DNS_DOMAIN}, ${IP_ADDR} for the adequate values Redirect messages from root, postmaster, admin, etc, to the administrator of the machine.
Editar /etc/mail/aliases
(...) operator: root admin: root root: ${ADMIN_EMAIL}
Actualizar base de datos de aliases:
/usr/sbin/newaliases
Verificar que el sendmail conoce los distintos nombres que puede tener el cliente
Editar /etc/mail/local-host-names
localhost localhost.localdomain ${HOSTNAME} ${HOSTNAME}.${DNS_DOMAIN}
Verificar que el host aparece en /etc/hosts
${IP_ADDR} ${HOSTNAME}.${DNS_DOMAIN} ${HOSTNAME}
Editar /etc/mail/sendmail.mc
(...) dnl # dnl # Masquerading options FEATURE(`always_add_domain')dnl MASQUERADE_AS(`${HOSTNAME}.${DNS_DOMAIN}')dnl FEATURE(`allmasquerade')dnl FEATURE(`masquerade_envelope')dnl dnl # dnl # Default Mailer setup MAILER_DEFINITIONS MAILER(`local')dnl MAILER(`smtp')dnl
Activar la nueva configuración
yes | sendmailconfig
Seguridad
Por omisión Debian instala sendmail habilitado solo para localhost
Si se usan tcp-wrappers, se debe agregar una línea similar a la siguiente en
/etc/hosts.allow
sendmail: 127.0.0.1
Si se usan otros filtros se debe permitir el acceso al puerto localhost:25/tcp desde localhost:>1025/tcp
Limpieza (opcional)
Eliminar el ssmtp
aptitude remove ssmtp
Si la configuración DNS no está definida en /etc/network/interfaces, eliminar el resolvconf
aptitude remove resolvconf