Fred Drueck writes:

However, on both Debian and Ubuntu (also Arch Linux, using a package
built from the AUR), even with courier-maildrop installed, it does not
appear that maildrop is invoked by default to deliver local mail.
Either that, or when maildrop is invoked in this manner, it *will*
deliver mail to a user home directory with the sticky bit set.

The default Courier configuration does not use maildrop.


The courier online documentation suggests this should not be the case:

http://www.courier-mta.org/local.html

> Output module
>
> setuids to the user indicated in the host parameter.
> If $HOME has the sticky bit set, defers the mail.

That's going to be corrected.

there are 2 points I'm trying to make in pointing this out, I guess:

1) the documentation is confusing, especially since courier-mta
appears to differ from qmail in it's default behavior

2) I would welcome suggestions on how to temporarily defer mail
delivery for one particular user, for both local and remote mail
deliveries.

You could set DEFAULTDELIVERY to something like this:

DEFAULTDELIVERY='| test -k $HOME && echo "Unavailable" && exit 1; exit 0
./Maildir'

DEFAULTDELIVERY is the default contents of $HOME/.courier, and can contain multiline delivery instructions.

Watch out for variables in the courierd config file. It is sourced as a shell script, hence the apostrophes.

Attachment: pgpsPRluxhRrl.pgp
Description: PGP signature

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to