Outgoing email configuration (An error occurred while sending mail (execution expired))
Added by Robert Zeepers about 13 years ago
Hi,
(Tool specification below)
I'm trying to configure my outgoing mails by using gmail. I have configured my configuration.yml as indicated in the howto (http://www.redmine.org/projects/redmine/wiki/EmailConfiguration). Specifically, my configuration.yml is:
default:
delivery_method: :smtp
smtp_settings:
tls: true
enable_starttls_auto: true
address: "smtp.gmail.com"
port: 587
domain: "smtp.gmail.com"
authentication: :plain
user_name: my_email@gmail.com"
password: "mypassword"
I'm trying to send a test e-mail, but each and everytime get the message "(An error occurred while sending mail (execution expired)". For the life of my I am unable to solve the problem. Any help (even pointers) are highly appreciated.
Thank you in advance,
Robert
P.S. The server is hosted @ localhost:3000.
Tool specification:
OS: Ubuntu11.04 (32 bit)
Ruby version: 1.8.7 (2010-18-16 patchlevel 302) [i686-linux]
Rails: 2.3.5
Database: MySQL Ver 14.14 Distrib 5.1.54, for debian-linux-gnu (i686) using readline 6.2
Ruby server used: Webrick
Ruby version: 1.8.7 (i686-linux)
RubyGems version: 1.3.7
Rack version: 1.1.2
Rails version: 2.3.11
Active (all) ^
Application root: /usr/share/redmine2
Environment: production
Database adapter: mysql
Database schema version: 20110511000000
Replies (3)
RE: Outgoing email configuration (An error occurred while sending mail (execution expired)) - Added by Robert Zeepers about 13 years ago
.
RE: Outgoing email configuration (An error occurred while sending mail (execution expired)) - Added by Simon Thompson about 13 years ago
Robert,
Having been through this pain yesterday (see http://www.redmine.org/boards/2/topics/26743 ) there's a couple of things I noticed.
- Many configs on various forums refer to the old email.yml file - when using configuration.yml it seems that you need the 'email_delivery:' line
- Some posts suggest that putting your password in quotes is a problem. I certainly didn't use them
- Finally, your testing may already have upset your gmail account. Check you can login OK and that you haven;t fallen foul of 'suspicious activity'
If all that fails you are going to have to check your connection from the VM - it could be a configuration issue.
RE: Outgoing email configuration (An error occurred while sending mail (execution expired)) - Added by Robert Zeepers about 13 years ago
Hi Simon,
Thanks for the comments. After trying the bitnami stack, it didn't work (and this is as plug-and-play as it gets).
It turns out to be an environment related issue - when using the exact same setup in a different place everything is working correctly. While this is is still not resolved (but it could be an isp / firewall or other related issue to the ports), for now this is acceptable.
Cheers,
Robert