|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Chris Picton (Chris.Picton
BTGnet.net)Date: Thu May 03 2001 - 01:52:00 CDT
Hi
I am trying to set up a service where users can get subjects of any new
emails sent to their cellphones via sms.
In South Africa, you just send an email to <cellnumber>
sms.co.za to send an
sms to the phone.
What I have is the following:
In my virtual table:
user
virtual.dom <mailto:user
virtual.dom> localuser, sendsms-<cellno>
In my aliases:
sendsms-<cellno>:"|/etc/postfix/scripts/sms.pl <cellno>"
sms.pl is a perl script which extracts the subject and emails it to
cellno
sms.co.za <mailto:cellno
sms.co.za>
Now, for each of the users that want this service, I need to add an entry to
the aliases file, as well as an entry to the virtual file.
I want the administration to be as easy as possible, (I just want to add en
entry in the virtual file) so I tried an regexp alias file:
/^sendsms-([0-9]*)/ "|/etc/postfix/scripts/sms.pl $1"
But i get a user unknown error.
Is there any way to do this?
---- Chris Picton BTG Networks Systems Developer Chris.PictonBTGNet.net
- To unsubscribe, send mail to majordomo
postfix.org with content (not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]