A long time ago, when I didn't know any better, I did a lot of work 
setting up procmail recipes to handle mailing list sorting and other 
drudgery. I had an alias, "listmail: rob0", and sordid rules did the 
sorting.

Later, I knew a little better, and I migrated all my subscriptions 
to "listmail+Tag", where "Tag" is a token appropriate to the list, such 
as "Postfix" for this one. Then a fairly simple procmail recipe handled 
all my lists without any trouble (except for the occasional problem of 
lowercased Tag, which turned out to be automated messages from 
listservers, that I did not mind missing.)

That was fine for awhile. In fact it still IS fine, but I figured I 
could do this sorting using .forward files. I figured wrong. This was 
my Christmas Day project.

First problem: well, I thought the alias would still have the Tag 
extension, but no, ~rob0/.forward+Postfix was not used. According to 
local(8), SECURITY: "The local(8) delivery agent disallows regular 
expression substitution of $1 etc. in alias_maps, because that would 
open a security hole." Perhaps $EXTENSION is in the "etc."

Next, I tried creating a system user in passwd, "listmail", with $HOME 
at /home/rob0/lists. I gave it the same UID as rob0. Then I saw that 
the $EXTENSION was coming through as noted in the logs. But again, the
/home/rob0/lists/.forward+* files were being ignored.

Later, I gave up and set the alias as "listmail: rob0+lists". And
/home/rob0/.forward+lists seems to be honored ... sending to procmail.
Sigh.


postconf relevant entries:
home_mailbox = Maildir/
recipient_delimiter = +


/etc/passwd:
rob0:x:1007:100:Rob McGee,,,,MiniTrue:/home/rob0:/bin/bash
listmail:x:1007:100:rob0 listmail,,,,:/home/rob0/lists:/bin/bash


r...@miniluv:~$ v -d ../rob0
drwx--x--x 12 rob0 users 4096 2008-12-25 18:14 ../rob0/
r...@miniluv:~$ v -d lists
drwxr-xr-x 2 rob0 users 4096 2008-12-25 20:15 lists/
r...@miniluv:~$ v lists/.forward+Postfix
-rw-r--r--  1 rob0 users   30 2008-12-25 15:24 .forward+Postfix
r...@miniluv:~$ cat $_
/home/rob0/Maildir/.Postfix/


Did I miss something (verbose logs will be coming soon), or could the 
problem be the two users with the same UID?
-- 
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header

Reply via email to