Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Dec 1999 19:53:55 -0500 (EST)
From:      x@asdf.com
To:        freebsd-questions@FreeBSD.ORG
Subject:   mail.local hack to deliver email to home directories
Message-ID:  <Pine.BSF.4.10.9912051945140.18963-100000@bellona.asdf.com>

next in thread | raw e-mail | index | archive | help
Hello

The old sys admin who used to work here had hacked the mail.local program
on an OLD BSD system so that email would be delivered to
/usr/home/<user>/.mail, instead of /var/mail. All he did was change one
line in mail.local.c:

/*      Hack to send mail to users local directories */
/*      (void)snprintf(path, sizeof(path), "%s/%s", _PATH_MAILDIR, name); */
        (void)snprintf(path, sizeof(path), "%s/.mail", pw->pw_dir);


This has always worked and we have never had a problem with it. I just did
this to my new 3.3 machine and it seems to work fine, though I haven't
finished testing it. My question is, does anyone see any issues with this?
I know that you can use procmail as your local mailer, but I had
heard/read that procmail is not the best solution for FreeBSD local
mailing because of how it reads the emails into memory (i.e. a big mail
can crash procmail).


Thanks,

-Dan



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9912051945140.18963-100000>