EMail to SMS Gateway with aspsms

Aus Bitbull Wiki
Wechseln zu: Navigation, Suche
# install needed software
yum -y install postfix procmail ruby
curl > /etc/sms.conf
curl > /usr/local/bin/sms.rb
chown root:sms /usr/local/bin/sms.rb /etc/sms.conf
chmod 750 /usr/local/bin/sms.rb
chmod 640 /etc/sms.conf
# configure sms user
useradd -c "SMS Gateway User" sms
curl > ~sms/.procmailrc
chown sms:sms ~sms/.procmailrc
chmod 644 ~sms/.procmailrc
# configure aspsms account information
vi /etc/sms.conf
# configure postfix to use virtual tables if not done allready
postconf -e "virtual_alias_maps = hash:/etc/postfix/virtual"
# write config for sms domain
echo '         sms' >> /etc/postfix/virtual
postmap /etc/postfix/virtual
postfix reload
# make sure you have correct dns pointer like this:         3600    IN      MX      20
#now send test mail
put body
bla bla bla