Adding a Mail Server to a Railo Instance
We turn off all GUI based administration consoles in our production environments, this includes Railo’s admin area.
If you need to configure your Railo instance to include an SMTP server, you can add a line in WEB-INF/railo/railo-web.xml.cfm
Open up that file (probably as sudo), look for the
The “smtp” attribute should be the IP address of your SMTP server. Also, if your SMTP server requires a username and password, you can add them like so:
At the end of the day your config entry should look something like:
1 2 3
Update - January 2013
I was googling something else when I came across a post on the Railo groups indicating that by default only error logging is enabled for mail. This means that in the event of an error (where Railo is unable to send the mail) you can check the WEB-INF/railo/logs/mail.log for information.
However, you can turn on info logging as well to presumably track whenever mail is actually sent. This can be done in either railo-server.xml or railo-web.xml. Eg:
1 2 3
This is really handy for us as we disallow access to the Railo admin GUI.