Hi, I've duplicated the problem. :( It seems that File::Spec caches the value of the TMPDIR environment variable, so you can't change your TMPDIR during program execution. This is, IMO, a bug... but I'll be releasing MIMEDefang 2.68-BETA-3 soon. Please wait for that one. Regards, David.