Project

General

Profile

Help with getting the mail component working

Added by LV Lockhart over 11 years ago

I am having problems trying to get the mail component to work. I have redmine loaded on Windows Server 2008. I have IIS running on port 80 and redmine (Apache) running on port 81. The application is working fine but none of the email functions are working. I have a mail relay server on our network that has a white list so I do not need any usernames or password to send emails. This server has other applications (php) that can send mail with no problems but redmine will not send mail at all. I have the "BitNami Redmine" installation.

LV


Replies (10)

RE: Help with getting the mail component working - Added by William Roush over 11 years ago

What is in your configuration.yml?

You should have something like this:

# default configuration options for all environments
default:
  # Outgoing emails configuration (see examples above)
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: mymailserver.localdomain.local
      port: 25

RE: Help with getting the mail component working - Added by LV Lockhart over 11 years ago

It still didn't work. I change the configuration file as noted but no emails. Is there something, I need to do the IIS itself to get it to work? Do I need to create a local smtp server then relay it the our relay server on the network?

LV

RE: Help with getting the mail component working - Added by William Roush over 11 years ago

Run this:

telnet mymailserver.localdomain.local 25
helo redmine.localdomain.local
mail from: [redmineaddress]
rcpt to: [youraddress]
data
test

quit

Confirm that your mail server is properly relaying mail...

RE: Help with getting the mail component working - Added by LV Lockhart over 11 years ago

I am very much sure that the central mail server is working. All mail from all web or mail enabled program go through this server.

I tested from all my web apps (php, aspx and any microsoft mail enabled windows systems such as mssql..etc. Even on this particular server, it has a php web application in IISthat can send mail through the relay server but Apache/Redmine apps is not at all.

LV

RE: Help with getting the mail component working - Added by William Roush over 11 years ago

Run redmine in development mode and upload logs/development.log

RE: Help with getting the mail component working - Added by LV Lockhart over 11 years ago

I am new to Redmine. How I do I run it in development mode and where are the logs to upload them. I google and found that I may have to reinstall the services because it is s Windwos Server 2008. It is not very easy to change a Windows installation from production to development.

LV

RE: Help with getting the mail component working - Added by William Roush over 11 years ago

How do you have Redmine installed? Passenger module on Apache? Set rails_env to "development" instead of "production".

Or did you just use the Bitnami install?

I google and found that I may have to reinstall the services because it is s Windwos Server 2008. It is not very easy to change a Windows installation from production to development.

It definitely wont take that much work, I just need to know how you're configured if it isn't the above way, being as there are about a billion ways to have Ruby on different environments. :\

RE: Help with getting the mail component working - Added by LV Lockhart over 11 years ago

I just downloaded the BitNami Redmine and executed it. The Bitname installation did everything on installation. I just needed to provide the username and passwords for the database and Redmine. So, I really cannot answer that. I am learning at the moment on how this environment works.

LV

RE: Help with getting the mail component working - Added by William Roush over 11 years ago

LV Lockhart wrote:

I just downloaded the BitNami Redmine and executed it.

Oh ok, great, I don't have a BitNami install for Windows handy at this moment, but I'll have one soon that I can look into and walk you though setting it up for development logging.

RE: Help with getting the mail component working - Added by William Roush over 11 years ago

c:\Program Files\BitNami Redmine Stack\apps\redmine\scripts\serviceinstall.bat

Where it says " -e production" make it say " -e development"

@echo off
rem -- Check if argument is INSTALL or REMOVE

if not ""%1"" == ""INSTALL"" goto remove

"C:\Program Files\BitNami Redmine Stack\ruby\bin\ruby.exe" "C:\Program Files\BitNami Redmine Stack\ruby\bin\mongrel_rails" service::install -N "redmineMongrel1" -p 3001 -e production -c "C:\Program Files\BitNami Redmine Stack/apps/redmine" --prefix /redmine -l "log/mongrel.log" -S "C:\Program Files\BitNami Redmine Stack/apps/redmine\scripts\mongrel_rails_envvars" 
sc config redmineMongrel1 start= auto
net start redmineMongrel1 >NUL
"C:\Program Files\BitNami Redmine Stack\ruby\bin\ruby.exe" "C:\Program Files\BitNami Redmine Stack\ruby\bin\mongrel_rails" service::install -N "redmineMongrel2" -p 3002 -e production -c "C:\Program Files\BitNami Redmine Stack/apps/redmine" --prefix /redmine -l "log/mongrel2.log" -S "C:\Program Files\BitNami Redmine Stack/apps/redmine\scripts\mongrel_rails_envvars"                                                                                                                                     
sc config redmineMongrel2 start= auto                                                                                                                                                          
net start redmineMongrel2 >NUL

goto end

:remove
rem -- STOP SERVICE BEFORE REMOVING

net stop redmineMongrel1 >NUL

"C:\Program Files\BitNami Redmine Stack\ruby\bin\ruby.exe" "C:\Program Files\BitNami Redmine Stack\ruby\bin\mongrel_rails" service::remove -N "redmineMongrel1" 

net stop redmineMongrel2 >NUL

"C:\Program Files\BitNami Redmine Stack\ruby\bin\ruby.exe" "C:\Program Files\BitNami Redmine Stack\ruby\bin\mongrel_rails" service::remove -N "redmineMongrel2" 

:end
exit

Goto:

c:\Program Files\BitNami Redmine Stack

run "serviceinstall.bat REMOVE"

run "serviceinstall.bat INSTALL"

This will reconfigure redmine to run in development, logs are in:

c:\Program Files\BitNami Redmine Stack\apps\redmine\log

    (1-10/10)