Jaroslaw Rafa:
> Hello All,
> I am using spamassassin with my postfix setup in form of "simple
> content filter", as described here:
> http://www.postfix.org/FILTER_README.html#simple_filter . That means, smtp
> server has the option "-o content_filter=spamassassin" defined in master.cf
> file, and also a service named "spamassassin", which calls the filter
> script, is defined in master.cf file.
> 
> This works fine except for one thing. I also use OpenDKIM to DKIM sign
> outgoing mail, and therefore have milters connecting to OpenDKIM server
> defined in main.cf file:
> 
> smtpd_milters = inet:localhost:10025
> non_smtpd_milters = inet:localhost:10025
> 
> I must define both smtpd_milters and non_smtpd_milters, as most mail is sent
> from mutt running directly on server, so they are sent by directly calling
> /usr/lib/sendmail.
> 
> And here is where the trouble comes. When a mail arrives to my server with
> my own address as the sender (for example, my emails coming back from a
> mailing list), the content filter script also calls /usr/lib/sendmail to put
> the message back in the queue, and hence the message is again signed by
> DKIM. I want to avoid this.
> 
> I tried to run /usr/lib/sendmail which gets called by filter script with
> another main.cf file (specified by "-C" parameter), that doesn't include the
> above milter lines, but, on the other hand, does include
> "receive_override_options = no_milters". However, this doesn't help - the
> second signature still appears. Looks like the "no_milters" parametr is not
> passed to pickup daemon this way.

Would not "sendmail -G" suppress local modification?

   -G     Gateway (relay) submission, as opposed to initial  user  submis-
          sion.   Either do not rewrite addresses at all, or update incom-
          plete addresses  with  the  domain  information  specified  with
          remote_header_rewrite_domain.

This is the recommended setting for post-filter re-injection. With
this, Postfix pretends that the mail is from a remote origin.

        Wietse

> How to configure this so that after the content filter no milters are used
> again?
> -- 
> Regards,
>    Jaroslaw Rafa
>    r...@rafa.eu.org
> --
> "In a million years, when kids go to school, they're gonna know: once there
> was a Hushpuppy, and she lived with her daddy in the Bathtub."
> 

Reply via email to