Main Email account

mmgenius

Verified User
Joined
Jan 20, 2004
Messages
164
Is it possible to delete the main email account?

--> example:
username = "testuser"
domain = "test.com"
The email address "[email protected]" is always created. If I try to delete it I get a message "You cannot delete the account testuser because it is linked to your system account". But what do I need to do if I don't want the email address "[email protected]".

Kind regards
Maarten
 
You can't delete the main account, that is the UNIX username that owns all the domains and files for that DA user. Since it is a UNIX user, you can't just delete it. You can choose to ignore it or even forward all email for that account to /dev/null or another account, but deleting that email is not really an option.

To forward email to /dev/null, create a file in the root directory for that user (/home/${username}) name .forward and that file should contain
Code:
"|/dev/null"
or just put an email address to forward the email to.
 
You can't delete the main account, that is the UNIX username that owns all the domains and files for that DA user. Since it is a UNIX user, you can't just delete it. You can choose to ignore it or even forward all email for that account to /dev/null or another account, but deleting that email is not really an option.

To forward email to /dev/null, create a file in the root directory for that user (/home/${username}) name .forward and that file should contain
Code:
"|/dev/null"
or just put an email address to forward the email to.

This just drops the email or does it bounce? Also do I need to include the quotes?

Thanks...
 
As far as I know, the incoming mail will be dropped. It won't bounce.

Think of /dev/null as a black hole like in our galaxies... Anything that gets pushed into it will never return and it's gone forever!! Scary, huh?

As far as the "quotes" are concerned... I don't know! Test it with and without to find out...
 
There is a blackhole feature too which does pretty much the same thing.
 
Nevermind!

I think I found it, correct me if I am wrong...

I create a forwarder name the same as the main account and then make it :fail: or :blackhole: right?

Thanks,
Phil
 
Yes, and internally :fail: sends undeliverable email back to the sender (very bad idea) and :blackhole: appends it to the file named /dev/null.

Remember, in Posix-based operating systems, everything's a file. Even the blackhole :).

jeff
 
If I don't want to check the mail for the user account and instead have it forwarded to another mail account, I do the following:
  1. Create a file called .forward in the directory /home/username.
  2. Enter the e-mail address that the mail should be forwarded to into the file.
That's it. The mail no longer gets stored in the user's mailbox and is automatically forwarded somewhere else.

Hope this helps. :)
 
Which is what happens for server accounts (as opposed to virtual accounts) if you set up the forward through the DA control panel.

Jeff
 
Back
Top