admin/root email

sander815

Verified User
Joined
Jul 29, 2003
Messages
474
i just looked in /var/mail, nano admin

and it appears there are quite a lot of erroremails in it, all from different @server01.eska-hosting.nl adresses
From [email protected]
Return-path: <[email protected]>
2004-04-22 23:18:03 1BFrZ7-0004oj-93 == [email protected]
[email protected]
[email protected]
[email protected]
[email protected]

is there a way that i can ''catchall'' that root/admin email to 1 adress?

or is this emal created because i didn't setup yet a proper admin email in 'admins user data'?

mail send to f.i. [email protected] gets me an error
SMTP error from remote mailer after RCPT TO:<[email protected]>:
host server01.eska-hosting.nl [81.23.250.97]:
550 authentication required
 
where do i put it? every line has a # in front of it

# Default aliases file, installed by Exim. This file contains no real aliases.
# You should edit it to taste.


# The following alias is required by the mail RFCs 2821 and 2822.
# Set it to the address of a HUMAN who deals with this system's mail problems.

# postmaster: [email protected]in

# It is also common to set the following alias so that if anybody replies to a
# bounce message from this host, the reply goes to the postmaster.

# mailer-daemon: postmaster


# You should also set up an alias for messages to root, because it is not
# usually a good idea to deliver mail as root.

# root: postmaster

# It is a good idea to redirect any messages sent to system accounts so that
# they don't just get ignored. Here are some common examples:

# bin: root
# daemon: root
# ftp: root
# nobody: root
# operator: root
# uucp: root

# You should check your /etc/passwd for any others.


# Other commonly enountered aliases are:
#
# abuse: the person dealing with network and mail abuse
# hostmaster: the person dealing with DNS problems
# webmaster: the person dealing with your web site

####
 
Thats just usage information and examples... add it between any of the parts or just put it at the end of the file, you can even just remove the comments from existing lines :)

Chris
 
so, when i have done this
all email send to
[email protected]
...@localhost

gets forwared to the forward email adress i set in /etc/aliases

cause, before i have done this, mail send to f.i. [email protected] gets bounced back:
<[email protected]>: host server01.eska-hosting.nl[81.23.250.97]
said: 550 authentication required (in reply to RCPT TO command)
 
it catches the hostnames email... look @ the guide already there

# Default aliases file, installed by Exim. This file contains no real aliases.
# You should edit it to taste.


# The following alias is required by the mail RFCs 2821 and 2822.
# Set it to the address of a HUMAN who deals with this system's mail problems.

# postmaster: [email protected]in

# It is also common to set the following alias so that if anybody replies to a
# bounce message from this host, the reply goes to the postmaster.

# mailer-daemon: postmaster


# You should also set up an alias for messages to root, because it is not
# usually a good idea to deliver mail as root.

# root: postmaster

# It is a good idea to redirect any messages sent to system accounts so that
# they don't just get ignored. Here are some common examples:

# bin: root
# daemon: root
# ftp: root
# nobody: root
# operator: root
# uucp: root

# You should check your /etc/passwd for any others.


# Other commonly enountered aliases are:
#
# abuse: the person dealing with network and mail abuse
# hostmaster: the person dealing with DNS problems
# webmaster: the person dealing with your web site

####

postmaster forwards mail to [email protected]in
root forwards to postmaster
bin/daemon/ftp/nobody/operator/uucp forwards to root

Now if you look at that, you have created a path for all emails sent to any of them addresses to end up in your mailbox; [email protected]in

postmaster gets forwarded once (postmaster > [email protected]in), root gets forwarded twice (root > postmaster > [email protected]in), and the others get forwarded 3 times (bin > root > postmaster > [email protected]in).

Unless you added the line:

apache: [email protected]in

The Apache forward wont exist, and therefore mail wont recieve using that address.

Chris
 
Hello,

If you get "authentication required" then exim thinks the email you're sending to is somewhere else, and that's it's being used as a mail relay, hence you need authorization. This would generally be caused by server01.eska-hosting.nl not being in the /etc/virtual/domains file.

John
 
Back
Top