OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Albrecht Marcus (Marcus.Albrechtsycor.de)
Date: Fri Jan 18 2002 - 08:37:25 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Thanks!

    That was exactly what i was looking for.
    I now just have to get php to do it also ...

    Marcus Albrecht

    -----Ursprüngliche Nachricht-----
    Von: Ralf Hildebrandt [mailto:Ralf.Hildebrandtcharite.de]
    Gesendet: Freitag, 18. Januar 2002 14:56
    An: 'postfix-userspostfix.org'
    Betreff: Re: Return to right sender problem

    On Fri, Jan 18, 2002 at 02:47:05PM +0100, Albrecht Marcus wrote:

    > The mails are beeing generated with the from adresse of the
    > coressponding virtual user (nickdomain).

    I hope you sent the envelope sender to that address and not merely a
    header.

    > If for some reason the mail wants to get back to the sender (e.g.
    > destination mailbox full), it tries to get to nobodyserver as
    > mentioned in the header with the "Received: by www1.funama.sycor.de
    > (Postfix, from userid 99)" statement instead of the from address.

    Because you didn't specify a proper envelope sender.

    > What has to be done to get the mail to the right "sender" ?

    Specify a proper envelope sender in the first place.

    > Is there a switch to allow user nobody to change the origin of the
    > mail or something like that?

    I'm sure there is in PHP.

    > Received: by www1.funama.sycor.de (Postfix, from userid 99)
    > id 79A5A1C17BC9; Thu, 17 Jan 2002 16:00:43 +0100 (CET)

    The mail was injected into Postfix by using the sendmail
    compatability interface. PHP uses that, I guess.

    Like this:

    echo text | sendmail marcus.albrechtsycor.de

    Correct would be:

    echo text | sendmail -f MacOSfunama.de marcus.albrechtsycor.de

    > To: marcus.albrechtsycor.de
    > Subject: test
    > From: MacOSfunama.de

    -- 
    Ralf Hildebrandt (Im Auftrag des Referat V A)   Ralf.Hildebrandtcharite.de
    Charite Campus Virchow-Klinikum                 Tel.  +49 (0)30-450 570-155
    Referat V A - Kommunikationsnetze -             Fax.  +49 (0)30-450 570-916
    I was married by a judge. I should have asked for a jury. - Groucho Marx
    

    - To unsubscribe, send mail to majordomopostfix.org with content (not subject): unsubscribe postfix-users - To unsubscribe, send mail to majordomopostfix.org with content (not subject): unsubscribe postfix-users