Re: Milter problem

2014-07-08 Thread Christian Rößner
Hi Andreas, > The milter API knows two ways to add header: > 1) https://www.milter.org/developers/api/smfi_addheader > 2) https://www.milter.org/developers/api/smfi_insheader > > insheader allow to specify a position. Position 0 is special: "Topmost". > I found that many milter use position 1, ot

Re: Milter problem

2014-07-07 Thread Claus Assmann
Hello Wietse! > Hi Claus. Yes, Postfix does not send its own Received: header to > the Milter (or whatever the first line is after Milters have modified > the message). So the second part is the problem here; thanks for the clarification. For MeTA1 I added a flag to the pmilter API so a milter ca

Re: Milter problem

2014-07-07 Thread Wietse Venema
Claus Assmann: > > For Sendmail compatibility, Postfix does not show the first header > > line. I suggest that you put new content further down in the message. > > Does "the first header line" refer to the (locally added) Received: > header? Hi Claus. Yes, Postfix does not send its own Received:

Re: Milter problem

2014-07-07 Thread A. Schulze
Christian Rößner: Unfortunately I found out that always the very first header of an earlier milter is not visible in my milter. christian, The milter API knows two ways to add header: 1) https://www.milter.org/developers/api/smfi_addheader 2) https://www.milter.org/developers/api/smfi_inshe

Re: Milter problem

2014-07-07 Thread Claus Assmann
> For Sendmail compatibility, Postfix does not show the first header > line. I suggest that you put new content further down in the message. Does "the first header line" refer to the (locally added) Received: header? If so, sendmail doesn't provide that to a milter as it is not sent by the client

Re: Milter problem

2014-07-07 Thread Christian Rößner
Hello, >> I am currently trying to develop a milter for Postfix. I need all >> headers from a mail. Unfortunately I found out that always the >> very first header of an earlier milter is not visible in my milter. > > For Sendmail compatibility, Postfix does not show the first header > line. I sug

Re: Milter problem

2014-07-07 Thread Wietse Venema
Christian R??ner: > > I am currently trying to develop a milter for Postfix. I need all > headers from a mail. Unfortunately I found out that always the > very first header of an earlier milter is not visible in my milter. For Sendmail compatibility, Postfix does not show the first header line. I

Re: Milter problem

2008-11-17 Thread Noel Jones
sosogh wrote: > Hi all > > I am using postfix 2.5.5 and MIMEDefang 2.57 > > I know that the policy server can reply to Postfix with any action that > is allowed in a Postfix SMTPD access(5) table in Postfix SMTP Access > Policy Delegation ,such as: > *BCC* /[EMAIL PROTECTED]

Re: Re: Milter problem

2008-11-17 Thread sosogh
Thank you I have sent this question to mimedefang-filter maillist in fact ,but got no response So I tired to post it here : ( : ) 2008-11-17 sosogh 发件人: Wietse Venema 发送时间: 2008-11-17 20:12:25 收件人: sosogh 抄送: postfix-users 主题: Re: Milter problem > I have made a t

Re: Milter problem

2008-11-17 Thread Wietse Venema
> I have made a test adding the following code in mimedefang-filter: > > sub filter_sender { > my ($sender, $ip, $hostname, $helo) = @_; > if ($sender =~ /sosogh.cn/i) { >return ("FILTER smtp:[202.96.15.55]:25",""); > } > return ('CONTINUE', "ok"); > } > > But the log sai