 |
Your forum announcement here! |
|
 |

15-04-2009, 16:26
|
|
Member
|
|
Join Date: Apr 2009
Posts: 87
|
|
cpanel email filter question
First of all, this is just a question... please don't go to my account and configure anything based on my query here; I know how eager you are to fix all my problems! lol.
OK, with that out of the way here we go...
I am just about to add several hundred users into our new school website. Drupal allows me to make a CSV file from excel and do a bulk import. I am doing this primarily because drupal requires a unique email for each account. Not only do most of the children not have email addresses, personally I don't think they should due to spam. Plus, I want to hold as little information about the students as possible on the server.
So, in my excel file I generated fake emails for everyone:
[username]@nomail.mydomain.com
Note that I did not create the 'nomail' subdomain in cpanel.
These emails will be in the drupal profiles, but cannot be edited by students.
OK, so the problem is that I can't guarantee that drupal won't try to sometimes send mail out to these fake addresses. Probable culprits might be the password reminder, self-subscribing newsletters, contact forms, webforms, etc. There are a lot of features in drupal that simply assume all users have a working email.
At the moment when an email is sent to/from a fake, exim sends a DENY command, which then produces a daemon message to the drupal admin email address. What I'd instead like is for the mail to/from the fakes, to be just discarded without a trace.
In cpanel, will the email -> filter tool achieve this without using too many resources or causing problems elsewhere??
I've created a rule: 'any header contains nomail.mydomain.com then discard'
Thanks.
|

15-04-2009, 17:06
|
|
Administrator(eUKhost.com)
|
|
Join Date: Nov 2006
Posts: 627
|
|
You wish to make this changes server wide or just the email addresses which are created in Drupal ?
|

15-04-2009, 17:22
|
|
Member
|
|
Join Date: Apr 2009
Posts: 87
|
|
I guess server-wide; from anywhere, to anywhere.
I'm just trying to anticipate a time when someone accidentally instructs drupal to email all 400 users
and so I get hundreds of daemon messages, and the server slows down for a while.
BTW, I just tested the above filter, and it seems to work fine (EDIT: no it doesn't; :fail: precedes the filter).
I gather the disadvantage is that the email is actually fully processed by exim before it is discarded(?)
Maybe there is a smarter way to do it?
Cheers.
Last edited by -Anti-; 15-04-2009 at 20:01.
|

15-04-2009, 19:30
|
 |
Chief Marketing Officer
|
|
Join Date: Sep 2005
Posts: 5,495
|
|
Hi,
Best option would be to set :blackhole: for all invalid mailboxes on your domain. This can be done from "Default Address » Advanced Options" and then choose the option "Discard (Not Recommended)"
This will simply discard the emails which will be sent to invalid email addresses.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________
Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
|

15-04-2009, 20:23
|
|
Member
|
|
Join Date: Apr 2009
Posts: 87
|
|
Thanks for the advice.
Apologies. I said... "I guess server-wide; from anywhere, to anywhere", when what I really meant was 'server-wide for the nomail subdomain', if that isn't a paradox!
To clarify, I want to :fail: all other domains/subdomains, and blackhole just the 'nomail' subdomain. But I don't see a way of setting a :blackhole: catchall for the 'nomail' subdomain without setting it up as a real subdomain.
I guess creating the subdomain will have to do; it should solve the problem, which is the main thing.
Cheers for the advice and help.
|

16-04-2009, 08:25
|
|
Moderator (eUKhost.com)
|
|
Join Date: Mar 2009
Posts: 280
|
|
Hi,
I found that adding the entries of :fail: & :blackhole: in the configuration files manually and adding a DNS zone for the sub domain will do the trick.
Worth giving a shot.. and let me know how you get on it!
|

16-04-2009, 10:14
|
|
Member
|
|
Join Date: Apr 2009
Posts: 87
|
|
I knew there would be a smart way to do it.
I couldn't find the config file for the catchall setting.
Anyway, I did it the dumb way; I created the subdomain in cpanel and set up the catchall to blackhole for all incoming mail just to that subdomain (the others are set to fail), and setup a filter which I hope will discard any mail sent from drupal without causing any errors in the script(s).
I deleted public_html/nomail to declutter the directory, and it doesn't cause any problem. This solution will do fine, and actually, thinking about it, if I ever have to hand the site over to another maintainer, the fact that this is all setup visibly in cpanel will be better for them.
Thanks very much for your input.
|

16-04-2009, 21:22
|
 |
Chief Marketing Officer
|
|
Join Date: Sep 2005
Posts: 5,495
|
|
Quote:
Originally Posted by -Anti-
I knew there would be a smart way to do it.
I couldn't find the config file for the catchall setting.
Anyway, I did it the dumb way; I created the subdomain in cpanel and set up the catchall to blackhole for all incoming mail just to that subdomain (the others are set to fail), and setup a filter which I hope will discard any mail sent from drupal without causing any errors in the script(s).
I deleted public_html/nomail to declutter the directory, and it doesn't cause any problem. This solution will do fine, and actually, thinking about it, if I ever have to hand the site over to another maintainer, the fact that this is all setup visibly in cpanel will be better for them.
Thanks very much for your input.
|
yep.
You have done it all right. You are most welcome to ask simple questions like this.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________
Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 15:22.
|
|
|