sydneyshan
12-26-2005, 10:16 PM
Hi there!
Of late, I've been receiving many junk mail messages to my two website domains - dreamscapemedia.com.au and shannonmurdoch.com. These junk mail messages are addressed to non-existant email boxes ie. ekjdlkd@shannonmurdoch.com and are unfortunately being caught in my 'catch-all' email box (which is irreversibly set to my main 'personal' email inbox, which I don't give out to anyone except on paper...).
I'd like to divert any mail not addressed specifically to one of my three email boxes to my generic 'contact@dreamscapemedia.com.au' inbox. As the catch-all option is not available, I've written a regular expression to catch any mail in the same fashion as a catch-all would:
^(?=personal)|^(?=subscriptions)|^(?=contact)|^(.+?)@(.+?)$
This I match against the following example emails:
personal@dreamscapemedia.com.au
contact@shannonmurdoch.com
contact@dreamscapemeida.com.au
mysubscriptions@dreamscapemedia.com.au
sdifjlksd@dreamscapemedia.com.au
fdsklf@dreamscapemedia.com.au
When matching, the regular expression is supposed to ignore any emails addressed to 'personal@*', 'mysubscriptions@*' and 'contact@*', whilst matching any other email address used (and therefore forwarding it on to the contact@dreamscapemedia.com.au box).
At present, this regexp matches the full line for the last two email addresses (good), and 'something' in all of the good email addresses which it is supposed to ignore. I don't know what that 'something' is - it's not a character, as nothing is returned apart from the fact that the regexp has matched 'something' in the good email addresses that it should not be. This is causing all emails to be caught by the regexp filter above.
Does anything stand out to you as being wrong...?
Thanks,
-Shan
Of late, I've been receiving many junk mail messages to my two website domains - dreamscapemedia.com.au and shannonmurdoch.com. These junk mail messages are addressed to non-existant email boxes ie. ekjdlkd@shannonmurdoch.com and are unfortunately being caught in my 'catch-all' email box (which is irreversibly set to my main 'personal' email inbox, which I don't give out to anyone except on paper...).
I'd like to divert any mail not addressed specifically to one of my three email boxes to my generic 'contact@dreamscapemedia.com.au' inbox. As the catch-all option is not available, I've written a regular expression to catch any mail in the same fashion as a catch-all would:
^(?=personal)|^(?=subscriptions)|^(?=contact)|^(.+?)@(.+?)$
This I match against the following example emails:
personal@dreamscapemedia.com.au
contact@shannonmurdoch.com
contact@dreamscapemeida.com.au
mysubscriptions@dreamscapemedia.com.au
sdifjlksd@dreamscapemedia.com.au
fdsklf@dreamscapemedia.com.au
When matching, the regular expression is supposed to ignore any emails addressed to 'personal@*', 'mysubscriptions@*' and 'contact@*', whilst matching any other email address used (and therefore forwarding it on to the contact@dreamscapemedia.com.au box).
At present, this regexp matches the full line for the last two email addresses (good), and 'something' in all of the good email addresses which it is supposed to ignore. I don't know what that 'something' is - it's not a character, as nothing is returned apart from the fact that the regexp has matched 'something' in the good email addresses that it should not be. This is causing all emails to be caught by the regexp filter above.
Does anything stand out to you as being wrong...?
Thanks,
-Shan
