u-ichi / fluent-plugin-mail

Fluentd output plugin to send mail
https://rubygems.org/gems/fluent-plugin-mail
Other
48 stars 20 forks source link

Office365 not supported #44

Open jigetage opened 4 years ago

jigetage commented 4 years ago

Hi, when I use Office365 to send email, I encountered an error like this: "error_class: Net::SMTPAuthenticationError, error_message: 504 5.7.4 Unrecognized authentication type [BJXPR01CA011.CHNPR01.prod.partner.outlook.cn]"

Here is my config:

  host smtp.partner.outlook.cn # Change this to your SMTP server host
  port 587 # Normally 25/587/465 are used for submission
  user ***@***.com # Use your username to log in
  password ****** # Use your login password
  enable_starttls_auto true # Use this option to enable STARTTLS
  enable_tls false
  from ***@***.com # Set the sender address
  to ***@***.cn # Set the recipient address
  subject ' SERVICE ERRORS ()'
  message Total Service Staging error count: %s\n\nPlease check environment ASAP
  message_out_keys count # Use the "count" field to replace "%s" above

Is it because Office365 is not supported?

Could you help me to fix this problem? Looking forward to you reply. Any response would be highly appreciated.

ddsultan commented 4 years ago

Does anyone have the same problem as described above?

ddsultan commented 4 years ago

@jigetage, as it turns out that you need to specify authtype login, and the login and password should be of type string

jigetage commented 4 years ago

@jigetage, as it turns out that you need to specify authtype login, and the login and password should be of type string

thanks for your advice, i'll try it out.

cpina commented 3 years ago

@jigetage, as it turns out that you need to specify authtype login, and the login and password should be of type string

Same problem, same solution :-) Thanks for posting this! :-)