View Single Post
  #1  
Old 24th July 2010, 05:49
MrCompTech MrCompTech is offline
Member
 
Join Date: Jul 2010
Posts: 92
Thanks: 1
Thanked 19 Times in 8 Posts
Default Some info on email rules for ISPConfig3

The program/scripts that ISPConfig3 use for email rules is called 'sieve'.

While trying to troubleshoot an e-mail forwarding problem the e-mail log revealed that there was a problem with a script for the user -

/var/vmail/sjwebdocs01.info/smitjame01/.sieve

and to check the log file:

/var/vmail/sjwebdocs01.info/smitjame01/.sieve.log
This was the error in the log:
Code:
sieve: info: started log at Jul 23 22:58:56.
main_script: line 6: error: expected end of command ';' or the beginning of a compound block '{', but found end of file.
main_script: error: parse failed.
sieve: info: started log at Jul 23 23:01:22.
main_script: line 6: error: expected end of command ';' or the beginning of a compound block '{', but found end of file.
main_script: error: parse failed.
sieve: info: started log at Jul 23 23:06:06.
main_script: line 6: error: expected end of command ';' or the beginning of a compound block '{', but found end of file.
main_script: error: parse failed.
sieve: info: started log at Jul 23 23:21:40.
main_script: line 4: error: unexpected character(s) starting with '''.
main_script: line 4: error: expected end of command ';' or the beginning of a compound block '{', but found unknown characters.
main_script: line 4: error: unexpected character(s) starting with '@'.
main_script: line 4: error: unexpected character(s) starting with '.'.
main_script: line 4: error: unexpected character(s) starting with '''.
main_script: error: parse failed.

And some Googling revealed that this is a language used for applying english like rules to the treatment of email.

I found this http://www.nada.kth.se/datorer/e-pos...#general.sieve

The important item for me was to use a rule such as:

redirect "my-address@somewhere.else.com";

to redirect an e-mail

and to keep a copy :

redirect "my-address@somewhere.else.com";
keep;

Well, just thought I would share this with the community
Reply With Quote
Sponsored Links