ConfigMgr

VMware, Azure and Automation

vCenter not using SMTP smarthost but DNS

8 juni 2019 Solutions VMware

The other day I had scheduled a task for a VM and I wanted to get an email notification about the status of that job. So I configured the notification.

But the next morning I didn’t find a confirmation email in my inbox. Strange!

So I checked the email settings of vCenter and everything looked ok. The mailserver was configured and the sender address. So what could prevent the email from sending?

I checked /var/log/vmware/vpxd.log and found out that it was trying to send email to the mail host that came from the MX record for the domain I used for the recipient. But that was the public mail server and for obvious reasons not reachable from within the LAN. But why did vCenter used the MX record found in DNS? I specified a mail server so please vCenter, use it…

The solution was to edit the file submit.cf.

  1. Go to /etc/mail and edit the file submit.cf
  2. Look for these lines:
    #"Smart" relay host (may be null)
    DS
  3. After the “DS”, enter the FQDN of the smart host you want to use.
    #"Smart" relay host (may be null)
    DS mailserver.domain.com
  4. Restart sendmail with this command:
    systemctl restart sendmail.service
SMTPvCenter

vRO - Creating a test copy of your appliance

Find a datastore or RDM by LUN ID

Recent Posts

  • Using API for Aria OPS Chargeback
  • Unable to set reservation on Org VDC
  • Veeam Tweaks
  • VCF Anyone? Get your license for free…
  • Configure Entra ID as Cloud Director IdP

Recent Comments

Geen reacties om te tonen.

Archives

  • april 2025
  • maart 2025
  • november 2024
  • oktober 2024
  • januari 2024
  • november 2023
  • oktober 2023
  • september 2023
  • juni 2023
  • mei 2023
  • april 2023
  • november 2022
  • maart 2021
  • februari 2021
  • januari 2021
  • november 2020
  • oktober 2020
  • september 2020
  • juli 2020
  • juni 2020
  • april 2020
  • maart 2020
  • februari 2020
  • oktober 2019
  • september 2019
  • juli 2019
  • juni 2019
  • mei 2019
  • maart 2019
  • februari 2019
  • januari 2019
  • december 2018
  • november 2018
  • april 2018
  • januari 2018
  • juli 2017
  • juni 2017
  • mei 2017

Categories

  • AnyLinq
  • Azure
  • Cloud Director
  • ConfigMgr
  • DIY
  • HomeAssistant
  • Microsoft
  • PowerCli
  • Powershell
  • SCCM
  • Script
  • Solutions
  • System Center
  • Veeam
  • VMware
  • vRealize Automation
  • vRealize Orchestrator
Proudly powered by WordPress | Theme: Doo by ThemeVS.