Instalation Null Client in Debian
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.
Edit /etc/mail/aliases
<nowiki> ... operator: root admin: root root: ${ADMIN_EMAIL} ...</nowiki>
Update the aliases database:
Verify that sendmail knows about the different names that the client can have.
Edit /etc/mail/local-host-names
<nowiki> ... localhost localhost.localdomain ${HOSTNAME} ${HOSTNAME}.${DNS_DOMAIN} ...</nowiki>
Verify that the host appears in /etc/hosts
... ${IP_ADDR} ${HOSTNAME}.${DNS_DOMAIN} ${HOSTNAME} ...
Edit /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 ...
Activate the new configuration
Seguridad
By default Debian installs sendmail enabled only for localhost.
If tcp-wrappers are used, a line similar to the following should be added to /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