On Sep 22, 2012 8:16 PM, "Reindl Harald" <h.rei...@thelounge.net> wrote:
>
>
>
> Am 22.09.2012 16:41, schrieb Андрей Клаус:
> > 1) At webserver postfix generates a message-id field. And it always has
the same hostname (hostname, which i
> > defined in $myhostname). I would like to have message id use domain
which will depend on sender address. So, if
> > sender address is nore...@domain1.tld, message id should look like
"Message-Id:
> > <20120921201403.E349360F3@*domain1.tld*>", and in case if sender
address is nore...@domain2.tld message id should
> > look like "Message-Id: <20120921201403.E349360F3@*domain2.tld*>". So, i
need rewrite message id depend from sender
> > address. header_checks is doing rewriting by string as i see.. Is there
any way to perform message id rewriting as
> > i want?
>
> why do you not generate the message-id in your PHP-APP instead fixing
> it after submit by postfix? solve problems where they
> are happening instead of work around him
>
Very true. It is easier to generate message-id in php. This way, OP can set
whatever message-id that he wants.