Some info on email rules for ISPConfig3

Discussion in 'General' started by MrCompTech, Jul 24, 2010.

  1. MrCompTech

    MrCompTech New Member

    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-post/sieve-at-nada.shtml#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 :)
     
  2. till

    till Super Moderator

    It is not always sieve, the filter language depends on the pop3 / imap daemon that you have installed. The filter language is either sieve when you use dovecot and it is maildrop in case of courier.

    The filter rules to forward emails are also explained in the ISPConfig FAQ.
     

Share This Page