I have a company intranet site programmed in Rails on an EC2 instance running OpenVPN. I'm using the basic email configuration for Rails similar to as described in the Rails guide:
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => 'baci.lindsaar.net',
:user_name => '<username>',
:password => '<password>',
:authentication => 'plain',
:enable_starttls_auto => true }
The only real difference being it points to our Microsoft Online server instead of Gmail. Anyhow, If I kill the OpenVPN process, the mail sends fine. Obviously this is not a good solution. How should I configure OpenVPN to allow the outgoing email?
I'm the programmer of the intranet site, not the sysadmin who configured the OpenVPN so I'm a little unsure of where to begin or what to check.