Unable to send email alert notification Via SMTP relay
search cancel

Unable to send email alert notification Via SMTP relay

book

Article ID: 374093

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Unable to send email alert notification via SMTP relay .

Environment

vCenter 7.x,8.x

Cause

  • messages.log


    2024-07-25T15:32:55.228957+08:00 localhost auditd[1766]: Audit daemon rotating log files
    2024-07-25T15:32:58.827064+08:00 localhost sendmail[16710]: My unqualified host name (localhost) unknown; sleeping for retry
    2024-07-25T15:33:01.439740+08:00 localhost CROND[16835]: (root) CMD ( test -x /usr/sbin/vpxd_periodic && /usr/sbin/vpxd_periodic >/dev/null 2>&1)
    2024-07-25T15:33:01.439773+08:00 localhost CROND[16836]: (root) CMD (. /etc/profile.d/VMware-visl-integration.sh; /usr/lib/applmgmt/backup_restore/scripts/SchedulerCron.py >>/var/log/vmware/applmgmt/backupSchedulerCron.log 2>&1)
    2024-07-25T15:33:06.954867+08:00 localhost sendmail[17484]: My unqualified host name (localhost) unknown; sleeping for retry
    2024-07-25T15:33:06.979247+08:00 localhost sendmail[17487]: My unqualified host name (localhost) unknown; sleeping for retry
    2024-07-25T15:33:15.295641+08:00 localhost sendmail[19343]: My unqualified host name (localhost) unknown; sleeping for retry
    2024-07-25T15:33:15.305024+08:00 localhost sendmail[19350]: My unqualified host name (localhost) unknown; sleeping for retry
    2024-07-25T15:33:15.995963+08:00 localhost sendmail[11990]: unable to qualify my own domain name (localhost) -- using short name
    2024-07-25T15:33:16.016574+08:00 localhost sendmail[11994]: unable to qualify my own domain name (localhost) -- using short name

    2024-07-25T15:33:16.047263+08:00 localhost sendmail[11990]: 46P7XFlc011990: [email protected], size=1045, class=0, nrcpts=1, msgid=<202407250733.46P7XFlc011990@localhost>, relay=root@localhost
    2024-07-25T15:33:16.089231+08:00 localhost sendmail[11994]: 46P7XGoR011994: [email protected], size=1049, class=0, nrcpts=1, msgid=<202407250733.46P7XGoR011994@localhost>, relay=root@localhost
    2024-07-25T15:33:16.137007+08:00 localhost sendmail[19608]: 46P7XGiM019608: from=<[email protected]>, size=1256, class=0, nrcpts=1, msgid=<202407250733.46P7XFlc011990@localhost>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
    2024-07-25T15:33:16.137079+08:00 localhost sendmail[19608]: 46P7XGiM019608: to=<[email protected]>, delay=00:00:00, mailer=relay, pri=31256, dsn=4.4.3, stat=queued

  • Based on the logs the messages state is in queue only, It is trying to search for SMTP gateway. (It has never come out side from queue

 

Resolution

-DNS record is created for both side (VC and SMTP)
-Add DNS in VAMI - Networking page. (Makesure we do have vCenter snapshot created)
-once done check on vCenter ssh 

cat /etc/resolve.conf    (DNS entry is created)

-Make sure we have FQDN entry in /etc/hosts file


service-control --stop --all && service-control --start --all

sudo systemctl restart sendmail

systemctl status sendmail