On 17/03/16 22:27, Sam Varshavchik wrote:
>> >> How can I get back the previous maildrop behaviour where it treats
>> >> HOME as from the virtual homedir field rather than the home field
>> >> in /etc/passwd?
>> >
>> > Most likely by explicitly invoking maildrop with the -d option.
>>
>> I've read through most of this twice today...
>>
>> http://www.courier-mta.org/maildrop/maildropfilter.html
>>
>> but I can't seem to translate that info into how to "explicitly invoke"
>> the -d option in this particular use case...
>>
>> ./courierd:DEFAULTDELIVERY="|/usr/bin/maildrop -w 90"
>>
>> Is something like this possible?
>>
>> DEFAULTDELIVERY="|/usr/bin/maildrop -w 90 -d ${RECIPIENT}"
>
> Make them apostrophes. You don't want variable expansion at the time
> this setting is read, but rather when this is executed at delivery
> time.

I guess you meant something like this?

DEFAULTDELIVERY="|/usr/bin/maildrop -w 90 -V 9 -d '${RECIPIENT}'"

No difference with every permutation of the above I could think of.

***

To demonstrate the problem in case anyone else knows how to tweak the
regular maildrop deb package  to behave like the courier-maildrop package...

courier-maildrop package

Mar 17 05:12:19 gc3 authdaemond[7616]:
Authenticated: sysusername=<null>, sysuserid=1001, sysgroupid=1001,
homedir=/home/u/goldcoast.org/home/admin,
address=ad...@goldcoast.org, fullname=<null>, maildir=<null>,
quota=524288000S, options=<null>

Mar 17 05:12:19 gc3 courierlocal[7751]:id=blah,
from=<ma...@renta.net>,addr=<ad...@goldcoast.org>:
maildrop: Changing to /home/u/goldcoast.org/home/admin

maildrop package

Mar 17 06:11:29 gc3 courierlocal[7751]:id=blah,
from=<ma...@renta.net>,addr=<ad...@goldcoast.org>:
maildrop: Changing to /home/u/goldcoast.org


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to