terça-feira, 11 de março de 2014

Jango SMTP - A new solution to an old system

Technology credits:
APC Symmetra RM 6000
APC AP9617 Network Management Card


So recently i've came across this UPS from APC, a Symmetra RM 6000. This system has the ability to sustain a load of up to 5.6kW (dependng on the number of power modules installed) and has a battery capacity of up to 6000kVA (depending on the number of batteries installed).

It was disabled for quite some time now, and the batteries were dead. As I wanted to know more about this (very) powerful UPS, I decided to configure the UPS Network Management Card (AP9617). I realized that this UPS is capabilities did not stopped at the amount of load this system could handle, but also that it was equipped with a network card capable of sending e-mails through SMTP servers.

Back in the days this AP9617 Web interface was developed the only thing they needed to send e-mails was the SMTP server address, some e-mail address and that's it.

Nowadays all SMTP servers require some sort of authentication and this AP9617 is not ready for it. Upgrading the Network Management Card was not an option as the company could not afford it. And updating the AP9617 firmware was not an option for me because i could not afford the risk of damaging the AP9617 Network card. So, i was stuck...

I tried to find some sort of SMTP provider that still allowed me to send e-mails without username/password and i found Jango SMTP! After a few configuration steps i was ready to go and started sending e-mails.

What's the catch?

Well... for Jango SMTP to be able to send e-mails for you, you have to provide them with your current IP Address, so that they know that the sender from IP AAA.BBB.CCC.DDD is a permitted sender and the servers can relay the message. As the systems IP Address kept changing we needed to update the systems IP address every time a new IP lease was issued. That's were the Java comes in to save the day and update that programmatically using the Jango SMTP API :)

If you want the code for this software please write me an e-mail to 'rochajoel' at GMail.