On Fri, Jan 04, 2019 at 10:40:21PM -0200, Rafael Azevedo wrote:
> > postfix -c /etc/postfix/ start
>
> this is how we start postfix intances since this server has multiple
> testing configurations.
Because the correct command is just "postfix start". And you want
multiple instances read MULTI_INSTANCE_README, and configure them
properly.
> > don't do that.
> why?
Because it causes the problem you're reporting, by supplying a
subtly non-default configuration directory.
> and why shall I keep away from php for this content filter script? I
> think its fast (isn't it?)
Because it is too easy to create security issues in PHP scripts.
> I want to easily be able to compare last message with a database and
> try to match if the sending message is bulk or not and drop it if so.
Try Python or Perl, and use a command-execution interface that
bypasses the shell, and directly calls execve(2) or execvp(3) with
an array of arguments. Make sure to separate the first recipient
address from the last option with "--", and make sure to pass "-f",
"sender-address" as two separate arguments.
--
Viktor.