{ "created": "2021-06-04T03:52:15Z", "hierarchy": [ { "name": "ROOT", "type": "folder", "uri": "/ROOT" }, { "name": "Ancient Sysadmin Stuff", "type": "folder", "uri": "Ancient_Sysadmin_Stuff" }, { "name": "Vacation Messages on OS X 10.4 Server", "type": "article", "uri": "Ancient_Sysadmin_Stuff/Vacation_Messages_on_OS_X_10.4_Server" } ], "html": "\n\n \n \n \n \n \n \n \n \n \n \n \n Vacation Messages on OS X 10.4 Server – Nikhil's Personal Wiki\n \n \n \n \n \n
\n
\n \n
\n
\n \n \n\n

Vacation Messages on OS X 10.4 Server\n \n

\n

The Situation!

\n\n

The Resolution

\n

Use Cyrus IMAP’s sieve to set up a script that auto replies. It needs to
\nbe set up first.

\n
sudo mkdir /usr/sieve  \nsudo chown cyrusimap:mail /usr/sieve\n
\n

Add yourself to user group that can administer sieve by editing
\n/etc/imapd.conf:

\n
admins: cyrusimap, admin\n
\n

Now add sieve 2000/tcp #Sieve mail filtering to /etc/services.
\nRestart mail:

\n
sudo serveradmin stop mail  \nsudo serveradmin start mail\n
\n

Server should now be listening on port 2000:

\n
netstat -an | grep 2000  \ntcp4       0      0  *.2000                 *.*                    LISTEN  \ntcp6       0      0  *.2000                 *.*                    LISTEN\n
\n

Make a vacation script. It can be anywhere. Here’s the example from the
\nMail Server admin
\nguide
:

\n
#--------  \n# This is a sample script for vacation rules.  \n# Read the comments following the pound/hash to find out  \n# what the script is doing.  \n#---------  \n#  \n  \n# Make sure the vacation extension is used.  \nrequire "vacation";  \n  \n# Define the script as a vacation script  \nvacation  \n  \n# Send the vacation response to any given sender only once every seven days no matter how many messages are sent from him.  \n:days 7  \n  \n#For every message sent to these addresses  \n:addresses ["stone-purchasing@zeus.eng.uiowa.edu"]  \n  \n# Make a message with the following subject  \n:subject "Out of Office Reply"  \n  \n# And make the body of the message the following  \n"Test auto reply";  \n  \n# End of Script\n
\n

Enter the sieve shell

\n
/usr/bin/cyrus/test/sieveshell --user=testuser --authname=admin localhost  \nconnecting to localhost  \nPlease enter your password:   \n> put vacation.msg  \n> activate vacation.msg   \n> quit\n
\n

This creates /usr/sieve/t/testuser. Type ‘help’ for help. Use
\n‘deactivate’ to remove all scripts. Test. Fin.

\n\n\n
\n \n
\n \n \n \n \n \n\n", "id": "b4cde815-a129-55e8-90ec-0384c32c8095", "modified": "2023-05-03T20:33:13Z", "revisions": [ { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2023-05-03T20:33:13Z", "id": "13fd9aa2c17070823012a12dd946d050e3ed6bf3", "shortId": "13fd9aa2", "subject": "Initial commit\n", "content": "The Situation!\n--------------\n\n* Mac OS X 10.4.11 Server\n * Postfix, Cyrus, Dovecot\n* Couldn't put vacation in user's homedir\n* Couldn't find vacation binary\n* Other sieve programs only worked with SquirrelMail, only with user\n homedirs\n* Roundcube plugin needed FTP access... to put stuff in homedirs\n* Apple's Mail Server documentation to set up sieve is crap\n\nThe Resolution\n--------------\n\nUse Cyrus IMAP's sieve to set up a script that auto replies. It needs to\nbe set up first.\n\n sudo mkdir /usr/sieve \n sudo chown cyrusimap:mail /usr/sieve\n\nAdd yourself to user group that can administer sieve by editing\n`/etc/imapd.conf`:\n\n admins: cyrusimap, admin\n\nNow add `sieve 2000/tcp #Sieve mail filtering` to `/etc/services`.\nRestart mail:\n\n sudo serveradmin stop mail \n sudo serveradmin start mail\n\nServer should now be listening on port 2000:\n\n netstat -an | grep 2000 \n tcp4       0      0  *.2000                 *.*                    LISTEN \n tcp6       0      0  *.2000                 *.*                    LISTEN\n\nMake a vacation script. It can be anywhere. Here's the example from [the\nMail Server admin\nguide](http://manuals.info.apple.com/en/Mail_Service_v10.4.pdf):\n\n #-------- \n # This is a sample script for vacation rules. \n # Read the comments following the pound/hash to find out \n # what the script is doing. \n #--------- \n # \n \n # Make sure the vacation extension is used. \n require \"vacation\"; \n \n # Define the script as a vacation script \n vacation \n \n # Send the vacation response to any given sender only once every seven days no matter how many messages are sent from him. \n :days 7 \n \n #For every message sent to these addresses \n :addresses [\"stone-purchasing@zeus.eng.uiowa.edu\"] \n \n # Make a message with the following subject \n :subject \"Out of Office Reply\" \n \n # And make the body of the message the following \n \"Test auto reply\"; \n \n # End of Script\n\nEnter the sieve shell\n\n /usr/bin/cyrus/test/sieveshell --user=testuser --authname=admin localhost \n connecting to localhost \n Please enter your password:  \n > put vacation.msg \n > activate vacation.msg  \n > quit\n\nThis creates `/usr/sieve/t/testuser`. Type 'help' for help. Use\n'deactivate' to remove all scripts. Test. Fin.\n" }, { "authorEmail": "nikhilanand@granular.ag", "authorName": "Nikhil Anand", "date": "2021-06-04T03:52:15Z", "id": "a0b139bf48db210c78d3aa8551d47212ca06c6ed", "shortId": "a0b139bf", "subject": "Reorg 2\n", "content": "The Situation!\n--------------\n\n* Mac OS X 10.4.11 Server\n * Postfix, Cyrus, Dovecot\n* Couldn't put vacation in user's homedir\n* Couldn't find vacation binary\n* Other sieve programs only worked with SquirrelMail, only with user\n homedirs\n* Roundcube plugin needed FTP access... to put stuff in homedirs\n* Apple's Mail Server documentation to set up sieve is crap\n\nThe Resolution\n--------------\n\nUse Cyrus IMAP's sieve to set up a script that auto replies. It needs to\nbe set up first.\n\n sudo mkdir /usr/sieve \n sudo chown cyrusimap:mail /usr/sieve\n\nAdd yourself to user group that can administer sieve by editing\n`/etc/imapd.conf`:\n\n admins: cyrusimap, admin\n\nNow add `sieve 2000/tcp #Sieve mail filtering` to `/etc/services`.\nRestart mail:\n\n sudo serveradmin stop mail \n sudo serveradmin start mail\n\nServer should now be listening on port 2000:\n\n netstat -an | grep 2000 \n tcp4       0      0  *.2000                 *.*                    LISTEN \n tcp6       0      0  *.2000                 *.*                    LISTEN\n\nMake a vacation script. It can be anywhere. Here's the example from [the\nMail Server admin\nguide](http://manuals.info.apple.com/en/Mail_Service_v10.4.pdf):\n\n #-------- \n # This is a sample script for vacation rules. \n # Read the comments following the pound/hash to find out \n # what the script is doing. \n #--------- \n # \n \n # Make sure the vacation extension is used. \n require \"vacation\"; \n \n # Define the script as a vacation script \n vacation \n \n # Send the vacation response to any given sender only once every seven days no matter how many messages are sent from him. \n :days 7 \n \n #For every message sent to these addresses \n :addresses [\"stone-purchasing@zeus.eng.uiowa.edu\"] \n \n # Make a message with the following subject \n :subject \"Out of Office Reply\" \n \n # And make the body of the message the following \n \"Test auto reply\"; \n \n # End of Script\n\nEnter the sieve shell\n\n /usr/bin/cyrus/test/sieveshell --user=testuser --authname=admin localhost \n connecting to localhost \n Please enter your password:  \n > put vacation.msg \n > activate vacation.msg  \n > quit\n\nThis creates `/usr/sieve/t/testuser`. Type 'help' for help. Use\n'deactivate' to remove all scripts. Test. Fin.\n" } ], "sizeInBytes": 2618, "source": "The Situation!\n--------------\n\n* Mac OS X 10.4.11 Server\n * Postfix, Cyrus, Dovecot\n* Couldn't put vacation in user's homedir\n* Couldn't find vacation binary\n* Other sieve programs only worked with SquirrelMail, only with user\n homedirs\n* Roundcube plugin needed FTP access... to put stuff in homedirs\n* Apple's Mail Server documentation to set up sieve is crap\n\nThe Resolution\n--------------\n\nUse Cyrus IMAP's sieve to set up a script that auto replies. It needs to\nbe set up first.\n\n sudo mkdir /usr/sieve \n sudo chown cyrusimap:mail /usr/sieve\n\nAdd yourself to user group that can administer sieve by editing\n`/etc/imapd.conf`:\n\n admins: cyrusimap, admin\n\nNow add `sieve 2000/tcp #Sieve mail filtering` to `/etc/services`.\nRestart mail:\n\n sudo serveradmin stop mail \n sudo serveradmin start mail\n\nServer should now be listening on port 2000:\n\n netstat -an | grep 2000 \n tcp4       0      0  *.2000                 *.*                    LISTEN \n tcp6       0      0  *.2000                 *.*                    LISTEN\n\nMake a vacation script. It can be anywhere. Here's the example from [the\nMail Server admin\nguide](http://manuals.info.apple.com/en/Mail_Service_v10.4.pdf):\n\n #-------- \n # This is a sample script for vacation rules. \n # Read the comments following the pound/hash to find out \n # what the script is doing. \n #--------- \n # \n \n # Make sure the vacation extension is used. \n require \"vacation\"; \n \n # Define the script as a vacation script \n vacation \n \n # Send the vacation response to any given sender only once every seven days no matter how many messages are sent from him. \n :days 7 \n \n #For every message sent to these addresses \n :addresses [\"stone-purchasing@zeus.eng.uiowa.edu\"] \n \n # Make a message with the following subject \n :subject \"Out of Office Reply\" \n \n # And make the body of the message the following \n \"Test auto reply\"; \n \n # End of Script\n\nEnter the sieve shell\n\n /usr/bin/cyrus/test/sieveshell --user=testuser --authname=admin localhost \n connecting to localhost \n Please enter your password:  \n > put vacation.msg \n > activate vacation.msg  \n > quit\n\nThis creates `/usr/sieve/t/testuser`. Type 'help' for help. Use\n'deactivate' to remove all scripts. Test. Fin.\n", "title": "Vacation Messages on OS X 10.4 Server", "untracked": false, "uri": "/Ancient_Sysadmin_Stuff/Vacation_Messages_on_OS_X_10.4_Server", "relativePath": "Ancient Sysadmin Stuff/Vacation Messages on OS X 10.4 Server.md" }