Simple Mail to SMS gateway using Portech MV 37X

MobileSMSIn this post I will describe how to make a simple Email to SMS Gateway, using Portech MV37x and PHP code running on a Linux server.

Operation is simple: the code will poll the configured imap a folder, and if detect a new email it will send a Short Message Service (SMS) using the Portech hardware device. The recipient’s mobile number must be specified in the email subject (the subject must be a number or the email will be ignored) and the text will be the body in the email itself (truncated to 140 chars).
Continue reading

Install PHP 5.3 on IIS 7 Windows 2008 SP2

phpTShirtIn this post I’ll write about installation process of PHP 5.3 on Windows 2008 SP2 (not R2), with Sql Server support.
After some headcaches I’ve found that in Windows 2008 SP2 (NOT R2) it is possibile to install PHP 5.3 at most: with subsequent releases version the Sql Server driver for PHP won’t work in any way (missing depencies and other problems). Continue reading

Interconnect IPCop to PFSense using IPSec

Twin-Baby-Pictures-12-290x280This post is just focused on building a vpn IPSec connection site-to-site between IpCop and PFSense.

Att: PfSense and IpCop boxes are using a public ip address on WAN side.

PFSense Configuration
– Go under VPN menu, option IPSec, and check Enable IPSec check box, and hit Save button. Then click the Add tunnel icon on the right side of the page, now you’ve a new page where you can specify VPN tunnel options.
– Mandatory Parameters
Uncheck Disabled
Key Exchange Version: V1
Internet Protocol: IpV4
Interface: WAN
Remote Gateway: The public ip address of IpCop box Continue reading

Sendmail on Debian 7: configuration makefile fails

EmailUsing Sendmail usually when you need to “recompile” the config file you have to launch the next command.

make -C /etc/mail/

In Debian you can get the next error.

make: Entering directory '/etc/mail'
Updating databases ...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Could not open /usr/share/sendmail-cf/m4/cf.m4(No such file or directory)
.....

Continue reading