[SA-exim] mainlog errors
Mikel Tidwell
dragon at dreamhaven.net
Tue, 16 Jul 2002 15:05:14 -0700 (PDT)
Thanks. I see what I did. Tha tdirectory did exist, but it was owned by
root, not exim. As soon as I can take care of that spamc timeout error,
I'll be one happy dragon. :>
_ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _
-- Mikel Tidwell President: RPGamer -- http://www.rpgamer.com/
MSNM: FireMyst Personal Home Page -- http://dragon.rpgamer.com/
- _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ -
On Tue, 16 Jul 2002, Marc MERLIN wrote:
-> 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
->