VMware Cloud Community
rKrs
Contributor
Contributor

ESXi 5.5 Can't send e-mail via console

Greetings everyone,

I've installed a ESXi 5.5 host for testing purposes and I'm currently trying to send an outbound e-mail via SSH console, but I'm not having any luck making it work.

The mail server accepts incoming connections over the standard SMTP port 25, tested via telnet on another machine and it works without any problems.

On the ESXi I connect over SSH and try to do the same thing with netcat but after I receive an initial response from the mail server all communication stops.

Note that I have added a firewall rule to allow outbound traffic over port 25 and even tried with the ESXi firewall completely disabled but nothing changed, I can't get past the initial mail server response.

I would appreciate if anyone could offer some advice on where to look next.

UPDATE> I fixed it ages ago but forgot to post an update, anyway the problem was in line termination characters (CR/LF) used in Windows e-mail servers and the specific netcat version used on ESXi 5.5 which does not send the mentioned CR/LF at the end of each line. Even the -C switch which should enable it to do so did not work properly with my e-mail server.

So in the end I changed the e-mail server to a Linux one which fixed the problem.

Message was edited by: rKrs

Reply
0 Kudos
1 Reply
wila
Immortal
Immortal

Hi,

The following bash script has email notifications, maybe you can match your code up with William's and see what you're doing wrong.

ghettoVCB.sh - Free alternative for backing up VM's for ESX(i) 3.5, 4.x & 5.x

--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos