return-path of mails wrong

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • zfrank
    Member
    • Feb 2002
    • 99

    return-path of mails wrong

    I´ve problem. Return-path of forum-mails is wrong.
    It is always set to [email protected]
    Some smtp-server reject this mail with message, don´t accept anonymous mail.
    How can I change this?

    Here an header of a mail:

    Return-Path: <[email protected]>
    Received: from localhost (localhost.localdomain [127.0.0.1])
    by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h1S8hCwb007904
    for <zfrank@localhost>; Fri, 28 Feb 2003 09:43:12 +0100
    Envelope-to: [email protected]
    Delivery-date: Fri, 28 Feb 2003 09:25:28 +0100
    Received: from pop.kundenserver.de [212.227.126.233]
    by localhost with POP3 (fetchmail-5.9.0)
    for zfrank@localhost (single-drop); Fri, 28 Feb 2003 09:43:12 +0100 (CET)
    Received: from [207.44.196.90] (helo=mydomain.com)
    by mxng04.kundenserver.de with smtp (Exim 3.35 #1)
    id 18ofpb-00023m-00
    for [email protected]; Fri, 28 Feb 2003 09:25:23 +0100
    Received: (qmail 8874 invoked by uid 48); 28 Feb 2003 08:27:22 -0000
    Date: 28 Feb 2003 08:27:22 -0000
    Message-ID: <[email protected]>
    To: [email protected]
    Subject: Reply to post 'IRC-Channel #gsm'
    From: "GSM-Forum Mailer" <[email protected]>
    Last edited by zfrank; Sat 16 Aug '03, 10:46pm.
  • zfrank
    Member
    • Feb 2002
    • 99

    #2
    Ok
    I searched mail-function in vB and found an solution.
    I hardcoded in admin/function.php Return-Path, now it is working for me.

    Comment

    • gourou
      New Member
      • Dec 2001
      • 1

      #3
      anonymous qmail

      Originally posted by zfrank
      Ok
      I searched mail-function in vB and found an solution.
      I hardcoded in admin/function.php Return-Path, now it is working for me.

      could u send me your file modified cause I have the same weird problem with qmail and some mailservers

      but I did not find "return-path" in function.php

      thanx in advance


      jp

      Comment

      • zfrank
        Member
        • Feb 2002
        • 99

        #4
        Originally posted by gourou
        could u send me your file modified cause I have the same weird problem with qmail and some mailservers

        but I did not find "return-path" in function.php

        thanx in advance


        jp
        I fixed it so:
        find in admin/function.php this:

        Code:
         $from = trim($from);
         $username = trim($username);
        and add after this:
        Code:
        $headers .= "Return-Path: <[email protected]>\n";
        this is all... and working for me without problems...

        here the code after modifying

        Code:
         $from = trim($from);
         $username = trim($username);
         $headers .= "Return-Path: <forum@gsm****.com>\n";

        Comment

        • feldon23
          Senior Member
          • Nov 2001
          • 11291
          • 3.7.x

          #5
          zfrank,

          You rock.

          Comment

          • sun_tzu
            New Member
            • Nov 2008
            • 8

            #6
            Originally posted by feldon23
            zfrank,

            You rock.
            this is a hack!!!

            once you install an update from vBulletin, this change will be lost.

            Why can't a value be stored in the email options section that allows you to store this value as a part of the code base?

            Comment

            • peterska2
              Senior Member
              • Oct 2003
              • 8869
              • 3.7.x

              #7
              Please do not post in threads from 5 years ago and for extremely old versions of vBulletin.

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...