I am developing a ruby on rails application which sends out emails. When I try to send emails from mailer is says 553 : Sender address rejected: not owned by user X.
But I try to send an email manually using Net::SMTP it goes well. I am kind of stuck for the release. Please help!!!
Your mail server is configured to check if the client is allowed to send mail with the supplied sender address. Your application does not authenticate itself as a user who is allowed to use the email address ("x" in your question) as a sender.
See this forum post. Likely when you try it manually you are logging in under a different name than your application.
Related
is there any REST API for roundcube?
I have this need:
I developed a software where it sends some emails to clients and we need to save the sent mails in the "sent" folder.
I searched a lot and all tutorials say that I have to use the auto_bcc but I need to simulate the client's behavoiur, I mean, when the boss access the "automatic#domain.com" mailbox by using roundcube or another email client, he can see the sent folder and the sent mails (not in the inbox), so I was thinking that if I can connect to roundcube and simulate a mail sending, roundcube will save the mail in the sent folder.
I hope I have explained myself
Thanks
You not specify coding language ... in case you use php, use PHPmailer for send the emails.
PHPmailer use resident email server of your system to operate. This means PHPmailer and Roundcube use same standard (inbox/outbox) folders of each user.
Then simply send the email using phpmailer and the email shown in Sent folder !! Look this message shows as unread in Roundcube, you need to set up a filter inside Roundcube if you want to mark as read and/or move this emails to a specific folder.
I have a fully functional Keycloak setup with verify email and then update password features enabled. I have tested multiple times and the mail sending part is working perfectly. But some clients reporting that they didn't receive the registration mail. This maybe due to their firewall, spam filter and so on, now I want way to check whether the email has sent from my system or not. Logs won't help at all, cannot find anything related to sent mails in logs.
I'm trying to set up inbound mail with mailgun. I want to receive email at support#mydomain.com. (changed for privacy)
All Mailgun's DNS checks pass.
I have a route set up. The expression is match_recipient("support#mydomain.com") and the action is forward("me#gmail.com")
When I use the route testing tool it correctly matches my route.
But when I send email in real life to support#mydomain.com, I get a failure notice. The error message is:
Your message cannot be delivered to the following recipients:
Recipient address: support#mydomain.com
Reason: Remote SMTP server has rejected address
Diagnostic code: smtp;550 5.7.1 Relaying denied
Remote system: dns;mxb.mailgun.org (TCP|17.172.80.96|58312|52.5.239.85|25) (ak47 ESMTP ready)
What step am I missing here?
I know this is over a year old, but since I spent 4 hours trying to figure this out, I will share my solution:
My mailgun account wasn't verified. I saw someone suggest this but I figured they just meant that I had to verify the address I was forwarding to. Nope, when I logged it today I saw a banner at the top saying click here to resend your verification email. I did that, it went through a text message verification process, and all immediately started working!
I use my host for webmail. I can send email to yahoo and other webmail, but I can't send to Gmail or google app.
error:
Mail delivery failed: returning message to sender
tinhphaistc#gmail.com
SMTP error from remote mail server after end of data:
host gmail-smtp-in.l.google.com [74.125.129.26]:
550-5.7.1 [103.3.245.71 1] Our system has detected an unusual rate of
550-5.7.1 unsolicited mail originating from your IP address. To protect our
550-5.7.1 users from spam, mail sent from your IP address has been blocked.
550-5.7.1 Please visit http://www.google.com/mail/help/bulk_mail.html to review
550 5.7.1 our Bulk Email Senders Guidelines. hb2si3576957pac.234 - gsmtp
Your server must be on blacklist and Google is rejecting emails from your IP. Simple fix is Change IP :( and make sure your CMS (Joomla, or wordpress usually) is patched and up to date.
according to mail headers it seems that bulk mails had sent from your server due to this your IP has blocked in gmail. If you are sending bulk mails then go through Bulk Senders Guidelines or if you are not sending bulk mails then check if spam mails had sent from your server.
When someone sends an email message, it can view on openerp inbox but the outgoing email sends again thru the configuration email address I set up.. why is it so?
I'm using Openerp v7.0.. I used the Outgoing Mail Server in the Settings > Technical > Email > Outgoing Mail Servers.
When someone sends an email and openerp retrieved it, it sends again and again an email but by using the email address I configure.
Your question is not quite clear[1], but this sounds like the default and correct behavior. When an OpenERP user receives an external email message, they will by default receive a copy of the email at their own email address (configured in their user preferences).
Let's say someone replies to a CRM Lead assigned to me (by sending an email to info#mycompany.com, which is imported via the fetchmail module into my OpenERP server): I want to receive a copy of this message in my real inbox at myname#mycompany.com).
In OpenERP 7.0 this behavior can be controlled in the "Email Preferences" of the user profiles: you can choose to receive email notification about new comments and new external emails, or about new external emails only, or no notification whatsoever.
[1]: The following information would help: the version of OpenERP you're using, how the emails are being fed to OpenERP (fetchmail module, mail gateway script, something else...), what email addresses are being fed to OpenERP, what email is configured on the user profiles, etc.