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.

Using exim with procmail?

Discussion in 'E-mail Discussions' started by johny1415, Mar 28, 2015.

  1. johny1415

    johny1415 Registered

    Joined:
    Mar 28, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    here
    cPanel Access Level:
    Website Owner
    I have a shared account from Hostgator. In order to be able to filter incoming mail with .procmailrc I added the following to my /etc/vfilters/<USERS>:

    Truly, it looks quite strange. I have never had an opportunity to use Exim before. I don't want to use Exim native filtering because I already have a quite big list of procmail rules. Is this method of using procmail with Exim reliable or are there more recommended ones?
     
    #1 johny1415, Mar 28, 2015
    Last edited: Mar 28, 2015
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    This is not likely to work because procmail is not normally installed with cPanel. You may want to check with your hosting provider to see if there are any alternatives.

    Thank you.
     
  3. ottdev

    ottdev Well-Known Member

    Joined:
    Oct 1, 2013
    Messages:
    63
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Can I get a second opinion from cpanel ? I have a VPS and it is present - is it default/setting dependent or did my host install it manually?
    /usr/bin/procmailrc
    /usr/share/doc/procmail-3.22
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    If you have a VPS then you are welcome to install it if it's not included with your OS by default. Feel free to add the filter rule and let us know of the results.

    Thank you.
     
  5. ottdev

    ottdev Well-Known Member

    Joined:
    Oct 1, 2013
    Messages:
    63
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Yes, it works! I still wish to know if procmail is included standard in cPanel issue or dependent on what ?

    Here is a simple test you can replicate:

    In /etc/vfilters/mydomain.tld is code to make all email to my domain be subject to my procmail rules:
    In /home/myacctname/.procmailrc would be my specific procmail rules - the one test rule shown sends all email to a specific address into mailfolder called tmp:
    Results shown in /home/myacctname/.procmail.log :
    The message landed in /home/myacctname/mail/tmp/ folder

    I will update this post once I have time to confirm that piping to a program via a procmail rule works as well.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    No, it's not included with cPanel by default.

    Thank you.
     
Loading...

Share This Page