Do you mount a tmp in your pipeto? Do you have +w access to /mail/tmp?