Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

[SOLVED] Procmail

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
Jared Earle
Posts: 4
Joined: Tue Jan 14, 2014 10:00 pm

[SOLVED] Procmail
  • Quote

Post by Jared Earle » Tue Mar 25, 2014 1:47 pm

How can I get Procmail working on Exim? I want to add a per-user procmailrc without breaking the way Exim works with Vesta.
Last edited by Jared Earle on Thu Apr 24, 2014 12:43 am, edited 1 time in total.
Top

Jared Earle
Posts: 4
Joined: Tue Jan 14, 2014 10:00 pm

Re: Procmail
  • Quote

Post by Jared Earle » Thu Apr 24, 2014 12:23 am

Update: I hammered out a config that works.

Router:

Code: Select all

procmail:
  driver = accept
  transport = procmail
  condition = ${if exists{${extract{5}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/$domain/passwd}}}}/mail/${domain}/${local_part}/.procmailrc}}{yes}{no}}
  require_files = ${extract{5}{::}{${lookup{$local_part}lsearch{/etc/exim4/domains/$domain/passwd}}}}/mail/${domain}/${local_part}/.procmailrc
Transport:

Code: Select all

procmail:
  driver = pipe
  command = "/usr/bin/procmail -m ${extract{5}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/$domain/passwd}}}}/mail/${domain}/${local_part}/.procmailrc"
  return_path_add
  delivery_date_add
  envelope_to_add
  user = ${extract{2}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/$domain/passwd}}}}
  group = mail
  initgroups
  return_output
If you put a .procmailrc file in /home/$user/mail/$domain/$mailuser (i.e. /home/jared/mail/mydomain.com/jared/.procmailrc) then Exim will notice it and route the mail through proemial accordingly.

I hope this helps anyone else that was struggling.
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password