Project

General

Profile

Problems setting email

Added by A F 10 months ago

I am trying to set up the email configuration but when I send the test mail the following error appears. Any idea on how to solve it?

Thanks

AF


Replies (6)

RE: Problems setting email - Added by Brian BB 10 months ago

Have you setup your configuration.yml file yet?

RE: Problems setting email - Added by A F 10 months ago

Yes! I am not sure ifd there is something left but I configured like this

# = Redmine configuration file
#
# Each environment has its own configuration options.  If you are only
# running in production, only the production block needs to be configured.
# Environment specific configuration options override the default ones.
#
# Note that this file needs to be a valid YAML file.
# DO NOT USE TABS! Use 2 spaces instead of tabs for indentation.

# default configuration options for all environments
default:
    email_delivery:
      delivery_method: :smtp
      smtp_settings:
        enable_starttls_auto: true
        address: "smtp.gmail.com" 
        port: 587
        domain: "smtp.gmail.com" # 'your.domain.com' for GoogleApps
        authentication: :plain
        user_name: "xxxx@gmail.com" 
        password: "xxxx" 

RE: Problems setting email - Added by A F 10 months ago

Solved that problem, was due to some changes I did in the routes.rb

Nom I am facing the following one: An error occurred while sending mail (535-5.7.8 Username and Password not accepted. Learn more at )

I suppose is due to security from Gmail but I am still looking on how to solve it

RE: Problems setting email - Added by Brian BB 10 months ago

If you are using GMail, then yes you probably have some configuration to do on the GMail account. GMail turned off access to "less secure apps". It is still possible to use GMail though. You would need to go into the email account you are using for Redmine, and enable 2 factor authentication. Once that is done you can create an app password. You will need to take note of those credentials somewhere because you will not be able to retrieve them once the app password is set (you would just have to create a new app password).

With the app password created, you can use those credentials in your Redmine email configuration.

RE: Problems setting email - Added by A F 10 months ago

I have done it and I am not receiving any error right now but the test email and other emails are not arriving

# = Redmine configuration file
#
# Each environment has its own configuration options.  If you are only
# running in production, only the production block needs to be configured.
# Environment specific configuration options override the default ones.
#
# Note that this file needs to be a valid YAML file.
# DO NOT USE TABS! Use 2 spaces instead of tabs for indentation.

# default configuration options for all environments
default:
    email_delivery:
      delivery_method: :smtp
      smtp_settings:
        enable_starttls_auto: true
        address: "smtp.gmail.com" 
        port: 465
        domain: "smtp.gmail.com" # 'your.domain.com' for GoogleApps
        authentication: login
        user_name: xxxx@gmail.com 
        password: riasnjimimdazqeu #password from less secure apps

RE: Problems setting email - Added by A F 10 months ago

A F wrote in RE: Problems setting email:

It has been working until now but I had to change the email address. Now I am not receiving any errors but the test email and other emails are not being sent.
[...]

    (1-6/6)