Tuesday, September 7, 2010

Sendmail installation issue

While installing sendmail, I was thrown the following error :-

*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEA TURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE () should be before MAILER()
NONE:0: m4: ERROR: EOF in string

I searched google only to find people suggesting to install postfix instead of sendmail. Now thats not what I want to do. I want to fix the above issue. Here is how I did it :-
sudo vim /etc/mail/sendmail.mc
Search and move the following lines to end of the file :-

MAILER_DEFINITIONS
MAILER(`local')dnl
MAILER(`smtp')dnl

And now it works.

No comments: