Home › Forums › OS X Server and Client Discussion › Mail › Sieve scripts »by hand«
- This topic has 6 replies, 3 voices, and was last updated 20 years, 7 months ago by
svenc.
-
AuthorPosts
-
August 16, 2004 at 3:59 pm #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…
August 18, 2004 at 4:09 pm #358828Pascal
ParticipantHmm…
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!
August 19, 2004 at 10:52 am #358850Pascal
ParticipantHaving 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/sieveFor testing only:
– chmod -R 777 /usr/sieveThen 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! 🙁
August 19, 2004 at 3:12 pm #358852Pascal
ParticipantAhh!
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
September 22, 2004 at 9:11 pm #359279svenc
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.
September 22, 2004 at 10:42 pm #359280svenc
ParticipantI can´t find any file, where this filter-rules, defined via squirrelmail/timsieve are stored.
Thanks in advance
Greetings
Sven C.
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed