[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Re: Re: Changing "Return-Path" in PHP mail function - Help needed
- Subject: Re: [cobalt-users] Re: Re: Changing "Return-Path" in PHP mail function - Help needed
- From: Marco Baurdoux <linux@xxxxxxxxxxxxx>
- Date: Thu Oct 18 05:57:02 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
le 18.10.2001 13:38, Adrián Boismoreau à aboismoreau@xxxxxxxxxxxxxxx a
écrit :
> Well,
> As I've tested many coding from php.net and other solutions sugested here
> and none of them did work for me, I did the following:
>
> Edited the /etc/mail/sendmail.cf. The header stuff looks like this:
>
> #########################
> # Format of headers #
> #########################
>
> H?P?Return-Path: <$g>
> HReceived: $?sfrom $s $.$?_($?s$|from $.$_)
> $.$?{auth_type}(authenticated)
> $.by $?{if_name}${if_name}$|$j$. ($v/$Z)$?r with $r$. id $i$?u
> for $u; $|;
> $.$b
> H?D?Resent-Date: $a
> H?D?Date: $a
> H?F?Resent-From: $?x$x <$g>$|$g$.
> H?F?From: $?x$x <$g>$|$g$.
> H?x?Full-Name: $x
> # HPosted-Date: $a
> # H?l?Received-Date: $b
> H?M?Resent-Message-Id: <$t.$i@$j>
> H?M?Message-Id: <$t.$i@$j>
>
>
> I replaced the 2 first lines for this:
>
> H?P?Return-Path: <admin@xxxxxxxxxx>
> HReceived: $?sfrom $s $.$?_(admin@xxxxxxxxxx)
>
> And now mail headers sent from every script using sendmail has a return path
> that's not <httpd>
> Hope hosts not to filter emails anymore.
>
> Regards,
>
> Adrián E. Boismoreau
Nice starting point, but wouldn't it be better to set the return path to be
the same as the "from" header ???