The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

send email via PERL - process bounces

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

  1. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    16
    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
     
Loading...

Share This Page