VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
1 2 Previous Next 16 Replies Last post: Jun 7, 2009 11:11 PM by Texiwill  

SMTP mail settings posted: Jun 3, 2009 2:15 AM

Click to view kpc's profile Enthusiast 98 posts since
Jul 12, 2006
I've been trying to get vcenter to send out emails when alerts are triggered but none get sent. I get the following error from the server logs:

2009-06-03 09:10:56.337 'App' 97643408 verbose VpxdMoEventManager Event6485: Alarm IIS Alarm on hqfcriis01 failed to send e-mail to 55677@mydns.uk;
summary = "'From:' email address for email alerts (for example, alarm@company.com)",
key = "mail.sender",
key = "mail.smtp.port",
key = "mail.smtp.server",
key = "mail.sender",
key = "mail.smtp.port",
key = "mail.smtp.server",
action = (vim.action.SendEmailAction) {
action = (vim.action.SendEmailAction) {
action = (vim.action.SendEmailAction) {
action = (vim.action.SendEmailAction) {
label = "Send E-mail",
summary = "Action to send an e-mail",
key = "vim.action.SendEmailAction",
key = "vim.event.ScheduledTaskEmailCompletedEvent",
formatOnDatacenter = "Task {scheduledTask.name} on {entity.name} sent e-mail to {to}",
formatOnComputeResource = "Task {scheduledTask.name} on {entity.name} sent e-mail to {to}",
formatOnHost = "Task {scheduledTask.name} on {entity.name} sent e-mail to {to}",
formatOnVm = "Task {scheduledTask.name} sent e-mail to {to}",
fullFormat = "Task {scheduledTask.name} on {entity.name} in {datacenter.name} sent e-mail to {to}",
key = "vim.event.ScheduledTaskEmailFailedEvent",
formatOnDatacenter = "Task {scheduledTask.name} on {entity.name} failed to send e-mail to {to}: {reason.msg}",
formatOnComputeResource = "Task {scheduledTask.name} on {entity.name} failed to send e-mail to {to}: {reason.msg}",
formatOnHost = "Task {scheduledTask.name} on {entity.name} failed to send e-mail to {to}: {reason.msg}",
formatOnVm = "Task {scheduledTask.name} failed to send e-mail to {to}: {reason.msg}",
fullFormat = "Task {scheduledTask.name} on {entity.name} in {datacenter.name} failed to sent e-mail to {to}: {reason.msg}",
action = (vim.action.SendEmailAction) {
2009-06-03 09:41:38.220 'App' 89222032 verbose ScheduledTaskActionLRO Failed to send email. Error:Application Error - Invoke() command must exist/be executable: "/usr/sbin/ssmtp"
2009-06-03 09:41:38.235 'App' 89222032 verbose VpxdMoEventManager Event6586: Alarm state on hqfcrintranet04 failed to send e-mail to 55677@mydns.uk;
action = (vim.action.SendEmailAction) {

When looking on the CentOS serve for /usr/sbin/ssmtp it doesn't even appear to be installed - which is why the emails aren't being sent out, anyone else finding this?

Thanks

Re: SMTP mail settings

1. Jun 3, 2009 2:28 AM in response to: kpc
Click to view AndreTheGiant's profile Guru 5,935 posts since
Aug 28, 2008
When looking on the CentOS serve for /usr/sbin/ssmtp it doesn't even appear to be installed - which is why the emails aren't being sent out, anyone else finding this?

Seems that the mail class is not complete as the Windows one, and require a locat MTA relay agent.
Install ssmpt package and configure it to point to your real MTA.

Andre
**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Re: SMTP mail settings

3. Jun 3, 2009 2:57 AM in response to: kpc
Click to view AndreTheGiant's profile Guru 5,935 posts since
Aug 28, 2008
Downloaded the ssmtp rpm but there are a host of recurring dependencies,

The program is very simple, you can try to install without dependency, or try a older version.

Andre
**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Re: SMTP mail settings

5. Jun 3, 2009 3:55 AM in response to: kpc
Click to view AndreTheGiant's profile Guru 5,935 posts since
Aug 28, 2008
Try this:
ftp://ftp.pbone.net/mirror/hany.sk/%7Ehany/_data/RPM/doors4.0/ssmtp-2.60.3-1.i686.rpm

Andre
**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Re: SMTP mail settings

7. Jun 3, 2009 4:31 AM in response to: kpc
Click to view AndreTheGiant's profile Guru 5,935 posts since
Aug 28, 2008
That package doesn't exist anymore

I've download it just some minutes ago.

Cannot open 10.192.1.83:25

10.192.1.83 what is? You VC server or your SMTP server?

Try to send a mail manually (download mailx rpm)

Andre
**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Re: SMTP mail settings

9. Jun 3, 2009 5:27 AM in response to: kpc
Click to view AndreTheGiant's profile Guru 5,935 posts since
Aug 28, 2008
10.192.1.83 is my smtp server,

The above error say that your cannot reach it a port 25 (maybe a relay control or some spam control?).
Verify with telnet it a port 25 from VC.

I tried sending a mail from the command line using sendmail but got the same error

Use mailx, not sendmail.

did you get yours to work then?

For me the above package works fine (note the your have to configure the ssmtp.conf file).

Andre
**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Re: SMTP mail settings

11. Jun 3, 2009 7:04 AM in response to: kpc
Click to view AndreTheGiant's profile Guru 5,935 posts since
Aug 28, 2008
ssmtp: No recipients specified although -t

Is an error in passing parameters or in mail composing.
You have set email address in alarm, and email sender in option?

Andre
**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Re: SMTP mail settings

13. Jun 3, 2009 7:39 AM in response to: kpc
Click to view AndreTheGiant's profile Guru 5,935 posts since
Aug 28, 2008
It's a long shot but I recently changed the hostname of the vc server could that affect the mail?

I do not think.
The above error is related to a missing header in the email form.

Andre
**if you found this or any other answer useful please consider allocating points for helpful or correct answers

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities