VMware

This Question is Not Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
4 Replies Last post: Jan 5, 2009 8:35 AM by damccumb  

Change default email Notification port posted: Dec 23, 2008 5:32 PM

Click to view damccumb's profile Novice 30 posts since
Sep 10, 2007
Hey all,
Ok, I have look in the forums and I have not been able to find anything. I hope there is a quick and easy answer for this.

I am configuring mail notifications and have run into a little problem. i need to change the smtp port that VC sends the message out on. here is the error:
2008-12-23 19:58:07.818 'App' 2060 error VpxdMail Failed to send the mail to SMTP server X.X.X.X:X at port 25. Error=The transport failed to connect to the server.

As you can see I have tried to enter the <server-address>:port and it seems to still be sending the traffic to port 25. This is a company policy to change the default smtp port so I really dont want to fight it if I can avoid it.

how do I change this port in VC! thanks everyone in advance.

-David

Re: Change default email Notification port

3. Jan 2, 2009 11:53 PM in response to: damccumb
Click to view Craig Baltzer's profile Expert 401 posts since
Oct 3, 2005
Hi Dave. I did a bit of digging around and it looks like the port # for SMTP is in the VC database itself. The "name" value in the database is mail.smtp.port, so based on your other links I'd say that you should be able to change the port by going into Administration, VirtualCenter Management Server Configuration, Advanced Settings, then entering a key of "mail.smtp.port" and a value of whatever you want it to be set to. You'd then need to reboot the VC server (or at least restart the VC service) to get the changes to take effect.

You can verify that the change "stuck" by looking at the vpxd.cfg file (on the VC server under Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter). That's an XML format file so you'll see the entry as a series of "nested" entries rather than as "mail.smtp.port". Note that the change does NOT appear in the VC UI, so you won't see anything if you go back to Administration, VirtualCenter Management Server Configuration, Advanced Settings again.

According to the docs I read the entries in the vpxd.cfg file will override whatever is in the database, so that should work. If it doesn't then you can try the unsupported way by changing the database itself. Beware that this is completely unsupported, and while I don't see any reason that it should break anything, it may hopelessly screw up your VC database forcing you to restore from backup or re-install. The change may also be "undone" by doing something like changing the SMTP server name at a later date from the VI client. Proceed at your own risk :-).

  1. Download a copy of MS SQL Server Management Studio Express (a.k.a. SSMSE) (http://www.microsoft.com/downloads/details.aspx?FamilyId=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&displaylang=en)
  2. Install SSMSE on your VC box
  3. Start SSMSE and connect to the VC database instance. If you've installed SQL Express on the VC server itself the server and instance will be automatically populated (i.e. VCServerName\SQLEXP_VIM), otherwise enter the database server housing the VC database and Connect
  4. Open Databases, VIM_VCDB, Tables then right-click on dbo.VPX_PARAMETER and pick "Open Table". In the NAME column go down to mail.smtp.port and then change the VALUE column to be the port number you want.
  5. Click on another row to save the value (you'll see the little "Pencil" in front of the mail.smtp.port row disappear)
  6. Close SSMSE
  7. Reboot the VC server

Hope one of these work for you...

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