[solved] Could not execute: /usr/sbin/sendmail

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
FCazabon
Forum Members
Forum Members
Posts: 165
Joined: Fri Nov 07, 2008 5:28 pm

[solved] Could not execute: /usr/sbin/sendmail

Post by FCazabon »

I'm trying to configure CMSMailer to use sendmail and I get this error when trying to send a copy of a form to the user specified email address in the form:

Could not execute: /usr/sbin/sendmail

I guess it's not finding the script/executable, but I don't know where to look for it.

Any help much appreciated!

(sorry, I posted this in the wrong forum earlier today so I am re-posting where I think I should have done it in the first place)
Last edited by FCazabon on Mon Apr 13, 2015 11:56 am, edited 1 time in total.
khurram0336
New Member
New Member
Posts: 2
Joined: Tue Apr 07, 2015 9:55 am

Re: Could not execute: /usr/sbin/sendmail

Post by khurram0336 »

CMSMailer is used to send mail, but it must be configured to your host's requirements. Check with your host so that you have entered the right information.
FCazabon
Forum Members
Forum Members
Posts: 165
Joined: Fri Nov 07, 2008 5:28 pm

Re: Could not execute: /usr/sbin/sendmail

Post by FCazabon »

Thanks. Cmsmailer is properly configured as the test email works. The problem seems to be with the form when it tries to send an email to the email address filled in by the user. The form is done using form builder and the email from address field type is what is causing the problem. If I set it to fill the from field on the email it doesn't work, apparently because at least one of the sender or recipient needs to be a valid email account on the host. If I change the field to fill in the reply to field it works
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Could not execute: /usr/sbin/sendmail

Post by paulbaker »

In Extensions > CMS Mailer > From address: the email (on my hosting) needs to be something@TheHostedDomain.com.

If you still have issues, try Mailer method "mail" which is what I always use.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Could not execute: /usr/sbin/sendmail

Post by velden »

FCazabon wrote:Thanks. Cmsmailer is properly configured as the test email works. The problem seems to be with the form when it tries to send an email to the email address filled in by the user. The form is done using form builder and the email from address field type is what is causing the problem. If I set it to fill the from field on the email it doesn't work, apparently because at least one of the sender or recipient needs to be a valid email account on the host. If I change the field to fill in the reply to field it works
Yes, it's called email relaying and it's often not allowed. If the 'reply-to' option works just use that. It's probably the most convenient option.

If that doesn't work either you could choose to use a normal text input field for the visitor's email address.
FCazabon
Forum Members
Forum Members
Posts: 165
Joined: Fri Nov 07, 2008 5:28 pm

[solved] Re: Could not execute: /usr/sbin/sendmail

Post by FCazabon »

Thanks, I have used Reply-to only.
Post Reply

Return to “The Lounge”