[SA-exim] mainlog errors

Marc MERLIN marc at merlins.org
Tue, 16 Jul 2002 12:08:01 -0700


On Tue, Jul 16, 2002 at 11:09:36AM -0700, Mikel Tidwell wrote:
> Hello,
> 
> I have two errors in my mainlog that repeats for multiple messages on a
> regular basis.  I was hoping you could tell me what I can do to fix the
> problems I'm seeing here.
> 
> 2002-07-16 11:03:44 17UWfn-000Egx-00 SA: Unexpected error on creat
> 1026842624_00003a174485$00001a1d$000071df@mx09.hotmail.com, file
> ../src/local_scan.c, line 178: Bad file descriptor
> 2002-07-16 11:03:44 17UWfn-000Egx-00 SA: savemail condition expanded to
> false, not saving message to disk
> 2002-07-16 11:03:44 17UWfn-000Egx-00 temporarily rejected by local_scan():
> Temporary local error while processing message, please contact postmaster
> 
> localscan.c:  (176-179)
> 
>     /* Let's not worry about you receiving two spams at the same second
>      * with the same message ID. If you do, the second one will overwrite
>      * the first one */
>     writefd=creat(string_sprintf("%s/%s", dir, filename), S_IRUSR|S_IWUSR);
>     CHECKERR(writefd, string_sprintf("creat %s", filename),__LINE__);

Ok, so the last line should actually say
     CHECKERR(writefd, string_sprintf("creat %s/%s", dir, filename),__LINE__);
(just fixed in CVS)

That said, it's only a problem with error reporting, but it would tell you
the path it's trying to create the file in.

You'll see right above that:
    /* Unchecked mkdir (fails if dir has already been made or can't be made) */
        mkdir (dir, 0700);

This is probably were your problem is: the mkdir is failing.

http://marc.merlins.org/linux/exim/files/spamassassin.conf states:
# SA-Exim will try to create the directory if it has the permissions to do so,
# check your maillog for failures (or create the directory yourself and make it
# writeable for exim)
SApermrejectsave: /var/spool/exim/SApermreject

mkdir is  failing to create  the directory in /var/spool/exim/,  or whatever
the path is if you changed it.
Create all those  directories by hand, and make them  writeable by your exim
user.

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/   |   Finger marc_f@merlins.org for PGP key