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!

Exim pipe outgoing emails not working

Discussion in 'E-mail Discussion' started by VMunich, Jul 18, 2016.

  1. VMunich

    VMunich Member

    Joined:
    May 27, 2015
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Boston
    cPanel Access Level:
    DataCenter Provider
    Hello,

    I would like to pipe all emails Exim sends through a Python script. This script will keep a database of sending behavior, and suspends outgoing email for some domains in case of abuse, using WHM API.

    I haven't coded such script yet, as I'm still not able to send emails from Exim through my script.

    I have done this in Exim Configuration Manager > Advanced Editor:

    Code:
    Section: ROUTESTART
    outgoing_processor:
      driver    = accept
      condition = ${lookup {$sender_address_domain} \
        lsearch {/etc/localdomains} {yes}}
      transport = outgoing_script
      unseen
    
    Section: TRANSPORTSTART
    outgoing_script:
      driver  = pipe
      command =  /usr/bin/tee -a /root/exim_spam_filter/outgoing.log
    I'm using tee just to save the pipe output to a file, however it's not working. Emails are being delivered, but the pipe command is not being executed.

    Did I miss something?
     
    habpharmacy likes this.
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,323
    Likes Received:
    1,851
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I see a similar custom Exim configuration referenced on the following StackOverflow thread:

    Mail Routing using pipe in Exim

    Could you let us know if the pipe output works when using the syntax referenced on that thread?

    Thank you.
     
    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