Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#20 | applying-smtp-mail-system-when-smtp_on-is-true-1078106-19.patch | 985 bytes | joelwallis |
Comments
Comment #1
v.zhakov CreditAttribution: v.zhakov commentedI 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." ?
Comment #2
Vc Developer CreditAttribution: Vc Developer commentedHi, 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?
Comment #3
v.zhakov CreditAttribution: v.zhakov commentedIf 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.
Comment #4
Vc Developer CreditAttribution: Vc Developer commentedOk, I will get back with you on that.
Comment #5
akcakaya CreditAttribution: akcakaya commentedHello,
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,
Comment #6
wundo CreditAttribution: wundo commentedPlease enable the SMTP debugging and paste the output ehre.
Comment #7
rafhuys CreditAttribution: rafhuys commentedhi,
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
Comment #8
v.zhakov CreditAttribution: v.zhakov commentedWhat is your smtp provider? Try to use gmail.
Comment #9
rafhuys CreditAttribution: rafhuys commentedHi,
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?
Comment #10
v.zhakov CreditAttribution: v.zhakov commentedTry to set up desktop client for your mail server.
Maybe you will see some settings for you SMTP module configuration.
Comment #11
wundo CreditAttribution: wundo commented@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.
Comment #12
wundo CreditAttribution: wundo commented@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.
Comment #14
jenlamptonIt 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 :)
Comment #15
Joe_Smith CreditAttribution: Joe_Smith commentedI am also having this problem.
Comment #16
Eugene Fidelin CreditAttribution: Eugene Fidelin commentedThe 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:
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:
Comment #17
wundo CreditAttribution: wundo commentedComment #18
jduhls CreditAttribution: jduhls as a volunteer commented#16 was my issue. SMTP module config was deployed via features.
Update: you can strongarm "mail_system" in feature
Comment #19
joelwallis CreditAttribution: joelwallis as a volunteer commentedIt 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".
Comment #20
joelwallis CreditAttribution: joelwallis as a volunteer commented