[Exim] return-path gets overwritten

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Marten Lehmann
日付:  
To: exim-users
題目: [Exim] return-path gets overwritten
Hello,

I want to allow all my users to set the returh-path as they would like
to. So I set the following configure-option:

untrusted_set_sender = *

When I'm calling exim -t -fmyreturnpath@??? everything works
fine, myreturnpath@??? is the return-path. But I need more.

Not all users can call exim directly, e.g. the mail()-function in PHP
uses a fixed exim/sendmail-path, that can't be changed by the user. So
if they are composing an email and are creating on own Return-Path
header, it shall be kept. But exim rewrites it to userid@hostname. How
can I disable it? The optimum would be:

if ($from && !$returnpath)
    $returnpath = $from


if ($from && $returnpath)
    do nothing


Is this possible with exim? At least it was with qmail and that's the
last thing that needs to be solved before I call the qmail2exim
migration to be complete.

Regards
Marten