Problem with sendmail config

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:

*** 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:

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.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


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.