Complete removal of catchall

ircman

Verified User
Joined
Feb 5, 2004
Messages
115
Location
The Hague, Netherlands
Hi,

I would like to know if it is already possible to remove and disable the complete catchall option from all users so that * is removed from /etc/domains/aliases. Because one of our webservers with 800 users on it is having loads of problems scanning all incomming email.

I have now manually removed *: for all the domains, but exim is still accepting mail for it ?! This should also be fixed.

Second problem is that when a user is suspended the domain of that user is still in /etc/virtual/domains, so exim is still accepting mail for it, but does not know what to do with it. This should also be changed.


Regards,
 
Last edited:
Hello,

1) there is a catch-all option in the packages to disable it for each user, this sets the * value to :fail: for new accounts and will hide any reference to catch-alls in the skins.

Also, I'm guessing you're using spamassassin?.. use this guide to only scan local boxes so the spam filter doesn't scan something it doesn't need to. Exim can handle rejecting non-existant eamils without involving spam. The filters would assume it exists, hence the problem.

http://help.directadmin.com/item.php?id=156

The catch-all can also be removed from the exim.conf, but that shouldn't be needed with it set to :fail:.


2) For the suspended domains, we'd have to open a debate about that.. the current way, the emails are left on the queue, and not bounced. Once unsuspended, the emails are delivered. Remove it from the domains file will cause bounces.. possibly desired, but we'd need to pass it by everyone to see what the best way would be to go about doing it.

John
 
Hi John,

Thnx for the quick reply!

1) I will have a go with the link you posted and can you tell me where I can find the "catch-all option in the packages to disable it for each user" ? <- Already found it in the reseller packages, but when I remove catch-all options it does not disapear from the skinn when logged in as normal user.

2) You're right, I think it will be different for each user. Some suspended users you want to enable at a later stage and still want to receive mail for them, others will be delete complete. I have now removed the domains from /etc/virtual/domains manually.

Regards,

Cedric.
 
Last edited:
1) Disabling something in the Reseller package disables the Reseller from creating more. Existing users will still have it, has to be disable for the User packages as well (which should go through the user options if that packages is still set for the users). Dislabing it for a user doesn't change their aliases file, it really only applies for new users. Existing users, you can disable the catch-all in their options, but doing a perl regex to ensure they're all set to :fail: would be your simplest route.

John
 
John,

what is the exact code we would need to do to set all existing catch-all to "fail" and then where would we go and what would we edit to remove catch-all as an option from the control panel?
 
Was actually changed in 1.31.2 to disable the actual feature (Set to :fail:) when the option is turned off:
http://www.directadmin.com/features.php?id=835

So if you have the latest DA, just shut off the catcha-all. (or turn on then off. Note that nothing is changed at the email level when it's turned on.. turning off will force it to fail)

John
 
To confirm this further. Are you saying that if we turn off the Catch-All feature in the Reseller's Package definition for a hosting plan that it will filter through all the existing user's settings and force Catch-all to "fail"? If so - that is great.
 
What is the exact string we would use to perform the

"doing a perl regex to ensure they're all set to :fail:"

so I can be sure every one of my "existing" clients has it turned off.
 
Back
Top