Once upon a time, Chris Kottaridis <chriskot(a)quietwind.net> said:
I was expecting
/var/vmail/<domain>/Maildir
where <domain> would be $j from sendmail, which I would have assumed was
my hostname.
The issue may be on the Dovecot side; my example included both "-d $u"
and "-a $u+$h@$j" args to deliver, and I think Dovecot may be using the
-d arg instead of the -a arg for figuring the %u/%n/%d fields. IIRC I
added the -a for Sieve processing (to get the +plus part of the
address).
Another way of handling it would be to setup a custom sendmail ruleset
for envelope recipient address rewriting. The default EnvToL strips off
the domain; something like (mostly copied from EnvToL, untested of
course):
LOCAL_RULESETS
SEnvToL
R$+ < @ $+ > $: $1 @ $2
R$+ < @ $* > $: $1 @ $&m
R$+ + $* $: < $&{addr_type} > $1 + $2
R<e s> $+ + $* $: $1
R< $* > $+ $: $2
This would affect other mailers that use this ruleset of course (prog is
the only other by default).
--
Chris Adams <cmadams(a)hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.