Mar 06

Sendmail: quick start

Catégorie : Linux,sysadminCharles Collier @ 12:06 am

First you have to edit the config file
vi /etc/mail/sendmail.mc
you have to know your smtp server:


dnl # Uncomment and edit the following line if your outgoing mail needs to
dnl # be sent out through an external mail server:
dnl #
define(`SMART_HOST’,`serverSMTP’)
dnl #
define(`confDEF_USER_ID’,“8:12”)dnl
dnl define(`confAUTO_REBUILD’)dnl
define(`confTO_CONNECT’, `1m’)dnl

Then, generate the .cf file with ‘m4′ tool:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

You now have a new config file for our sendmail daemon
Then, restart sendmail:
/etc/init.d/sendmail restart

Laisser une réponse