how can i cancel the main e-mail adress that da opens when i open a new acount?

You really can't, because it's a linux/unix system account.

You can either cutomize exim.conf so it refuses email for these accounts, or you can create a forward to send these emails to another account.

The latter is preferred, as forms send emails from the account username, and many mail servers won't accept email from a nonexistent sender.

Jeff
 
Very carefully, since it will break expected server functionality.

You can create an exclusion list (similar to the ACL lists I created for SpamBlocker) and just reject (with the proper message) any mail for a recipient matching that list. You can get the list by piping the output of ls /var/spool/mail to the file.

Jeff
 
jlasman said:
Very carefully, since it will break expected server functionality.

You can create an exclusion list (similar to the ACL lists I created for SpamBlocker) and just reject (with the proper message) any mail for a recipient matching that list. You can get the list by piping the output of ls /var/spool/mail to the file.

Jeff
ls /var/spool/mail
by doing that i can see all of my usernames, but i cant understand what to do next.
isnwt there a simple command to put in exim.conf like u can do with sshd "DenyUsers"? ( I need to deny incoming message to it. not forward)
 
create new email account that you would like to use eg. [email protected]
then create a forwarder [default email]@domain.com >> [email protected]

all email send to default account will go to admin inbox. that's what I do.

or in a backward way just use default email account da created and make forwarders to it.
 
remove the default mailbox file at /var/spool/mail/.

Then recreate it as a link to /dev/null

Jeff
 
jlasman said:
remove the default mailbox file at /var/spool/mail/.

Then recreate it as a link to /dev/null

Jeff
In /var/spool/mail/ i have a file for every username how can i delete a specific mail adress?
and how can i link it to /dev/null
 
Note:
This code, like all code you get from this forum, is offered at no charge and with no responsibility, even if it breaks your server. Use at your own risk.

Example for username "username":
Code:
# cd /var/spool/mail
# rm -f username
# ln -s  /dev/null username
After this is done (you don't have to restart anything) any email for username will just disappear.

Jeff
 
Back
Top