Re: exim brocken in test debian-edu-squeeze?
On Saturday 19 February 2011 12:33 Andreas Schockenhoff wrote:
> Hi,
>
> On Sat, 2011-02-19 at 12:21 +0100, Andreas B. Mundt wrote:
> > > But exim seems to be broken no mail delivery to root.
IMHO is root not the right one to get system mails. There should be an
local admin-user who acts as the postmaster with lower rights. So there
should end up all system mails at that account.
The /etc/aliases may look for example like this, especially the last
line:
# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
logcheck: root
root: jever
> > Right. Hmm. Permissins on /root seem not to allow the transport of
> > mail to root's mbox. Where is root's mail usually being delivered
> > to? Perhaps we have to change that location if we want to keep the
> > restrictive permissions.
>
> exim I have figured out like to deliver mail to /var/mail/mail
> instead of root on other systems. Also if root stands in /etc/alias.
> No idea why exim do this or if this is our problem.
>
> regards Andreas
I don't know at the moment how it looks in Debian-Edu squeeze, but in
Debian lenny exim configuration file /etc/exim4/exim4.conf.template you
will find this explaining what is done:
#####################################################
### router/mmm_mail4root
#####################################################
### router/mmm_mail4root
#################################
# deliver mail addressed to root to /var/mail/mail as user mail:mail
# if it was not redirected in /etc/aliases or by other means
# Exim cannot deliver as root since 4.24 (FIXED_NEVER_USERS)
mail4root:
debug_print = "R: mail4root for $local_part@$domain"
driver = redirect
domains = +local_domains
data = /var/mail/mail
file_transport = address_file
local_parts = root
user = mail
group = mail
#####################################################
### end router/mmm_mail4root
#####################################################
Greetings, Jürgen Leibner
--
Mit freundlichen Grüßen, Jürgen Leibner
Reply to: