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.

How to enable procmail in exim

Discussion in 'E-mail Discussions' started by Msx, May 23, 2004.

  1. Msx

    Msx Registered

    Joined:
    May 9, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Does Anyone know how to support procmail in exim ?

    I searched all theinternet but I can't find any solutions, most of the result talk as if procmail supported by default

    I have attached my exim.conf file

    PS: I don't know anything about exim, so I am very sorry if this easy question.
     

    Attached Files:

    #1 Msx, May 23, 2004
    Last edited: May 23, 2004
  2. jsaravana

    jsaravana Registered

    Joined:
    May 30, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I tried to setup procmail in exim and atlast it was a sucess, and i wanted to share the same with you guys.

    This is what i did..

    My hosting server:

    1. it has cpanel
    2. exim

    when i checked with support of my hosting server, they said the way exim works is different and does not use .procmailrc or .forward, and asked me to use forwards from the cpanel interface.

    Procedure:
    Step 1

    i created a .procmailrc file and setup my filters.
    this file was created in my home directory.
    ie. if you logon using shell or telnet , the first directory you go when you login.

    or if you are using ftp, then the top most directory which you can access.

    NOTE: these files ( starting with . ) is not visible using ls or ls -l command from shell insted use ls -la
    i.e $ ls -l


    IMPORTANT NOTE: make sure you set the verbose = off
    else you'll receive mail could not be delevered message


    Step 2

    goto cpanel and goto mail
    create a forward and enter the path to procmail in the place of destination with | pipe symbol.

    i.e. guest@domain.com ==> |/usr/bin/procmail
    NOTE: make sure you have use the pipe.

    you are all set now...

    here is my sample .procmail file

    VERBOSE=no
    SENDMAIL=/usr/lib/sendmail
    SHELL=/bin/sh
    LOGFILE=./proclog.log
    MAILDIR=$HOME/mail

    :0 c
    * ^TO.*guest@mydomain.com
    ! admin@mydomain.com


    feel free to contact me if you have any questions...

    saravana@dbconsultinc.com
     
  3. Msx

    Msx Registered

    Joined:
    May 9, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thank you (jsaravana) for your help

    I am using exim vfilters ,after using it I think its easyer than procmail

    Thank you again
     
Loading...

Share This Page