June 3, 2011

Solaris: how build sendmail.cf file

Posted in Solaris at 3:12 pm by alessiodini

Today i worked on sendmail after very long time 🙂
I did not remember how build a completely new sendmail.cf file.

Looking on the web i found everytime “sendmail.mc” file when i did not have this file.
Finally i found how build this file from 0:

– cd /etc/
– cp -prf mail mail.orig
– cd /usr/lib/mail/cf
– cp main-v7sun.mc sendmail.mc
– apply things needed or just do nothing for have a “default” configuration file
– /usr/ccs/bin/m4 /usr/lib/mail/m4/cf.m4 sendmail.mc > sendmail.cf
– cp sendmail.cf /etc/mail/sendmail.cf
– svcadm enable sendmail or ( if already running ) svcadm restart sendmail

When i tried first times to make a new configurqtion file i forgot every time to include cf.m4 file and i obtained a partial sendmail.cf empty file !

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: