"Derrick Stinson [Webmaster PC-Net]" <webmaster(_at_)p-c-net(_dot_)net> writes:
when i add the $home/.mail to the authencation.c file and send mail i
get the following error in the mqueue dir
procmail: Couldn't create
"/export/home/users/d/dstinson/export/home/users/d/dstinson/.mail"
and here is the line from the modified .c file
#ifndef MAILSPOOLDIR
#define MAILSPOOLDIR "/var/spool/mail/" /* watch the trailing / */
#endif
#ifndef MAILSPOOLHASH
/*#define MAILSPOOLHASH 0 /* 2 would deliver to
/var/spool/mail/b/a/bar */
#endif
#define MAILSPOOLHOME "$HOME/.mail" /* watch the leading / */
/* delivers to $HOME/.mail */
#define STRLEN(x) (sizeof(x)-1)
any ideas on why it is doubling the home dir????????
Because when you use MAILSPOOLHOME, procmail already knows to prepend
the person's home directory. To quote the original source:
/*#define MAILSPOOLHOME "/.mail" /* watch the leading / */
/* delivers to $HOME/.mail */
By setting MAILSPOOLHOME to "/.mail", procmail will deliver to "$HOME/.mail".
All you had to do is uncomment the #define.
Philip Guenther