PDA

View Full Version : How to disable default email


selfwebhosting
06-25-2006, 01:36 AM
I receive a lot of junk mails that are sent to my catch-all email at username@mydomain.com where username is the account username. So I have turned the catch-all function off. Now I no long receive junk mails sent to whatever@mydomain.com but I continue to receive junk emails that are sent directly to username@mydomain.com

I remember before switching from cPanel to DirectAdmin, the turning off of the catch-all bounces mail sent to whatever@mydomain.com as well as username@mydomain.com because username@mydomain.com is considered as the default email which is really the email gateway rather than a physical email account. Don't quite understand why DA does thing differently from cPanel. Is there a way to disable the default email but still is able to receive emails sent to a physical email address that is manually created?

Webcart
06-26-2006, 10:31 PM
Create .forward file in /home/USERNAME/ directory that contains somethign like:
spam@yourdomain.com

Then set up spam@yourdomain.com as mail forwarder to :fail:

I realize that's not a perfect solution, but it's better than nothing ;)

You could also try editing mail configuration file for yourdomain.com. It's located at /etc/virtual/yourdomain.com/aliases. Replace the line

username: username

with

username: :fail:

Please however note that
1. I DIDNT TEST IT.
2. aliases file might get overwritten by DirectAdmin

selfwebhosting
06-27-2006, 01:07 AM
username: :fail:
This one works for me! And I can still receive emails at a manually created email account. Thank you!

BTW, in which cases the aliases file can be overwritten by DirectAdmin?

selfwebhosting
06-27-2006, 01:13 AM
Just to make sure...

:fail: will bounce the email and :blackhole: will delete the email without bouncing, correct?

Would bouncing the email create an endless email bouncing loop as the spammer may not use a valid email address to send the spams? So would :blackhole: a better setting?

Webcart
06-27-2006, 10:16 AM
Originally posted by selfwebhosting
Just to make sure...

:fail: will bounce the email and :blackhole: will delete the email without bouncing, correct?


That's correct.

Originally posted by selfwebhosting
Would bouncing the email create an endless email bouncing loop as the spammer may not use a valid email address to send the spams? So would :blackhole: a better setting?

I have an idea: try it :)
Hint: it should not create an endless loop :)