Hi,
I'm having a problem with forwarding from within a maildrop filter file.
If I have something like,
to "[EMAIL PROTECTED]"
and [EMAIL PROTECTED] happens to be an invalid address, the DSN is being sent to the "daemon" user instead of the original sender.
This may be because maildrop is being run as an external program from within the etc/courier/aliasdir/.courier-default file.
But regardless, that certainly is not the desired effect.
How does forwarding from within a maildrop filter file work? Is it always initiated by the daemon user, and how can I ensure that any errors get
bounced back to the original sender and not the generic daemon system user?
Forwarding is done simply by invoking the sendmail command. The sendmail command, by default, sets the return address to the userid that invoked the sending command.
If you want to preserve the original sender address, try the following approach:
import SENDER to '| sendmail -f "$SENDER" [EMAIL PROTECTED]'
The SENDER environment variable should be the original return address, so import it in order for maildrop to subsequently export it, when it runs the external command.
It's very important to use the exact quoting as given above.
pgp00000.pgp
Description: PGP signature
