tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Samson Golden <sam () comport ! com>
To: tru64-unix-managers
Subject: SUMMARY: Changing spool directories for sendmail V8.8
Date: Thu, 03 Sep 1998 19:59:53 +0000	[thread overview]
Message-ID: <96078721911624.tru64-unix-managers.marc@archive.invalid> (raw)


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@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

                 reply	other threads:[~1998-09-03 19:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox