homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

CPanel Email: Default Address and Filtering

Msg#: 4361969 posted 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?


Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved