PDA

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


hackerpitbull
08-08-2006, 03:10 PM
thanks..

jlasman
08-10-2006, 08:48 PM
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

hackerpitbull
08-11-2006, 03:52 AM
You can either cutomize exim.conf so it refuses email for these accounts

How can i do that?

jlasman
08-11-2006, 10:00 PM
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

hackerpitbull
08-12-2006, 06:09 AM
Originally posted by jlasman
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)

kke
08-12-2006, 02:08 PM
create new email account that you would like to use eg. admin@domain.com
then create a forwarder [default email]@domain.com >> admin@domain.com

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.

jlasman
08-16-2006, 12:48 AM
remove the default mailbox file at /var/spool/mail/.

Then recreate it as a link to /dev/null

Jeff

hackerpitbull
08-16-2006, 05:38 AM
Originally posted by jlasman
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

jlasman
08-16-2006, 06:19 PM
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":

# 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