zealot wrote:
> 
> I repeatedly see this message in /var/log/qmail/current:
> 
>   delivery 787: deferral: Can't_create_tempfile_(#4.3.0)/
>   status: local 0/10 remote 0/20
>   starting delivery 788: msg 69232 to local
> [EMAIL PROTECTED]
> 
> What causes this error message and what can I do to fix it?
> 
> I'm running FreeBSD 4.0, ucspi-tcp 0.88, Qmail 1.03, and Vpopmail 3.4.11-2.
> 
> Here's the setup for /var/qmail/control
> 
>   -rw-r--r--   1 root  qmail   11 May 27 20:01 defaultdelivery
>   -rw-r--r--   1 root  qmail    8 May 27 21:20 defaultdomain
>   -rw-r--r--   1 root  qmail  141 Jun  9 06:51 locals
>   -rw-r--r--   1 root  qmail   19 May 27 21:21 me
>   -rw-r--r--   1 root  qmail    8 May 27 21:21 plusdomain
>   -rw-r--r--   1 root  qmail  180 Jun  6 14:34 rcpthosts
>   -rw-r--r--   1 root  qmail  166 Jun  6 14:34 virtualdomains
> 
> The contents of virtualdomains:
>   sneakernet.dhs.org:sneakernet.dhs.org
> 
> Here's the setup for virtual acccount sneakernet.dhs.org
> 
>   /home/vpopmail/domains/sneakernet.dhs.org
>   -rw-------  1 vpopmail  vchkpw    34 Jun  6 21:51 .dir-control
>   -rw-------  1 vpopmail  vchkpw    55 Jun  6 02:34 .qmail-default
>   -rw-------  1 vpopmail  vchkpw    26 Jun  8 02:16 .qmail-root
>   -rw-------  1 vpopmail  vchkpw     0 Jun  6 02:34 .vpasswd.lock
>   drwx------  3 vpopmail  vchkpw   512 Jun  8 02:08 postmaster
>   -rw-r--r--  1 vpopmail  vchkpw   291 Jun  8 11:06 vpasswd
>   -rw-r--r--  1 vpopmail  vchkpw  2405 Jun  8 11:06 vpasswd.cdb
>   drwx------  3 vpopmail  vchkpw   512 Jun  6 02:34 zealot
> 
> The contents of .qmail-default:
>   | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
> 
> The contents of .qmail-root:
>   [EMAIL PROTECTED]
> 
> The contents of .vpasswd
> 
> postmaster:xxx:1:0:Postmaster:/home/vpopmail/domains/sneakernet.dhs.org/post
> master:50000000
> 
> zealot:xxx:1:0:zealot:/home/vpopmail/domains/sneakernet.dhs.org/zealot:50000
> 000
>   (password hash removed to protect the innocent)
> 
> Here's the setup for [EMAIL PROTECTED]
> 
>   /home/vpopmail/domains/sneakernet.dhs.org/postmaster
> 
>   -rw-------  1 vpopmail  vchkpw   26 Jun  8 02:16 .qmail
>   drwx------  5 vpopmail  vchkpw  512 Jun  6 02:34 Maildir
> 
> The contents of .qmail:
>   [EMAIL PROTECTED]


The code is in vdelivermail.c in two places:

1) void deliver_mail(char *deliverto, struct passwd *pw_data)

    sprintf(tmp_file,"tmp/%lu.%d.%s",tm,pid,hostname);
    if ((mailfile = creat(tmp_file,S_IREAD | S_IWRITE)) == -1)
        failtemp ("Can't create tempfile (#4.3.0)\n");

2) char *email_it(deliverto)

    sprintf(tmp_file,"/tmp/%lu.%d.%s",tm,pid,hostname);
    if ((mailfile = creat(tmp_file,S_IREAD | S_IWRITE)) == -1)
        failtemp ("Can't create tempfile (#4.3.0)\n");

Notice that this places the temp file in /tmp...
Perhaps this should be like 1) above and place it under the
current directory.

You might want to try changing this code to:
    sprintf(tmp_file,"tmp/%lu.%d.%s",tm,pid,hostname);
    if ((mailfile = creat(tmp_file,S_IREAD | S_IWRITE)) == -1)
        failtemp ("Can't create tempfile (#4.3.0)\n");

make ; make install
Then see if you still get the error.

Ken

Reply via email to