PDA

View Full Version : admin/root email



sander815
04-22-2004, 02:47 PM
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 diradmin@server01.eska-hosting.nl
Return-path: <admin@server01.eska-hosting.nl>
2004-04-22 23:18:03 1BFrZ7-0004oj-93 == apache@server01.eska-hosting.nl
root@server01.eska-hosting.nl
admin@server01.eska-hosting.nl
admin@server01.eska-hosting.nl
root@server01.eska-hosting.nl

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. root@server01.eska-hosting.nl gets me an error
SMTP error from remote mailer after RCPT TO:<root@server01.eska-hosting.nl>:
host server01.eska-hosting.nl [81.23.250.97]:
550 authentication required

ProWebUK
04-22-2004, 04:15 PM
/etc/aliases

root: forward@to-this-email.com
admin: forward@to-this-email.com

Chris

sander815
04-22-2004, 11:22 PM
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: someone@your.domain

# 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

####

ProWebUK
04-23-2004, 04:39 AM
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

sander815
04-23-2004, 05:28 AM
so, when i have done this
all email send to
...@server01.eska-hosting.nl
...@localhost

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

cause, before i have done this, mail send to f.i. apache@server01.eska-hosting.nl gets bounced back:
<apache@server01.eska-hosting.nl>: host server01.eska-hosting.nl[81.23.250.97]
said: 550 authentication required (in reply to RCPT TO command)

ProWebUK
04-23-2004, 06:16 AM
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: someone@your.domain

# 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 someone@your.domain
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; someone@your.domain

postmaster gets forwarded once (postmaster > someone@your.domain), root gets forwarded twice (root > postmaster > someone@your.domain), and the others get forwarded 3 times (bin > root > postmaster > someone@your.domain).

Unless you added the line:

apache: someone@your.domain

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

Chris

sander815
04-23-2004, 06:18 AM
...

DirectAdmin Support
04-24-2004, 02:59 PM
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