SMS

From Mesopoly 3.0
Jump to navigation Jump to search

SMSserver - instalation and use

Installation and configuration are described on the download site.

    • Configuration page suggests that you use syntax 'inbox=directory' while default configuration file installed (/etc/smsd.conf) suggests (and works with !!!) usage 'incoming=yes', where it uses /var/spool/sms/incoming directory as default (created during installation)
    • To start sms daemon at boot add line '/etc/init.d/sms start' to /etc/rc.local (Fedora 3)

Database connectivity (linux to MSSQL)


Database querying and reporting to SMS

  • I created php file that queryies database and writes information to a small text file.
  • Entry is added to crontab that calls this php file regulary and so keeps information up to date (at the end of entry I had to add '> /dev/null', not to clutter root email spool with reports
  • Another entry in crontab calls a script that parses new messages in /var/spool/sms/outgoing, does actions triggered by messages and renames / moves these messages

Sendmail Usage

  • To forward mail to SMS we need first to accept mail
    • (Did I really have to do this?) On Fedora I had to change sendmail.cf line
  1. SMTP daemon options

O DaemonPortOptions=Name=MTA

  1. O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
  • I had to add hostnames to file /etc/mail/local-host-names and restart Sendmail