On 03/04/2004 10:20 AM, Jim Ramsay wrote:
> I used to use qmail on my mailserver. But then I got tired of looking
> for patches to do EVERYTHING, so I decided to try to use Postfix.
Me too; a month or so ago.
> The reason I want to do this is because on this non-production box, I
> want to be able to send everything to the user straight-through. I want
> to be able to make the file .forward-tmda work with TMDA only. But
> since postfix won't do .forward-tmda-default, I can't do this.
>
> Does anyone out there know how I can do this?
I'm not sure if this will do all of what you want, but here's what I do:
In main.cf, I set the following:
forward_path =
$home/.forward${recipient_delimiter}${extension}
${extension?$home/.forward-default}
${extension:$home/.forward}
This will use a .forward-extension, or .forward-default when the recipient
address has an extension, and .forward when it doesn't.
In .forward-default I put |/usr/bin/maildrop and use a .mailfilter something
like this. You would, of course, need to adjust for which extensions you
want to hand off to TMDA.
import SENDER
import RECIPIENT
import EXTENSION
# TMDA tagged addresses.
if ($EXTENSION =~ /^(confirm|expires|sender)-.*/)
{
# maildrop doesn't set empty env vars. :-(
# and the sender may be empty.
to "| /bin/env SENDER='$SENDER' /usr/bin/tmda-filter"
}
I have other stuff in my .mailfilter that's irrelevant to your problem, but
hopefully this will get you started.
--
Ron Bickers
Logic Etc, Inc.
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users