How to configure sendmail for relaying mails to relay server using authentication ?

Solution Verified - Updated -

Issue

  • While sending mail to user through relay, authentication is failing to relay server.
# sendmail -Am -v -t
To: user@domain.com
from:localhost@localhost
Subject:test

>>> MAIL From:<user@hostname> SIZE=66
530-5.7.0 Authentication Required. Learn more at
530 5.7.0  https://support.google.com/mail/?p=WantAuthError iv6-20020a05600c548600b003a5f54e3bbbsm2750693wmb.38 - gsmtp
  • How to configure sendmail client which can relay mails to relay server with authentication ?

Environment

Red Hat Enterprise Linux 8
sendmail

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content