Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: Emptying a Mailbox via Command Line #369947
    JasonHeiser
    Participant

    I would recommend using Cyrus’s ipurge tool.

    I use it to regularly delete messages from the spam quarantine on our 10.3.9 server.[code]sudo -u cyrus /usr/bin/cyrus/bin/ipurge -X -d 14 Quarantine/Spam[/code]Any message older than 14 days is deleted from Quarantine/Spam (a public folder on our server) by this command. No reconstruct is necessary.

    in reply to: Cannot fix Cyrus quota after server crash-n-restore (10.3.9) #365185
    JasonHeiser
    Participant

    I downloaded mailbfr and it was able to repair my quota.

    http://osx.topicdesk.com/downloads

    I’m pretty sure that the problem I was encountering was caused by me trying to repair the quota WHILE CYRUS WAS STILL RUNNING.

    I’m an idiot.

    JasonHeiser
    Participant

    Yes, the read status for each message in a shared folder on Cyrus is specific to each user that has access to the folder. Its behavior is very bulletin board-like.

    in reply to: Disabling SpamAssassin Report #361803
    JasonHeiser
    Participant

    As it turns out, this was just an administrative notification. I’m the administrator.

    Oops!

    Can I delete this thread? Man.

    in reply to: exchange 5.5, WinNT and Tiger client #361790
    JasonHeiser
    Participant

    Entourage X’s Exchange functionality will work with Exchange 5.5. Entourage 2004 will not.

    The easiest solution might be to simply use IMAP to connect to your Exchange server. I’ve used Entourage X, Entourage 2004, Mozilla Thunderbird, and Apple Mail to connect this way. The only tricky part is getting your username formed correctly. Here is the formula:

    NT Domain Name / NT Username / Exchange Alias

    For example, on our Exchange 5.5 server, my IMAP username is: CPI/jason/jason.heiser

    P.S. You must change the forward slash to a backslash! I used the forward slash in my examples because the AFP548 forum software strips backslashes!

    in reply to: SSH, Home Directories, and Open Directory #360929
    JasonHeiser
    Participant

    The solution:

    Execute “mnthome” when you SSH into a machine where your home directory is on a network mount. The command is available on Mac OS X Server, but not the client.

    “man mnthome” will tell you everything you want to know about this command.

    in reply to: Sieve Installer – Updated #360915
    JasonHeiser
    Participant

    I was able to get nearly all of Sieve working correctly… Except for notifications. For some reason, notifications did nothing. Here’s what I found you need to do:

    Uncomment this line:

    /private/etc/cyrus.conf
    notify cmd="notifyd" listen="/var/imap/socket/notify" proto="udp" prefork=1
    

    Insert this line:

    /etc/imapd.conf
    sievenotifier: mailto
    

    Then restart your mail services in Server Admin. Be sure to wait around 10 seconds to let all mail processes shut down completely before attempting to start them up again.

    P.S. to Apple developers: add a frickin’ service restart button!

    in reply to: Sieve Installer – Updated #360914
    JasonHeiser
    Participant

    Where I work, I really needed Sieve to react to secondary user names for Vacation messages. MacTroll adroitly observed that Postfix aliases should work in Sieve filters. I tried it, and they do work. The idea of manually maintaining an aliases file for all of our users’ short names, however, was not a happy thought. So I wrote this script.

    <?php
    
       // odalias.php
       // DUMPS SECONDARY SHORT NAMES FROM OPEN DIRECTORY INTO A POSTFIX ALIAS FILE
       //
       // USAGE: sudo php odalias.php
       // (run this every time you change a short name in Workgroup Manager)
       //
       // This script takes all users from an Open Directory server and
       // writes their secondary short names to an aliases file for use
       // with Postfix. This allows all short names to be used in Sieve filters.
       //
       // Before running this command, you must add your new aliases file to the list
       // of alias maps in/etc/postfix/main.cnf and reload Postfix (sudo postfix reload).
       //
       // EXAMPLE:
       // alias_maps = hash:/etc/postfix/aliases, hash:/etc/postfix/ldap_user_aliases
       //
       // This script was tested on Mac OS X Server 10.3.8
    
    
       // Where the new alias file is to be kept
       $aliasFileName = '/etc/postfix/ldap_user_aliases';
    
       // FQDN of your Open Directory server
       $serverHandle = ldap_connect ("ldap.yourdomain.com");
    
       // Put users in here you don't want to have aliased
       $ignoreUsers = Array ("root" , "vpn_000d933d3f02");
    
       // Put the search DN for your users here
       $searchDN = "cn=users,dc=yourdomain,dc=com";
    
       $searchFilter = "(objectClass=person)";
       $attributeArray = array ("uid" , "cn");
       $serverSearch = ldap_search ($serverHandle , $searchDN , $searchFilter , $attributeArray);
       $searchResults = ldap_get_entries ($serverHandle , $serverSearch);
    
       $aliasTable = "";
    
       foreach ($searchResults as $miscArray)
       {
          if (!is_array($miscArray) || $miscArray["uid"]["count"] < 2 || in_array ($miscArray["uid"][0] , $ignoreUsers))
             continue;
    
          $aliasTable .= "# " . $miscArray["cn"][0] . "\n";
          foreach ($miscArray["uid"] as $uidIndex => $uidValue)
          {
             if ($uidIndex == 0)
             {
                $baseUser = $uidValue;
                continue;
             }
             $aliasTable .= "$uidValue: $baseUser\n";
          }
    
          $aliasTable .= "\n";
       }
    
       ldap_close ($serverHandle);
    
       $aliasFileHandle = fopen ($aliasFileName , 'w');
       fwrite ($aliasFileHandle , $aliasTable);
       fclose ($aliasFileHandle);
    
       exec ('/usr/sbin/postalias ' . $aliasFileName);
       exec ('/usr/bin/newaliases');
    
    ?>
    
    
    
    
    in reply to: Slow resolution #360744
    JasonHeiser
    Participant

    I disliked feeling like a “Me too!” moron, so I dug in and learned a thing or two about BIND. My DNS resolutions go a lot faster now that I’m forwarding them to our ISP’s servers. You can do the same by adding a FORWARDERS option in your OPTIONS statement in /etc/named.conf.

    options {
            directory "/var/named";
            recursion true;
            forwarders {209.46.63.1;209.46.63.6;};
            allow-transfer {none;};
    };
    
    in reply to: Slow resolution #360743
    JasonHeiser
    Participant

    I’m having the same issue with DNS running on on our G5 10.3.8 server. There’s a 3-4 second delay in resolving domain names not hosted on the box, and it’s irritating me terribly. Can the performance be tweaked?

    in reply to: SSH, Home Directories, and Open Directory #360474
    JasonHeiser
    Participant

    They’re being mounted via AFP.

    (Marvelous website you have here, by the way, MacTroll. Thanks for taking the time to answer my question)

Viewing 11 posts - 1 through 11 (of 11 total)