NuxOra – Linux and Oracle IT website

Admistration, configuration, déploiement, optimisation et tuning.

Sendmail: quick start

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

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>