mouss napsal(a):
Vladimir Dvorak wrote:
Thank you for you advice!
I haven`t tested it yet, but it probably won`t work because of infinite
loop of refiltering.
mail->postfix->maildrop -> maildroprc -> sendmail anotheraccount ->
maildroprc ->sendmail anotheraccount -> maildroprc -> sendmail
anotheraccount....
This is getting off topic, but it would be bad to stop the thread at
this point. further discussion should go to the postfix ML.
You can disable filtering for mail submitted using the sendmail command.
In postfix, you just put "-o content_filter=" under the 'pickup' service
in master.cf. warning: this really disables filtering for all mail
submitted using the 'sendmail' command. should be ok except if you have
untrusted programs running on the box (open web forms).
And if i use "cc", this message obviously wouldn't be *forwarded*, just
*copied* to another account, wouln't it true?
you can indeed use cc to copy to another mail file, provided maildrop
has permission to do so. if using a single uid/gid virtual store, this
is trivial, but setuid may be enough
But... "cc" just copies a message to another account. Unfortunately I
need the message with "X-Spam-Flag: Yes" being delivered only to
ju...@domain.com (its another account on the same machine).
How can I do that? I suppose that "fw" directive (as forward) as
non-existent. :)
P.S. suid it not needed, all of the accounts has the same UID
Thank you.