I figured out what was going wrong with maildrop.
The environment variable SHELL (which holds the shell specified to
process maildrop forwards and pipes) defaults to '/bin/nologin'.
Obviously, this can't handle pipes or spawn a sendmail process to
forward mail.
So making sure that your maildrop filter file contains something like:
SHELL=/bin/bash
should take care of it.
Note also that string arguments to 'to' need to be quoted, so that the
correct form is:
to "!someaddr...@example.com"
With this problem solved, I think maildrop makes a pretty good
replacement for procmail for final delivery filtering on your qmailtoaster.
Angus
Angus McIntyre wrote on 11/29/20 10:01 PM:
Yeah, for some reason that doesn't work for me. I'm not sure if I need
to be running maildrop in a different mode or something, but when I tell
it:
to "!someaddr...@example.com"
it logs:
Err!: !someaddr...@example.com
and throws the message back in the queue. If I try:
to !someaddr...@example.com
it doesn't throw an error, but it writes everything locally to a file
named '0'. Attempts to pipe the output through something also produce
'Err!' errors.
I haven't yet found a way to get it to be more explicit about what's
bothering it (verbose logging doesn't seem to work).
It handles local deliveries without problems, but anything else seems to
cause mysterious errors.
Thanks nonetheless,
Angus
Eric Broch wrote on 11/29/20 9:14 PM:
https://serverfault.com/questions/151262/how-can-i-use-maildrop-to-forward-a-copy-to-another-email-address
On 11/29/2020 6:59 PM, Angus McIntyre wrote:
Does anyone have any experience of using maildrop with qmail?
I'm able to get maildrop to filter and deliver locally without
problems, but attempts to forward to remote (or local) addresses just
cause maildrop to report an unhelpful "Err!".
If anyone has made this work successfully, I'd welcome some guidance.
Thanks
Angus
---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com