> I'd use add_recipient() and let sendmail/procmail worry about
> the details of the file format and locking. You might have to
> add a dummy user to own the mailbox, though.
That is exactly what we've done recently. In sub filter_end()...
# WHEN A MESSAGE IS SENT TO THE SPECIFIED
# RECIPIENT, ALSO COPY A LOCAL ON-DISK MAILBOX
foreach $recip(@Recipients) {
if ($recip =~ /[EMAIL PROTECTED]/i) {
add_recipient ('[EMAIL PROTECTED]');
last;
}
}
You need to first create a local user account "debug", on the mimedefang
server. Whenever an email is sent to an external test account, a copy is
also sent to the local user's mailbox.
Ken
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang