Welcome to WebmasterWorld Guest from 54.167.0.111

Forum Moderators: phranque

Message Too Old, No Replies

CPanel Email: Default Address and Filtering

     

craigjl

2:56 pm on Sep 13, 2011 (gmt 0)



I've been trying to configure my sites in CPanel, using the Account Level Filtering and Default Address settings. Here is the process flow I want to happen to all incoming email.
1. Filter against several rules, and deliver matching emails accordingly.
2. Any mails that don't match the rules, should fail with an error message of "no email address at this domain".

Here is what I have tried.
1. I set up a rule in Account Level Filtering. Each rule is similar. RULE = If the "TO" address contains ".name@domain.com" OR "+name@domain.com", then deliver to "name@domain.com".

The filter works exactly as desired. Emails TO "test.name@domain.com" OR "test+name@domain.com" are properly delivered to name@domain.com. Also, emails simply addressed to "name@domain.com" are delivered properly.

2.Then on the Default Address settings, I set it to "Discard with error to sender (at SMTP time)" with a message of "No such person at this address"

This also works as expected. Emails addressed to "anyone@domain.com" are returned to sender with "not deliverable".

Here is the problem. It seems that the default address setting takes precedence over the filter rules. Emails addressed to "test.name@domain.com" or "test+name@domain.com" are now bounced back to sender as undeliverable. Emails addressed to "name@domain.com" are delivered properly.

I tried a couple of other settings and filters, but can't get it to work exactly as I want. Here is what I want.
1. Deliver all mail to exact accounts, ie. "name@domain.com" to "name@domain.com".
2. Deliver filtered mail, such as "+name@domain.com" to "name@domain.com".
3. If the TO field does not meet the 2 conditions above, return to sender with error.

Any Suggestions?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month