[Balug-talk] virtusertable and reg ex-like functionality
Eric Yoon
amaterasu2915 at yahoo.com
Thu Jan 13 18:18:13 PST 2005
I had another question for the group, regarding the
use of regular expression-like sorting in
virtusertable. As I noted in a previous message to
the group (which, by the way, has answered every
question and solved every problem I have submitted to
it, thank you!) I am developing a web site that
provides members with forwarding addresses.
The forwarding address would take a form like this,
for example:
user3214 at mail.domain.com
the "3214" would be a set of numbers that is unique to
each member.
Ideally, I'd like my virtusertable to handle the
sorting of such forwarding addresses. For example:
@domain.com root
user[0-9]+[@]mail.domain.com remailer
etc...
Unfortunately, the above use of reg ex directly in
virtusertable doesn't work. Is there perhaps a way of
getting the same functionality?
Ideally, the server would carefully accept forwarding
email addresses that fit a certain format, and send
them for processing to the remailer alias. The rest,
it would not even allow into the system, and the
sender would get the usual "undelivered"
notice/rebound.
I can set up a system in which the remailer program
takes in all emails directed to @mail.domain.com,
stores the data from those emails that fit the above
regular expression, and discards all others. But I
realized that that may not be an optimal solution --
people may make honest mistakes, and I'd like for them
to know that their email has been rejected. I could
have my program send out an alert for each rejection
on its own, but it seems that that would be cumbersome
for my system and mail server.
So ideally, I'd like my server to accept forwarding
addresses that fit a user[0-9]+[@]mail.domain.com
nomenclature, and then reject all others, resulting in
a rebound of the incorrect email. Is is possible to
do this using virtusertable? Or is there perhaps some
other method that I'm not aware of? Thank you for
your help.
Cheers,
Eric
Beginner Linux/PHP/mySQL user
__________________________________
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250
More information about the Balug-talk-balug.org
mailing list