Why won't exim4 mail work?

From: Al. C (no_spam_ac3_takeout_at_adams-blake.nospam.com)
Date: 05/04/05


Date: Wed, 04 May 2005 14:44:08 GMT


(Note: tried posting in deb.user but so far no one knows. Same with the
mepis web boards. This is my last resort!! Anyone have a clue?)

Running Mepis 3.3.

For some unknown reason when I installed MySQL, apt-get also had to install
exim4. (Anyone know why?) I don't need it, but since it's there I can't
figure out why it does not work:

al@1[~]$ mail al
Subject: test1
this is a test
Cc:

al@1[~]$ mail
No mail for al
al@1[~]$

What do you think this means (from /var/log/exim4/mainlog)?

2005-05-02 19:31:05 1DSnBh-00029p-O8 <= al@mepis1 U=al P=local S=270
2005-05-02 19:31:05 1DSnBh-00029p-O8 == al@mepis1 R=local_user T=mail_spool
defer (13): Permission denied: creating lock file hitching
post /var/mail/al.lock.mepis1.4276e269.0000206b (euid=1000 egid=8)

I notice that in Mepis There is no mail group for /var/mail.
drwxrwsr-x 2 root root 96 2005-05-02 20:43 mail

I wonder if I need one? Only groups are 'root' for /var/mail and it's two
files.

al@1[~]$ cd /var/mail
al@1[mail]$ ls -l
total 0
-rw-r--r-- 1 root root 0 2005-02-28 16:19 al
-rw-r--r-- 1 root root 0 2005-03-08 17:16 root
al@1[mail]$

Same for the binary:
al@1[mail]$ ls -l /usr/sbin/exim4
-rwsr-xr-x 1 root root 669752 2005-04-17 12:14 /usr/sbin/exim4

I did check out:

http://www.exim.org/exim-html-4.50/doc/html/FAQ_0.html#TOC36

============
Why do I get the error Permission denied: creating lock file hitching post
when Exim tries to do a local delivery?

A0036: Your configuration specifies that local mailboxes are all held in
single directory, via configuration lines like these (taken from the
default configuration):

local_delivery:
driver = appendfile
file = /var/mail/$local_part

and the permissions on the directory probably look like this:

drwxrwxr-x 3 root mail 512 Jul 9 13:48 /var/mail/

Using the default configuration, Exim runs as the local user when doing a
local delivery, and it uses a lock file to prevent any other process from
updating the mailbox while it is writing to it. With those permissions the
delivery process, running as the user, is unable to create a lock file in
the (/var/mail( directory. There are two solutions to this problem:

(1) Set the write and sticky bit permissions on the directory, so that it
looks like this:

drwxrwxrwt 3 root mail 512 Jul 9 13:48 /var/mail/

The w allows any user to create new files in the directory, but the t bit
means that only the creator of a file is able to remove it. This is the
same setting as is normally used with the /tmp directory.

(2) Arrange to run the local_delivery transport under a specific group by
changing the configuration to read

local_delivery:
driver = appendfile
file = /var/mail/${local_part}
group = mail

The delivery process still runs under the user's uid, but with the group set
to mail. The group permission on the directory allows the process to create
and remove the lock file.

The choice between (1) and (2) is up to the administrator. If the second
solution is used, users can empty their mailboxes by updating them, but
cannot delete them.
==========

I tried #1 above (changed the permissions) to /var/mail and still it didn't
work. I didn't try #2 as I can't seem to find the file they are talking
about. Debian makes some major changes TTBOMK.

This is driving me nuts. Anyone have an idea?

Al C.



Relevant Pages

  • RE: Question about "Configuration Error" Message
    ... account(which has the most powerful permission and privileges on local ... Microsoft Online Support ... After you installed the ASP.NET 2.0 QuickStart ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Modemlights nightmare (relative newby)
    ... You can rename the lock file that MODEM lights refers to in its ... configuration (modify the configuration, ... or your hardware settings in NEAT (you'll also need a link ...
    (alt.os.linux.redhat)
  • Re: Problems configuring wu-ftpd
    ... >> the user doesn't have permission to view the incoming directory? ... >> Is it files in your incoming directory that your having problems with? ... > would be a closer configuration regarding squid.....but for a guest is ... wu-ftpd only has access to it's home directory, it is chrooted or jailed there ...
    (Debian-User)
  • RE: permission to remove programs
    ... User Configuration ... [+]Windows Settings ... Software Installation make sure these two configured correctly. ... and select the radio Button to enable them and set the Permission. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: loss of admin rights
    ... user profile [delete temporary internet files first], ... configuration such as tcp/ip, mail and newsgroup account configuration, and ... account but am unable to install anything, nor do i have the rights to ... don't have permission to access these peticular things. ...
    (microsoft.public.win2000.security)