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!

pipe email from exim to perl script, need help from exim & perl expert

Discussion in 'E-mail Discussion' started by markhard, Apr 21, 2005.

  1. markhard

    markhard Well-Known Member

    Apr 22, 2004
    Likes Received:
    Trophy Points:
    i'm trying to create my own blacklist using perl. my question is, how to configure exim so it will pass all email that coming to my mail server to my perl script? i already try this configuration:

    begin routers

    driver = accept
    domains = +local_domains
    transport = to_perl

    begin transports
    driver = pipe
    command = /home/username/ $message_id

    it does call my perl script, as my perl script can print the email's message_id, but when i check to /var/spool/exim/input there is no email with that message_id, the email recepient doesn't receive the email, the email is just vanished..

    please help me.. how to grab email (with full header and body) to my perl script and then my perl script will pass it to exim again?

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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