响应服务器553 5.7.1,553 5.7.1

In a rails4 application, I am trying to send emails by configuring smtp settings but I am getting the following error:

553 5.7.1 : Sender address rejected: not owned by user

admin@mydomain.com

I am using the following settings:

config.action_mailer.delivery_method = :smtp

ActionMailer::Base.smtp_settings = {

:address => "smtp.mydomain.com",

:port => 25,

:domain => "mydomain.com",

:user_name => "admin@mydomain.com",

:password => "CorrectPassword",

:authentication => :plain,

:enable_starttls_auto => true,

:openssl_verify_mode => 'none'

}

config.action_mailer.default_url_options = {:host => "mydomain.com"}

The same works when I use my gmail account settings. I got my domain from bigrock.com and all MX Records are verified. I am able to send emails manually (by logging in webmail.mydomain.com). This issue has delayed the release of my site by quite a few days. Please Help!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值