Redmine email notification error " An error occurred while sending mail (getaddrinfo: Temporary failure in name resolution) " - redmine

I am using redmine 2.5 version, last one week email notification are not working. It's worked before. Now getting error " An error occurred while sending mail (getaddrinfo: Temporary failure in name resolution) ".
This is my email configuration
email_delivery:
delivery_method: :smtp
smtp_settings:
address: smtp.rediffmail.com
port: 25
# ssl: true
# enable_starttls_auto: true
domain: rediffmail.com
authentication: :login
user_name: "XXXXXX#rediffmail.com"
password: "XXXX"

This is not a Redime problem, but a DNS problem. Check if you can send the mail to the problematic address from your standard email client.

Related

Get email notification from github actions failure using AWS SES

I have configured github Action for automate the app deployment. What i am trying now is to get the email notification on action failure using AWS SES. I have used the send mail feature as given in the link.
1. https://github.com/marketplace/actions/send-email
Here is my code
- name: Send mail
if: always()
uses: dawidd6/action-send-mail#v3
with:
# mail server settings
server_address: ${{secrets.SMTP_HOST}}
server_port: 465
# Optional (recommended): mail server username:
username: ${{secrets.SMTP_USERNAME}}
# Optional (recommended) mail server password:
password: ${{secrets.SMTP_PASSWORD}}
# email subject
subject: ${{ github.job }} job of ${{ github.repository }} has ${{ job.status }}
# email body as text
body: ${{ github.job }} job in worflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }}
# comma-separated string, send email to
to: xyz#example.com
# from email name
from: 'abc#example.com'
Note:
my domain example.com is already verified in SES
my to and from addresses are alreay verified in SES
I am not in sandbox mode
Error I am getting
with:
server_address: ***
server_port: 465
username: ***
password: ***
subject: job1 job of ***/pv-core has success
body: job1 job in worflow TestCI of ***/pv-core has success
to: xyz#***.com
from: *** "abc#***.com"
Error: Mail command failed: 501 Invalid MAIL FROM address provided
Expectd output
Need to get alert to xyz#example.com (its alias email which will send to team of 5 members)
whenever the action fails
https://github.com/dawidd6/action-send-mail/pull/38#issuecomment-923132798
If you check the PR the owner mentioned it is out of scope.

Redmine Office 365 Email Configuration Error

This is the config/configuration.yml file I use:
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: true
address: "smtp.office365.com"
port: 587
domain: "smtp.office365.com"
authentication: :login
user_name: "xxx#xxx"
password: "xxx"
when I send test mail in Redmine, it results to this error:
vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.4.2/lib/action_dispatch/middleware/cookies.rb:649:in `commit'
vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.4.2/lib/action_dispatch/middleware/cookies.rb:484:in `[]='
vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.4.2/lib/action_dispatch/middleware/session/cookie_store.rb:116:in `set_cookie'
vendor/bundle/ruby/2.5.0/gems/rack-2.2.2/lib/rack/session/abstract/id.rb:403:in `commit_session'
/usr/local/rvm/gems/ruby-2.5.3/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
/usr/local/rvm/gems/ruby-2.5.3/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:157:in `accept_and_process_next_request'
What can I do to prevent this problem?

ERROR: The request could not be satisfied CloudFront

I am struggling to send emails to my server hosted on aws elastic beanstalk, using certificates from cloudfront, i am using nodemailer to send emails, it is working on my local environment but fails once deployed to AWS
Email Code:
const transporter = nodemailer.createTransport({
host: 'mail.email.co.za',
port: 587,
auth: {
user: 'example#email.co.za',
pass: 'email#22'
},
secure:false,
tls: {rejectUnauthorized: false},
debug:true
});
const mailOptions = {
from: 'example#email.co.za',
to: email,
subject: 'Password Reset OTP' ,
text: `${OTP}`
}
try {
const response = await transporter.sendMail(mailOptions)
return {error:false, message:'OTP successfully sent' , response}
}catch(e) {
return {error:false, message:'Problems sending OTP, Please try again'}
}
Error from AWS:
The request could not be satisfied
504 ERROR The request could not be satisfied CloudFront attempted to
establish a connection with the origin, but either the
attempt failed or the origin closed the connection.
NB: The code runs fine on my local

Redmine Email Configuration - An error occurred while sending mail (530 5.7.0 Authentication required )

My configuration.yml looks like this
default:
configuration
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "mail.example.com"
port: 25
domain: "example.com"
authentication: :login
user_name: "redmine#example.com"
password: "xxxxxxxx"
I am getting the message An error occurred while sending mail (530 5.7.0 Authentication required ) while treying to send a test mail.
I have tried out different options with starttls, removing.adding quotes. It does not work. The configuration details work fine with Thunderbird. Somehow it does not work here.
Please note my redmine setup is on AWS and my mail server is on another shared hosting. Does it has anything to do with the security groups?
Please guide me fix the issue. Thanks in adavance.
You need to change default to production or development, and configuration line is too much so your config would look like this:
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "mail.example.com"
port: 25
domain: "example.com"
authentication: :login
user_name: "redmine#example.com"
password: "xxxxxxxx"

error in redmine email notification via gmail

I setup redmine on Ubuntu 10.04.2
here is my email.yml:
# Outgoing email settings
production:
delivery_method: :smtp
smtp_settings:
tls:true
enable_starttls_auto: true
address: "smtp.gmail.com"
port: "587"
domain: "smtp.gmail.com"
authentication: :plain
user_name: "******#gmail.com"
password: "*****"
development:
delivery_method: :smtp
smtp_settings:
tls:true
address: "smtp.gmail.com"
port: "587"
domain: "smtp.gmail.com"
authentication: :plain
user_name: "******#gmail.com"
password: "*****"
I start the redmine server as root,login redmine with admin
then Administration>Settings>Email notifications
and then I send the test mail by clicking the link at bottom
But i got this:
An error occurred while sending mail (getaddrinfo: Name or service not known)
is there anyone who send email successfully via gmail?and please give me some suggestion
thanks advance!
-----------append1----------------
I copy the "production:" in the config/email.yml to "# ==== SMTP server at using TLS (GMail)production:" in the /etc/redmine/default/configuration.yml
and also modify the "# default configuration options for all environments" in buttom of configuration.yml
It works!
[CLOSED]