Hello Troy, Wednesday, October 10, 2001, 9:13:12 AM, you wrote:
TS> I guess I could have rm'ed it instead. It was to demonstrate that if the TS> directory doesn't exist, vchkpw does not create it. Likewise with TS> vdelivermail. TS> I'm having a hard time following all of the code within vpopmail, and I'm TS> not sure where what needs to be done to get vchkpw and vdelivermail to TS> create the directory. Add this lines in vdelivermail.c This is work for me. if (chdir(vpw->pw_dir) == -1) { if (vmake_maildir(vpw->pw_dir, getuid(), getgid()) == -1) { printf("Could not make user dir\n"); return(-2); } } before opening new msg file: exmaple: if ((write_fd=open(local_file,O_CREAT|O_RDWR,S_IRUSR|S_IWUSR))== -1) { printf("can not open new email file errno=%d file=%s\n", errno, local_file); return(-2); } TS> -- TS> Troy Settle TS> Pulaski Networks TS> 540.994.4254 - 866.477.5638 TS> http://www.psknet.com