[ILUG] email to SMS
Chris Boyd
Chris.Boyd at usit.ie
Thu Aug 3 12:08:34 IST 2006
I found this regarding sending email to SMS gateway:
http://archives.neohapsis.com/archives/postfix/2005-08/1430.html
The problem is it's a little cryptic especially for someone that isn't that up on postfix.
The main problem I'm having at the mo is how to write a script to "re-inject" mails to the SMS gateway coming to a certain address.
It gives a link but that only describes the config for postfix and not the script it refers to.
Also I need to make it send to SMS only when it comes from the DRAC card.
Anyone have an more links that could help or a similar setup?
Here's what I've done so far (obviously the sms script in master.cf isnt' really there):
/etc/postfix/virtual:
me at mycompany.ie
"sms at clickatell.com" @sms.invalid
/etc/postfix/transport:
ms.invalid sms:dummy
/etc/postfix/master.cf:
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=reject
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
#tlsmgr fifo - - n 300 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
sms unix - n n - - pipe argv=/etc/postfix/sms -f ${sender} --${mailbox}
#localhost:10025 inet n - n - - smtpd -o content_filter=
TIA
-----------------------------------------------------------------
This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyrighted. If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. USIT has scanned this email for viruses and
dangerous content and believes it to be clean. However,
virus scanning is ultimately the responsibility of the recipient.
-----------------------------------------------------------------
More information about the ILUG
mailing list