[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Re: Re: Changing "Return-Path" in PHP mail function - Help needed



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
__________________
S K Y  m e d i a
info@xxxxxxxxxxxxxxx
www.skymedia.com.ar