Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

send email via PERL - process bounces

Discussion in 'E-mail Discussion' started by forlinuxsupport, Jun 6, 2007.

  1. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    hey guys

    I have a problem.

    A client sends emails out via a perl script. It works fine. The problem is if the emails go to a non-existent address they will bounce back to. So far so good.

    The problem is they bounce back to the address "Domain-user@server-hostname.com" - which exim sets automatically.

    That works fine as it goes into the "Domain-user's" mailbox.

    If I try use filtering rules they dont work, I think the reason is because its has "Domain-user@server-hostname.com".

    I need to be able to set the address they will bounce back to, which is the "Return-Path"
    I want to set it to "Domain-user@domainanme.com"

    If I use PHP, I can set the "Return-Path" fine using the -f flag.
    But I can't seem to get PERL to set the Return-Path flag.

    Does anyone know how I can do that with cpanel / exim ?
    or do I have to use PHP ?

    Regards
    Andy
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice