Difference between revisions of "SMS"

From Mesopoly 3.0
Jump to navigation Jump to search
Line 15: Line 15:
 
==Sendmail Usage==
 
==Sendmail Usage==
 
*To forward mail to SMS we need first to accept mail
 
*To forward mail to SMS we need first to accept mail
−
**On Fedora I had to change sendmail.cf line  
+
** (Did I really have to do this?) On Fedora I had to change sendmail.cf line  
 
# SMTP daemon options
 
# SMTP daemon options
  
 
O DaemonPortOptions=Name=MTA
 
O DaemonPortOptions=Name=MTA
 
#O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
 
#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

Revision as of 14:05, 30 June 2006

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)

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