Sendmail, quickreferente

Solo disponible en BuenasTareas
  • Páginas : 4 (845 palabras )
  • Descarga(s) : 0
  • Publicado : 29 de febrero de 2012
Leer documento completo
Vista previa del texto
Sendmail Quick Reference
Author: Jialong He


Used for host mutiple virtual domains.

You can use define in .MC file to changesome default settings: define(`ALIAS_FILE', `/etc/aliases') location of aliases file

SAMPLE /etc/aliases
# # # # # >>>>>>>>>> >> NOTE >> >>>>>>>>>> The program "newaliases" must be run after thisfile is updated for any changes to show through to sendmail.

What is Sendmail?
Sendmail is the most popular mail server software and runs on Unix/Linux computers. The freeware version is available Sendmail relies on a configuration file which normally resides in /etc/mail directory. It is not easy to modify this file directly. One should modify sendmail macroconfiguration file: /etc/mail/ and then generate with m4 macro processor: m4 /etc/mail/ > /etc/mail/ For new configuration file to take effects, you mustrestart sendmail daemon. On Redhat, use: service sendmail restart

define(`SMART_HOST',`smtp. use external outgoing server') define(`confME_TOO', true) In aliases mailing, if sender is in the list,also send copy to the sender.

define(`confMAX_MESSAGE_ Maximum size of mail (0: no limit) SIZE', 0)

Access Control
An access database can be created to accept or reject mails from selected domainsor senders. You edit a text file /etc/mail/access. Each domain/computer/senders can be followed by: OK, RELAY, REJECT, or DISCARD. #--------------------------------------# SAMPLE of /etc/mail/access#--------------------------------------localhost.localdomain RELAY localhost RELAY RELAY REJECT After modifying access text file, you have to create database map with command:makemap hash /etc/mail/access.db < /etc/mail/access if FEATURE(use_cw_file) is used, sendmail will read /etc/mail/localhost-names file to get alternate names for this host. You can list machine...
tracking img