Running Ubuntu 10.04 LTS why is it trying to use the sendmail app? Didn't have to use this in D6 and I did have this working in D7, but can not figure out why its not working now.

1) Drupal:
I get these message:
* SMTP.module is active.
* The configuration options have been saved.
* SMTP.module is active.
* A test e-mail has been sent to ericqwickmiller@yahoo.com. You may want to check the logs for any error messages.

2) Drupal:
Unable to send e-mail. Contact the site administrator if the problem persists.

3) from apache error.log:
sh: /usr/sbin/sendmail: not found

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

v.zhakov’s picture

I use ubuntu 10.04 too. But it module works.
Does you get test email?
Does users get their account information (request password operation)?

Which operation give you this answer: "Unable to send e-mail. Contact the site administrator if the problem persists." ?

Vc Developer’s picture

Hi, thanks for the response!

Does you get test email? - No
Does users get their account information (request password operation)? - No

Which operation give you this answer: "Unable to send e-mail. Contact the site administrator if the problem persists." ? - when I do a test and when user try to create a account.

I've since then switch to Windows 2008 Datacenter R2 using Hyper-V and create a Windows 2008 R2 Web Server VM. My Web Server is using WampServer2 and now using the PHPMailer, because I wanted to use the HTLM Mailer.

...I still would like to get Ubuntu running, but have not spent time on it. Any suggesting on a solution?

v.zhakov’s picture

If you don't have test email, select checkbox "enable debugging" and try to send test email.
May be after read debug information, you will solve your problem.

So you may give me read debug information.

Vc Developer’s picture

Ok, I will get back with you on that.

akcakaya’s picture

Hello,

I updated my drupal 6 site to drupal7. I installed and configured SMTP module but i cant send emails. The error message is;
Unable to send e-mail. Contact the site administrator if the problem persists.

I checked apache error logs;
sh: /usr/sbin/sendmail: No such file or directory

I reinstalled contact module a few times, but i couldnt solve the problem.

Do you have any suggestion?

Best,

wundo’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Please enable the SMTP debugging and paste the output ehre.

rafhuys’s picture

hi,

this is the output that I'm getting:

SMTP -> ERROR: EHLO not accepted from server:
Bad Request (Invalid URL)

SMTP -> ERROR: HELO not accepted from server:
SMTP -> ERROR: AUTH not accepted from server:
SMTP -> NOTICE: EOF caught while checking if connectedSMTP Error: Could not authenticate.

I believe I hoave connection but failed authentication.

Any idea what went wrong?

Thank you,

Raf

v.zhakov’s picture

What is your smtp provider? Try to use gmail.

rafhuys’s picture

Hi,

it works with gmail. But we purchased a mail server for production.
The guys from hosting tell that the credentials/authentication I use are correct, and that they cannot help me with my php code...(of course)
So I don't know if there are any other variables that need to be taken into account...

Like I said, I did some quick debugging and noticed that connection is created, but after that (at the authentication step) I recieve the error message. I must have done something wrong, although there is not much I can do wrong either...

Since I don't know anything about mail servers:

Does this module work with any kind of mail server?

v.zhakov’s picture

Try to set up desktop client for your mail server.
Maybe you will see some settings for you SMTP module configuration.

wundo’s picture

Status: Postponed (maintainer needs more info) » Fixed

@rafhuys, yes this module works for any SMTP server, check if you're connecting in the right port or if you're server supports (requires?) SSL or TLS.

wundo’s picture

@rafhuys, yes this module works for any SMTP server, check if you're connecting in the right port or if you're server supports (requires?) SSL or TLS.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jenlampton’s picture

Priority: Normal » Major
Status: Closed (fixed) » Active

It looks like this issue was marked as fixed by accident, there is no fix or patch posted here. Re-opening. Also, changing status to major, since our sites can't send mail until this is resolved :)

Joe_Smith’s picture

Issue summary: View changes

I am also having this problem.

Eugene Fidelin’s picture

The same issue here:
SMTP module is enabled. I can connect to SMTP server by telnet, but when trying to send email via Drupal site, got this error:

sh: 1: /usr/sbin/sendmail: not found

The reason was that even if SMTP module is enabled and variable 'smtp_on' is TRUE - you still should submit SMTP admin configuration form to change mail system to be 'SmtpMailSystem'.
It is not possible if you deploy your configuration with Features module or have them in settigs.php file, etc.
So you should explicitly specify value for ''mail_system' variable, for example:

$conf['mail_system']['default-system'] = 'SmtpMailSystem';
wundo’s picture

Status: Active » Closed (cannot reproduce)
jduhls’s picture

#16 was my issue. SMTP module config was deployed via features.

Update: you can strongarm "mail_system" in feature

joelwallis’s picture

It seems the best way to solve it is really versioning the mail_system variable with Strongarm. I spent a bit of time looking into Features' API to check if I could find a way to automate it but all options assume that SMTP exposes a component (well it makes sense, but I could only put it in y head only after trying to find any possible way :-P).

@wundo, reproducing this issue is quite simple: just enable smtp and then deploy the variable smtp_on through Features. Since you only define the mail_system variable when the SMTP status changes (@see smtp.admin.inc:247) you'll not apply it when it's already ON. The solution is simple: set the mail_system every time the SMTP form is submitted with smtp_on textfield checked.

The status of this ticket should change to "won't fix".

joelwallis’s picture