echo goes to the standard error.  This is largely useless in practice.
log has the same functionality and goes to the logfile, which defaults
to /dev/null.  logfile sets the logfile.  For debugging virtual
(local) users I use this in the virtual:

logfile $HOME/maildrop.log
log "To: $LOGNAME"

Actually, the log statement here is redundant, the normal logfile
output for each mail contains the recipient.  Note: $USER will be the
virtual mail psuedo user, vmail.

I am using Postfix, Maildrop, and Courier-IMAP.  Note, I have no
virtual domains, just two virtual users, imp and charger.  Their mail
gets dumped in /home/vmail/Maildir-imp/ and
/home/vmail/Maildir-charger/ where it is accessed via the IMAP server.

HTH,
  Jeffrey

Quoting Andreas Schuldei <[EMAIL PROTECTED]>:
> Is it correct that there are hardly any debugging facilitys in
> place for the case that I try to deliver mail using maildrop to
> virtual users? Is this expected to work in the first place? it
> seems hardly anyone has done that, the archives turn up nothing
> of value.
> 
> I do not get any output from courier-mta nor any other to syslog,
> mail.log or messages whather or not maildrop was being used or
> not found, if the .mailfilters or /etc/maildroprc was found or
> had the wrong permissions...
> 
> additionaly the documentation is not clear (or does not mention
> at all) where output of echo or log statements go. A manpage
> statement like 'logfile expression' is not helpfull. what kind of
> expression is expected there? these basic definitions are
> missing. more examples would be helpfull.
> 
> I feel kind of dsperat at this point. the usual ways of solving
> problems with free software fail. THis is not meant to be
> trolling, eventhough I would feel like it.
> 
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
I don't do Windows and I don't come to work before nine.
                 -- Johnny Paycheck

_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to