SUMMARY: Changing spool directories for sendmail V8.8

From: Samson Golden <sam_at_comport.com>
Date: Thu, 03 Sep 1998 15:59:53 -0400 (EDT)

I had asked if it were possible to change the spool file directory
structure for Sendmail so that the spool files for users in different
zones served by one mail machine would wind up in a structure like the
following:

/var/spool/mail/zone1/user1
.
.
.
/var/spool/mail/zonen/usern

"Lance A. Brown" <brown9_at_niehs.nih.gov>

Suggested the following:

"I don't know if sendmail can be configured to do what you want, but I can
envision a solution where you use procmail, a local mail delivery agent
that is extremely configurable, to do what you want.

I would configure sendmail.cf use procmail as the local mail delivery
program and add a '-a zoneX' switch to the procmail command line. You can then
access this data as the variable $1 in a procmailrc file that just
delivers to the specified spool file.

Something like:

# Begin procmailrc
#
ZONE=$1

# Deliver to zoned spool directory
:0
/var/spool/mail/$ZONE/$LOGNAME

# End of procmailrc

should do the trick."


So I'm learning about procmail now, but have also had it suggested to me
by a friend that this probably won't work on the mail retreival end since
a POP3 server would likely have to be re-written to support this.

When I understand exactly how to make this work on both the inbound mail
and mail-retrieval ends, I'll post a note.

Thanks and regards
Received on Thu Sep 03 1998 - 20:00:55 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT