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 Jialong_he@bigfoot.com http://www.bigfoot.com/~jialong_he

virtusertable

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 from:www.sendmail.org Sendmail relies on a configuration file sendmail.cf which normally resides in /etc/mail directory. It is not easy to modify this file directly. One should modify sendmail macroconfiguration file: /etc/mail/sendmail.mc and then generate sendmail.cf with m4 macro processor: m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf 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 your.com') 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 127.0.0.1 RELAY spammer@aol.com 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