Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Sendmail cannot be called directly from a shell with the current user id  (Read 2261 times)

0 Members and 1 Guest are viewing this topic.

vyshakhv

  • Newbie
  • *
  • Posts: 28
  • Karma: +0/-0
While sending email using sendmail scirpt, I was getting the error message as -

sendmail: sendmail cannot be called directly from a shell with the current user id

Solution -

1. Login to WHM using root access.
2. Follow - Home >> Server Configuration >> Tweak Settings
3. Disable the two options -

Code: [Select]
Track email origin via X-Source email headers
Prevent “nobody” from sending email

The issue is resolved. Email sent successfully.