Home Forums OS X Server and Client Discussion Mail Sieve scripts »by hand«

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #358793
    Pascal
    Participant

    >> “It’s installed by default on OS X Server, but you have to hand install the scripts. “

    Just for testing and some playing around I would like to do just that! Installing some sieve scripts by hand and see how they work and get comfortable with this stuff…

    I did not install the package yet but placed some scripts in the (freshly created) directory /usr/sieve . Unfortunately to no avail.

    So how can I make this work? Any help and insight greatly appreciated!

    Pascal

    PS: Sorry, I should have posted to the forum right away…

    #358828
    Pascal
    Participant

    Hmm…

    According to the readme of the timsieved.pkg this *should* work:

    “You can put scripts in there on a default install of OS X Server and have them work. Cyrus knows how to use them out of the box.”

    Strange…

    Help, please!

    #358850
    Pascal
    Participant

    Having an account ‘ilpostino’ which can send and receive mail, I did this:

    – mkdir /usr/sieve
    – mkdir /usr/sieve/ilpostino
    – touch /usr/sieve/ilpostino/filter.sieve
    – chown -R cyrus /usr/sieve

    For testing only:
    – chmod -R 777 /usr/sieve

    Then I edited filter.sieve using pico:

    —–
    require [“fileinto”, “reject”, “vacation”];

    ### Trying vacation…
    #vacation :days 2 :addresses [“[email protected]”, “[email protected]”]
    #
    #”I’m away until some time in the future.”;

    ### Trying a header-test…
    #if header :contains [“To”, “Cc”]
    #[
    # “[email protected]”,
    # “[email protected]
    #]
    #{
    # redirect “[email protected]”;
    # reject “Not taking mail from you…”;
    # stop;
    #}

    ### Trying unconditional redirect…
    redirect “[email protected]”;
    —–

    (where ‘XXXXX’ is a valid domain of course)

    Stopped and restarted the mail-system.

    Unfortunately no luck so far! 🙁

    #358852
    Pascal
    Participant

    Ahh!

    Slowly beginning to understand…

    It all (ssems) to depend on the subfolder(s) layout:


    /usr
    - /sieve
    - /p
    - /postmaster
    - /s
    - /someone-else
    - /some-other-user

    ...

    Inside the user directory/ies (postmaster, someone-else, …) place your sieve scripts in a file named ‘default’.

    Sorry for bothering you all.

    Smallish update:
    For the lazy it could be tempting to set ‘sievedir: /var/imap/user’ in imapd.conf . This way the required directory layout already is present.
    But this is untested!

    Pascal

    #359279
    svenc
    Participant

    [QUOTE BY= Pascal] Ahh!

    Smallish update:
    For the lazy it could be tempting to set ‘sievedir: /var/imap/user’ in imapd.conf . This way the required directory layout already is present.
    But this is untested!

    Pascal[/QUOTE]

    Thats it…it solved my problem..

    Thanks

    Sven C.

    #359280
    svenc
    Participant

    I can´t find any file, where this filter-rules, defined via squirrelmail/timsieve are stored.

    Thanks in advance

    Greetings

    Sven C.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Comments are closed