Re: Extracting domain name part of recipient's address

From: Victor Duchovni (no email)
Date: Thu May 19 2005 - 10:04:40 EDT

  • Next message: Adhish Vyas: "Re: sql plugin could not connect to host localhost (occassional error)"

    On Thu, May 19, 2005 at 09:56:48AM -0400, wrote:

    > I'll explain what I am trying to do.
    >
    > My server receives mails for a couple of domains, but all the mails
    > are for me and I want them in my mailbox. Different e-mail addresses
    > are used by individual contacts to send me mail.
    >
    > The mails are actually received from another unrelated e-mail address
    > to which they are routed using mail forwards external to my servers.
    > I use fetchmail to pull this mail in from a POP server.
    >
    > So, all incoming e-mail is received on one single e-mail address, but
    > the "To:" address will be different.
    >

    Stop right there, the header "To:" address has nothing to do with mail
    routing and its contents are naturally not available in pipe(8) argv
    substitution. Routing mail based on header contents creates loops.

    Do not confuse the headers and the envelope.

    Your fetchmail could revive the original envelope recipient if it
    is preserved by your ISP (X-Original-To, X-Envelope-To, ...). In that
    case the submission to the local Postfix could provide you with the
    data you need via ${nexthop} or ${recipient}.

    You sure have a mess on your hands, good luck. Never use header recipient
    addresses to reconstruct envelope recipients. For example which of your
    domains was this message sent to?

    -- 
    	Viktor.
    Disclaimer: off-list followups get on-list replies or get ignored.
    Please do not ignore the "Reply-To" header.
    To unsubscribe from the postfix-users list, visit
    http://www.postfix.org/lists.html or click the link below:
    <mailto:?body=unsubscribe%20postfix-users>
    

  • Next message: Adhish Vyas: "Re: sql plugin could not connect to host localhost (occassional error)"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD