Monday, January 24, 2011

Does Exchange have ability to run hidden mailboxes?

Hello,

Title of my question may sound a little bit odd but I was thinking if Exchange 2010 or 2007 or any program that would work in conjunction with Exchange has ability to create this structure:

  1. Users having their normal mailboxes connected and using them as everyone would in Outlook 2003/2007/2010.
  2. Users having additional mailboxes (from old Exchange 2003) attached but hidden on demand of Administrator. For example administrator could easy disable them just like they never been attached making them invisible to users and everyone else. Would be good if such mailboxes could be easily removed out of system (lets say on external drive) by simple step not manual job for 100 mailboxes.
  3. Users without ability to copy/move their mails to outside storage (like a local .pst file)?

Do you guys have any suggestions on this? I was thinking maybe using public folders but this seems like overkill and not really suited for this. And please don't ask me why I need this type of security (it's not something I requested).

Edit:

Full context. We have exchange 2003 now which is used over 2 years. It has limit of 2gb per mailbox now. My management is afraid that some people may have corresponded between themselves (internal mail) about stuff they are not allowed to share between departments. Since I won't go over 100 mailboxes and check whether such correspondence had place and delete those mails my management want me to find a way to delete (first archive on dvd) all emails before 31st march 2010 (basically leaving only last 3 months) in each mailbox. Kinda clean start.

After doing that I would be told to hand over archived mailboxes to users so they can use it when necessary but so the mails aren't on server. This really kills my idea of having nice Exchange server with lots of space and so users ability to work with history (I use my history emails all the time) gives them some additional pluses.

Idea of management is that when I hand over archived emails most people will use it only occasionally or never and it will be harder to track but I know this solution will blow up in my face some day.

So I would prefer some way to archive those emails and connect them as a second mailbox of some kind per each user and on demand i would be able to switch it on and off.

I want to upgrade to Exchange 2010 from SBS 2003 with Exchange 2003 and it's something that would convince my management to actually go for it. It doesn't have to be internal Exchange 2010 feature but maybe some kind of addon or so. I saw GFI Mail archiver but not sure if it has that ability.

  • Do they actually have to be physically removed? Could them not appearing in the address book be acceptable? There is a setting to "Hide from Exchange address lists". It is under the "Exchanged Advanced" tab in the user properties. It can be toggled at the admins discretion. Takes a little while to sync with everyone's Outlooks.

    Seems like you are doing this for security reasons so I don't know if its acceptable. But if users cannot find the mailboxes they wont know they exist. Security by obscurity....

    MadBoy : What I am looking for is option to hide it from the user that will be using it daily. For example he sees his old emails for 99 days and then one day I can just switch it off and switch it on after 50 days. It shouldn't generate errors for users in outlook saying something is missing etc. Just simply gone so that user can't use his old emails again. Kinda like archive on demand feature.
    From Campo
  • If it's a one-time cut-off at the 3-months or older mark, you can achieve this by using exmerge to take all mail older than 3 months and dump it out to a PST for each user. You could then back these PSTs up, and either make them available to users on a network share (where you can add and remove the ability for a user to open the PST as you wish), or give the user a copy to load locally onto their machine (faster and less network space requirements, but you'll have no control over when the user can and can't access the PST.

    If you're looking to keep a constant 3-month retention period on users mail files, you could look at a solution like MailMarshal, or externally something like Postini or Messagelabs mail archiving features. You can couple that with an email policy that'll clear files older than 3 months out of everyone's mailbox.

    With all of the above options you can set read-only so that users can interact with the archive but not delete/alter old emails.

    MadBoy : Does it have ability to take away access with simple turn it off or so solution?
    Chris Thorpe : For postini, you can enable/disable user archive access on a per-user setting from the control panel. For the PSTs, you can grant and deny access with share or NTFS permissions as you would with any other file on the network.
    Chris Thorpe : BTW you could run some scripts against your mail stores to pull out the information that management requested about people in each department mailing each other. All you need from management is a candidate list of To: and From: users, and you can search the mailboxes for mails that meet that criteria. I've done this previously when management wanted a list of all mails Dave Smith sent to Jane Doe between 2nd May and 9th March, etc.
    MadBoy : As for NTFS solution problem is people would get errors in their Outlook which is not what I want (don't want to confuse users etc). I was reading about GFI Mail Archive and it looks okey, but i'll be checking other solutions as well.
    MadBoy : My management doesn't care if they did it (to punish them or something). They just want it gone. Problem is there could be a lot of conversation between departments that isn't problematic and only few issues can be. So all in all I or someone else would have to go thru emails and delete the problematic ones or archive them with some software and in case of 'control' be able to disable and unmount it like it never happened.

Plesk hosting on MediaTemple DV

Hi there,

We have a MediaTemple dedicated virtual running Plesk. The problem we're having is that changing the permissions of files on the server to be writable by server owner (apache) is conflicting with the ability to upload and overwrite files via the FTP user.

Here's an example, I upload a file from user "serverftp" and they own the new file in the httpdocs folder. I then change the permission of an image upload folder to the apache user to that I can upload images via a PHP script. Uploading or changing that folder with the serverftp user is then locked out.

Speaking to tech support didn't get very far because there are some strange group permissions going on and it would involve me adding every single domain FTP user to the pcantl group or something similar.

I'm wondering how I can easily change things so that I don't have this problem anymore.

installing rpm packages on ubuntu

In ubuntu i have downloaded flash rpm,how to install it.i am new to ubuntu and i have tried the following

    alien -k flash-plugin-10.0.45.2-release.i386.rpm
    alien -i flash-plugin-10.0.45.2-release.i386.rpm
    rpm -i flash-plugin-10.0.45.2-release.i386.rpm //this works in rhel versions

The above doesn't seem to work..

Thanks..

  • Installing a .rpm on Ubuntu is a last resort and should not be used when .deb packages are available.

  • It's available in the repositories and you should use the Synaptic or aptitude package manager to install it rather than downloading and installing it manually.

    For Jaunty, Karmic and Lucid:

    sudo apt-get install flashplugin-installer
    

    For Dapper, Hardy and Intrepid:

    sudo apt-get install flashplugin-nonfree
    
  • The Flash plugin is also in the Canonical partner repository, the package is called adobe-flashplugin. Using this you'll automatically get security updates for Flash if they are available

  • RPM files are for RedHat Package Manager, and generally not meant for Ubuntu...

    actually the better/preferred way would be to use Repository using #apt-get install

    since you have already downloaded RPM and wanna use the same, there are two ways you could follow

    [] using 'alien' converting *.rpm RedHat package to a *.deb Debian Package like *this you alrady performed *This will convert your RPM to a DEB {in your case should be flash-plugin-10.0.45.2-release.i386.deb} and then you can install deb with:

    #sudo dpkg -i flash-plugin-10.0.45.2-release.i386.deb

    [] other way is converting RPM to CPIO, extracting contents of CPIO and installing from the source

    #rpm2cpio flash-plugin-10.0.45.2-release.i386.rpm | cpio -dimv

    From AbhishekKr

Exchange 2010 setup /prepareAD fails to run

I've tried installing Exchange 2010 on Windows Server 2008 R2 (only domain controller and all-in-one system).

I did setup.exe /prepareAD, setup /prepareSchema and it worked fine the first time I did it.

Unfortunately due to problem with Hub Transport installation related to (at least from what I've read) IPv6 being disabled (some say disabling it helped them while some enabling helped them). I did it the proper way by using registry entry to disable IPv6 but it still errored out. So i managed to uninstall everything (renamed some old entries in registry of failed Hub Transport roles and tried to reinstal Exchange after rebooting server.

Unfortunetly running setup /prepareAD now gives an error:

D:>setup /PrepareAd

Welcome to Microsoft Exchange Server 2010 Unattended Setup

By continuing the installation process, you agree to the license terms of Microsoft Exchange Server 2010. If you don't accept these license terms, please cancel the installation. To review these license terms, please go to http://go.microsoft.com/fwlink/?LinkId=150127&clcid=0x409/

Press any key to cancel setup................ No key presses were detected. Setup will continue. Preparing Exchange Setup

Copying Setup Files              ......................... COMPLETED

No server roles will be installed

Performing Microsoft Exchange Server Prerequisite Check

Organization Checks              ......................... COMPLETED

Setup is going to prepare the organization for Exchange 2010 by using 'Setup /P repareAD'. No Exchange 2007 server roles have been detected in this topology. Af ter this operation, you will not be able to install any Exchange 2007 server rol es.

Configuring Microsoft Exchange Server Organization Preparation ......................... FAILED The following error was generated when "$error.Clear(); buildToBuildUpgrade -ExsetDataAtom -AtomName OrgLevelCt -DomainController $RoleDomainController" was run: "An error occurred with error code '2147504140' and message 'The data type can't be converted to or from a native Active Directory data type.'.".

The Exchange Server setup operation did not complete. Visit http://support.micro soft.com and enter the Error ID to find more information.

Exchange Server setup encountered an error.

Unfortunetly if i rerun the setup it complains that it needs setup /prepareAD to be run first.

Basically all that works now is setup /PrepareSchema and setup /PrepareDomain complains that prepareAD wasn't done.

For full information I'm also attaching error I had before I've uninstalled everything and tried again:

Hub Transport Role Failed

Error: The following error was generated when "$error.Clear(); install-ExsetdataAtom -AtomName SharedMachineSettings -DomainController $RoleDomainController" was run: "An error occurred with error code '2147950640' and message 'There is no such object on the server.'.".

An error occurred with error code '2147950640' and message 'There is no such object on the server.'.

  • I've managed to fix this by manually removing every trace of Exchange on this server (not all steps were found at my server but i post them anyway). And kids don't do this at home. This is not supported and may harm your system. I was desperate:

    1. Run setup /m:uninstall
    2. Stop and disable all the Exchange 2010 services
    3. Use Registry Editor (Start->Run->Regedit) to remove these Exchange related registry keys:
      * HKLM\SOFTWARE\Microsoft\Exchange
      * HKLM\SYSTEM\CurrentControlSet\Services\MSExchange* (all the keys starting with “MSExchange”)
      * HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Exchange
    4. Remove the entire Web Server role (don’t forget to reinstall afterwards as it’s a prerequisite for E2K10!)
    5. Remove the Exchange 2010 server from Active Directory. I ended up deleting the entire “Microsoft Exchange” branch from ADSIEdit (Configuration Container > Services > Microsoft Exchange) as my Org only counts one server.
    6. Use Windows Explorer to delete:
      * C:\Program Files\Microsoft\Exchange Server
      * C:\ExchangeSetupLogs
    7. Use Windows Installer CleanUp Utility to remove all the exchange related info from the installer database.
    8. Remove the security groups created by Exchange setup from AD
    9. Use CC Cleaner to remove registry entries for Exchange

    I also found this link which gives a bit bigger overview: http://msexchangehelp.wordpress.com/2010/02/10/manually-uninstall-last-exchange-2010-server-from-organization/

    Anyways it solved the problem that installation went thru but again I am at square one with corrupted installation since Hub Transport failed to install AGAIN. So redoing this steps again... and trying installation again with IPV6 disabled.

    From MadBoy

Running simple cron on MAMP

How can I get http://localhost:8888/site_name/index.php to run every 30 min until I manually stop it (edit the cron file)? This is on a Mac running MAMP.

I know how to set one up using the wizard in a cpanel but have never done this on MAMP before.

nginx error log was huge, so I deleted and created a new one, now nginx won't start

I deleted the /var/log/nginx/error.log file, and then created a new one using:

sudo nano error.log

Doinga ls -la shows that the error.log and access.log have the same permissions.

When I try and start nginx I get the error:

alert: could not open error log file: open() "/var/log/nginx/error.log" failed permission denited.

Update WHen trying to start nginx, I am also seeing:

emerg: /var/run/nginx.pid failed 13: permission denied.

  • Delete the error.log file and nginx will create it itself.

    Blankman : i deleted it, then when I try and start nginx is gives me the same permission denied error on the file /var/log/nginx/error.log
    From Martin F
  • First try deleting the file, if that doesn't work check that the nobody user has the right permissions:
    http://derekneely.com/2009/06/nginx-failed-13-permission-denied-while-reading-upstream/

    From emmanuel
  • have a look in the nginx config, check who the server is running as - at a guess the user will be nginx

    so :

    chown nginx: /var/run/nginx.pid chown -R nginx: /var/log/nginx

    Should do the trick.

    Blankman : but why was it working before?
    c10k Consulting : I suspect because you tried to run it as root, and then tried starting it with its init script.
    Blankman : well I always start it like that, hmm....
    Blankman : nginx.conf says: "user www-data"
  • This doesn't solve your problem, but in the future, if you do

    cat /dev/null > /file/you/want/to/wipe-out

    you will copy over the contents of the file with nothing, and keep all permissions in tact.

    Not nginx-speicific, but Additionally, make sure you are running the application as the user it is supposed to run as. If you ever ran it as root, all the permissions are going to be owned by root, so other users won't be able to run it.

    Blankman : great tip thanks.
    From Alex
  • The usual way to rotate the logs with NginX is to rename the file, and then /etc/init.d/nginx reload. The server starts a new file, and you can do what you wish with the old.

    You may also find it useful to edit the configuration to not log as much....

Why can't I get rid of default index.html even if I disable the default virtual host in Apache2?

I have created a virtual host settings file and I disabled the default settings by using a2dissite default (this is a pretty standard Ubuntu 10.04 installation). But no matter what I try my Apache2 server simply keeps on displaying the default index.html page instead of the index.php page that I set up in the virtual host file. Can someone help me what I'm missing. Details follow:

No default settings:

ls -l /etc/apache2/sites-enabled/
total 0
lrwxrwxrwx 1 root root 51 May  5 13:32 webmin.1273066327.conf -> /etc/apache2/sites-available/webmin.1273066327.conf
lrwxrwxrwx 1 root root 34 May 30 11:03 www.accontax.be -> ../sites-available/www.accontax.be

Contents of the relevant virtual host:

cat /etc/apache2/sites-enabled/www.accontax.be

<VirtualHost *>
    ServerName  www.accontax.be
    ServerAlias accontax.be

    DirectoryIndex index.php
    DocumentRoot /var/www/drupal/

    <Directory /var/www/drupal/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>
</VirtualHost>

Contents of httpd.conf:

cat /etc/apache2/httpd.conf

Listen 80
NameVirtualHost *

I also have those relevant lines in my apache2.conf:

# Include generic snippets of statements
Include /etc/apache2/conf.d/

# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/

When I visit http://www.accontax.be I expect apache2 server go to the /var/www/drupal subdirectory and start serving index.php but it simply keeps on serving index.html from /var/www directory. I have reloaded the configuration, restarted the server, deleted my browser cache. Nothing changed.

Probably I'm missing a simple yet crucial step but I just could not find it.

PS: When I ssh to the server and try to browse the localhost it works as I expect!

  • i assume that your hostname is proper (li141-187.members.linode.com)

    in /etc/apache2/httpd.conf change the line below,

    NameVirtualHost * to NameVirtualHost 109.74.194.187:80

    & there can be a duplicate NameVirtualHost in your /etc/apache2/sites-enabled/webmin.1273066327.conf file in line 1. check if exists. if yes delete that line.

    & edit the VirtualHost definition in /etc/apache2/sites-enabled/000-default file as follows.

    <VirtualHost 109.74.194.187:80>
       ServerName 109.74.194.187
       .......
    

    & edit the lines in /etc/apache2/sites-enabled/www.accontax.be as follows.

    <VirtualHost 109.74.194.187:80>
       ServerName accontax.be
       ServerAlias www.accontax.be
       .......
    

    then apache2ctl restart.

    & and also check you bind's zone file for accontax.be, it should be like configuration below.

    $ttl 38400
    @   IN  SOA accontax.be li141-187.members.linode.com. (
                SOA_SERIAL_NUMBER
                10800
                3600
                604800
                38400 )
    accontax.be.    IN  NS  ns1.linode.com.
    accontax.be.    IN  NS  ns2.linode.com.
    accontax.be.    IN  A   109.74.194.187
    www.accontax.be.    IN  A   109.74.194.187
    ftp.accontax.be.    IN  A   109.74.194.187
    webmail.accontax.be.    IN  A   109.74.194.187
    mail.accontax.be.   IN  A   109.74.194.187
    accontax.be.    IN  MX  5 mail.accontax.be.
    accontax.be.    IN  TXT "v=spf1 a mx a:accontax.be ip4:109.74.194.187 ?all"
    

    there should be your own serial number for domain, intodns.com says so. change SOA_SERIAL_NUMBER with your own above.

    & this link will give you more information about DNS configuration. http://www.intodns.com/accontax.be

    it seems your are using webmin. it's much better to do all these changes in webmin for you. Check everything under "Servers" menu, in apache menu, check your module config is ok before changing anything. & also change startup command for apache in webmin to apache2ctl. do not allow webmin to use /etc/init.d/apache2 script.

    From yasin inat