My server cannot send registration emails to Gmail - for the Peertube app only

My YunoHost server

Hardware: VPS bought online
YunoHost version: 11.2.20.2 (stable).
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I realized after some time that many people register on our Peertube instance but they do not verify their emails. Apparently the server cannot send the registration emails to gmail - see:

<tromsite@gmail.com>: host gmail-smtp-in.l.google.com[142.251.168.26] said:
    550-5.7.26 Your email has been blocked because the sender is
    unauthenticated. 550-5.7.26 Gmail requires all senders to authenticate with
    either SPF or DKIM. 550-5.7.26  550-5.7.26  Authentication results:
    550-5.7.26  DKIM = did not pass 550-5.7.26  SPF [videos.trom.tf] with ip:
    [116.202.217.89] = did not pass 550-5.7.26  550-5.7.26  For instructions on
    setting up authentication, go to 550 5.7.26
    https://support.google.com/mail/answer/81126#authentication
    ffacd0b85a97d-36794ed8091si4676500f8f.540 - gsmtp (in reply to end of DATA
    command)
Reporting-MTA: dns; server.trom.tf
X-Postfix-Queue-ID: EB8A01DC9ADD
X-Postfix-Sender: rfc822; webmaster@videos.trom.tf
X-Postfix-Sender: rfc822; webmaster@videos.trom.tf

Final-Recipient: rfc822; tromsite@gmail.com
Original-Recipient: rfc822;tromsite@gmail.com
Action: failed
Status: 5.7.26
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.26 Your email has been blocked because the sender is unauthenticated. 550-5.7.26 Gmail requires all senders to
    authenticate with either SPF or DKIM. 550-5.7.26  550-5.7.26
    Authentication results: 550-5.7.26  DKIM = did not pass 550-5.7.26  SPF
    [videos.trom.tf] with ip: [116.202.217.89] = did not pass 550-5.7.26
    550-5.7.26  For instructions on setting up authentication, go to 550 5.7.26
    https://support.google.com/mail/answer/81126#authentication
    ffacd0b85a97d-36794ed8091si4676500f8f.540 - gsmtp

The server is able to send registration emails for other services we have via YNH. And directly too.

These are the configs for the Peertube SMTP:

# SMTP server to send emails
smtp:
  # smtp or sendmail
  transport: smtp
  # Path to sendmail command. Required if you use sendmail transport
  sendmail: null
  hostname: 'localhost'
  port: 25 # If you use StartTLS: 587
  username: *******
  password: *******
  tls: false # If you use StartTLS: false
  disable_starttls: true
  ca_file: null # Used for self signed certificates
  from_address: 'webmaster@videos.trom.tf'

email:
  body:
    signature: 'PeerTube'
  subject:
    prefix: '[PeerTube]'

It used to work…am not sure when it stopped working. Any suggestions?

Thanks!

EDIT: Forgot to mention that the Email YNH Diagnosis shows that all is configured ok.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.