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

Solution Verified - Updated -


  • While sending mail to user through relay, authentication is failing to relay server.
# sendmail -Am -v -t

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


  • Red Hat Enterprise Linux 8

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