lukasmahl
By:
lukasmahl

Problem with sendmail config

April 6, 2015 607 views
Email Debian

Hello,
I have a little problem with sendmail. I installed sendmail a few days ago and setup it with the default values which are given when you run sendmailconfig. Everything worked fine, but a few days ago sendmail stopped working. And today I tried to reinstall it like I did it a few days ago. I have used all default values which sendmail suggested me. And now I´m getting this error:

Errors in generating sendmail.cf
*** ERROR: FEATURE() should be before MAILER()
*** ERROR: FEATURE() should be before MAILER()
*** ERROR: FEATURE() should be before MAILER()
*** ERROR: FEATURE() should be before MAILER()
*** FEATURE(smrsh) must occur before MAILER(local)
*** ERROR: MAILER(local) already included
*** ERROR: MAILER(smtp) already included

My config files:
sendmail.mc
sendmail.conf

I already got this error when I tried to install sendmail a few days ago but it worked anyway. What am I doing wrong?

Thank you to all helpers in advance.

1 Answer

Hello,

It appears that you have 3 lines 109 110 11 that include FEATURE settings after the MAILER settings. This generally causes an error with sendmail.

Even with the auto generated scripts this can happen at times. I would suggest moving those 3 lines above any MAILER configs so all your FEATURE config lines are above any MAILER config lines.

Then regenerate your sendmail config with sendmailconfig to regenerate things.

Have another answer? Share your knowledge.