Wietse Venema wrote:
Jeff Weinberger:
[ Charset ISO-8859-1 unsupported, converting... ]
> On Jan 2, 2009, at 2:30 AM, mouss wrote:
>
> > Jeff Weinberger a ?crit :
> >>
> >> I used a pcre: table for smtpd_sender_restrictions and the PREPEND
> >> action as follows:
> >>
> >> main.cf:
> >> smtpd_sender_restrictions = check_sender_access
> >> pcre:/etc/postfix/smtpd_sender_restrictions.pcre
> >>
> >> smtpd_sender_restrictions.pcre
> >> /^(.*)/ PREPEND X-Envelope-Sender: ${1}
> >>
> >> this will insert into every message a header "X-Envelope- Sender: "
> >> followed by the envelope sender value. It won't pass the
> >> envelope-sender as SMTP MAIL FROM (dspam wasn't designed to do that,
> >
> > dspam gets it via LMTP MAIL FROM, and it will pass it back to postfix > > with SMT MAIL FROM. I have used this in the past and I'm sure others
> > are
> > using it now (ping steve?). something in your setup prevents this from
> > working but I don' think it is a dspam limitation.
>
> It's definitely my set up. I don't use LMTP to pass the message to
> dspam, I use a transport called "dspam" that uses pipe. That means
> there's no S/LMTP dialog, just the message itself passed as STDIN.

If you can show what you've configured to pass mail into dspam,
then perhaps someone can tell you how to get that envelope sender
address into dspam, too.

Wietse

I thought I had a while back, but I"m not sure it matters. Right now I am passing mail to dspam via pipe, which means dspam does not know how to handle the envelope-sender as a command-line argument. I need to change this to passing mail to dspam via LMTP.

I don't know how exactly, but I hope with some help, I can make it work!

That said, here's the current configuration:

     content_filter=dspam:dspam

and in master.cf:

     dspam     unix  -       n       n       -       10      pipe
flags=Ru user=_dspam argv=/usr/local/bin/dspam -- deliver=innocent --user ${recipient} -i - f $sender -- $recipient

dspam is running as a daemon .and re-injects the mail as SMTP to an alternate port.


I assume the LMTP setup should look something like:

main.cf:

content_filter=lmtp:unix:/path/to/dspam --deliver=innocent -- user ${recipient} -i - f $sender -- $recipient

and the transport in master.cf becomes unnecessary.

I don't know how to handle the command line arguments (or even if I have to), so suggestions, help and especially examples would be most helpful.

Thank you!





--
        
Jeff Weinberger
http://disruptivemarketing.jeffweinberger.com



Reply via email to