Welcome Guest | Login

Email setup problems

Hi

I'm having problems with emails sent using a contact form on a RoR app on my account. The site is served by an addon domain setup in my cPanel, but the nameservers for this domain haven't been set to HostingRails.com. Instead, the DNS is handled by my 123-reg control panel since email needed to go to a different email server than HostingRails.

So, after setting up the correct DNS settings in my 123-reg account, I have changed the MX entry in my cPanel to point to mail.domain, but email still isn't getting through.

Is there anything I'm doing wrong?

Thanks
Jon

2008-08-02 04:16 PM

Hi - mail.domainname is an alias given to the mail server on which the domain is hosted. If you need to use different mail server other than our server, you need to edit the MX record at the currently used name servers to point to the respective mail server (MX record should a Fully Qualified Domain Name which points to the mail server IP). Editing MX through cPanel interface with our hosting will not work since you are not using the zone files on our name servers.

Also, Please avoid posting account specific information on forums.

2008-08-02 05:09 PM

Hi Varun

Sorry, I should have been clearer. The MX records at 123-reg have been setup as mail.domain, and email is being received when sent from a normal email client. The problem I am experiencing is only with emails sent to someone@domain using the "contact us" form on the RoR app.

It seems to me as though the HostingRails server is expecting to be fully managing the domain configured as an addon domain (including email sending) and is getting confused because it isn't finding the required email account locally.

Is this any clearer? If it can only be made clearer by mentioning account details, I can raise a support ticket.

On a slightly different but related note, is there a better way to configure a HostingRails account to only handle web/HTTP-hosting for a domain without setting up an addon domain? This is something I am finding I often want to do.

Thanks
Jon

2008-08-02 05:26 PM

Hi Jon,

You may want to use smtp settings below in your app specifying the correct email account login in your app's environment.rb file instead of sendmail settings (If this what you've done already)

ActionMailer::Base.delivery_method = :smtp  
ActionMailer::Base.server_settings = {  
 :address => "domain-of-smtp-host.com",
 :domain => "domain-of-sender.com",
 :port => 25,  
 :authentication => :login,  
 :user_name => "your_user_name",  
 :password => "*****" }  
ActionMailer::Base.perform_deliveries = true  
ActionMailer::Base.raise_delivery_errors = true  
ActionMailer::Base.default_charset = "utf-8"

I could see you've got a number of Addon domains and apps, it'd  better if you post a ticket with support so we assist you better if you need further domain/app specific help with this.

2008-08-02 07:06 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!