Unable to send email.
Ninja Overlord - October 12, 2009 - 15:53
| Project: | Provision |
| Version: | 6.x-0.4-alpha2 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Okay, just updated to alpha2, and still am encountering this problem.
When using aegir through the GUI, I've always gotten this result: Unable to send e-mail. Please contact the site administrator if the problem persists. and it continues to undo everything it did up until that point.
When installing it via the command line, it seems to work. The command I execute as the aegir user is as follows:
/var/aegir/.drush/drush --root='/var/aegir/drupal-6.x' 'provision' 'install' 'mysite.com' --backend
And that seems to work fine.

#1
Also let me note that drupal can send mail fine on any of the sites that we set up without aegir, as well as the sites that we setup manually using drush provision form the command line... Is there some difference to the aegir drupal site running the script or doing it manually?
#2
Also, postfix seems to be working perfectly for the other sites on the server.
#3
I face with this issue too.
I'm able to send emails from the command line, also from non-aegir sites.
Even I can send email from the aegir manager site, but if i add a new site, i get the exactly the same as the initial post.
I'm ready to provide any info that could help here to figure out what's going on.
Also, "Sent welcome mail to " task finishes properly.
I turned on DB logging on aegir manager site and it seems that the error is from the newly created site.
Relevant snippet:
Sent welcome mail to intranet@example.comLogin url: -- login url --
Unable to send e-mail. Please contact the site administrator if the problem persists.
An error occurred at function : drush_provision_drupal_provision_install
Deleting sites/clonesource.-------.com/modules directory sucessful.
I'm going to debug on this a bit more on Monday, especially figure out the exact error message what occurs in drupal_mail function.
But anyone can point me where should i start fixing this, it would be great.
#4
We fixed this after much frustration. Our issue had to do with cron not able to access the sendmail command, which then caused the error.
we looked at this: http://groups.drupal.org/node/24854#cron and changed our cron command to add the path for sbin, and that solved the problem. Note: we're using a ubuntu install on a VPS.
# m h dom mon dow commandPATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
*/1 * * * * (php /var/aegir/.drush/drush.php --root=/var/aegir/drupal-6.x --uri=aegir.mysite.com hosting dispatch > /dev/null)
#5
Looks like this was fixed in HEAD, marking this fixed as well.
#323732: Improve the crontab entry to enhance portability
#6
#7
Automatically closed -- issue fixed for 2 weeks with no activity.