Adjust Scalix Webmail Attachment Size Limit

Set attachment limits in Scalix

Scalix webmail

Can I limit the attachment size for messages prepared in SWA? Sure.
From the Scalix Wiki:

Scalix 11.x

  1. Navigate to /var/opt/scalix/nn/webmail directory on the Scalix server, where the file swa.properties exists.
  2. Open the swa.properties file with any editor.
  3. Near the top of the file, locate the parameter “maxAttachmentUploadKilobytes”. By default this is set to 10240, which equates to 10MB attachments. Modify the value appropriately and save the file.
  4. Restart scalix-tomcat.

Scalix 10.x

  1. Navigate to /etc/opt/scalix/webmail directory on the Scalix server, where the file partner.xml exists.
  2. Open the partner.xml file with any editor.
  3. Near the top of the file, locate the parameter “maxAttachmentUploadKilobytes”. By default this is set to 10240, which equates to 10MB attachments. Modify the value appropriately and save the file.
  4. Restart Tomcat.
Share

Changing the IP address of a Scalix Server

Change your Scalix IP without breaking things

Scalix webmail - Change your Scalix IP address

Changing the IP of a Scalix server is really easy. Along with changing the obvious stuff (etc/hosts, /etc/sysconfig/network, /etc/sysconfig/network-scripts/ifcfg-eth0…) just follow these directions from the Scalix Wiki:

Update the Postgres Client Authentication

Changing your IP address does not update Postgres and access to the Scalix API is then denied. To rectify this you need to modify the file /var/opt/scalix/NN/postgres/data/pg_hba.conf. Remember NN is the abreviation of your Scalix node, so it will change depending on the hostname of your scalix server.
Find the line that looks like:

host    scalix      scalix      192.168.1.100/32   md5

Edit the file to change this line to look like:

host    scalix      scalix      192.168.1.50/32   md5

Update the Search and Index Service

Changing your IP address does not update the Search and Index Service properties. To rectify this you need to modify the file /var/opt/scalix/NN/sis/sis.properties. Again remember NN is the abreviation of your Scalix node!
Find the lines that look like:

index.client.whitelist=192.168.1.100,127.0.0.1
search.client.whitelist=192.168.1.100,127.0.0.1

Edit the file to change the lines to look like:

index.client.whitelist=192.168.1.50,127.0.0.1
search.client.whitelist=192.168.1.50,127.0.0.1

Update the Uber Manager Service

As above changing your IP address does not fix the Uber Manager. To fix this you need to modify the file /var/opt/scalix/NN/caa/scalix.res/config/ubermanager.properties. Again remember NN is the abreviation of your Scalix node!
Find the line that looks like:

ubermanager.notification.listener.address=192.168.1.100

Edit the file to change the line to look like:

ubermanager.notification.listener.address=192.168.1.50

Reboot and enjoy your server

After you have finished this procedure please reboot. Everything should be working just like before.
Do remember, however, that this post only covered Scalix. Other services or other parts of the server which depend on the IP Address instead of hostname will still need to be changed.

Share

Scalix – Shared folders in IMAP clients

How to set up shared IMAP folders on your Scalix Mail server

Scalix webmail - Change your Scalix IP address

To allow IMAP clients such as Mozilla Thunderbird or Outlook Express to see the shared folders of users on a Scalix server, there is an additional step required.
First, set the permissions of the folders using Outlook or Web Access whilst logged on as the sharing user.

Next, telnet to the IMAP port on the mail server. You must login as the account that is to see the shared folders.
telnet mail.mydomain.com 143
LOGIN yourname yourpassword
x-add-other-user otherusername
LOGOUT

The command to remove them from your view is x-delete-other-user

Restart Thunderbird to see the change.

Originally, the instructions also said you should set permissions via IMAP on the user who is sharing the folder, but I don’t think its necessary, as that is covered by what you do in SWA or Outlook….for reference….

As user support login via IMAP….
setacl <foldername> <userid> <permissions>
setacl INBOX ian rs
allows user to access the INBOX of support with set permissions.

Permissions are as follows…
l - lookup (mailbox is visible to LIST/LSUB commands)
r - read (SELECT the mailbox, perform CHECK, FETCH, PARTIAL, SEARCH, COPY from mailbox)
s - keep seen/unseen information across sessions (STORE SEEN flag)
w - write (STORE flags other than SEEN and DELETED)
i - insert (perform APPEND, COPY into mailbox)
p - post (send mail to submission address for mailbox, not enforced by IMAP4 itself)
c - create (CREATE new sub-mailboxes in any implementation-defined hierarchy)
d - delete (STORE DELETED flag, perform EXPUNGE)
a - administer (perform SETACL)

Originally found at cyberpro.com.au

Share

Scalix – Command Line Shortcuts and Scripts

Show SMTP connections: lsof -i:25

Show IMAP connections: lsof -i:smtp

You should get a list like this

[root@mail ~]# lsof -i:25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sendmail 5138 root 4u IPv4 36311278 TCP localhost.localdomain:smtp (LISTEN)
omsmtpd 15651 root 4u IPv4 20693433 TCP mail.dounsix.local:smtp (LISTEN)

Show event log: omshowlog

Show status (-s for all services): omstat -s

Show all groups: omshowpdl –l all

Show list members: omshowpdln –l ‘listname’

Add a group: omaddpdl –l ‘groupname /node,domain/CN=groupname

Delete a group: omdelpdl –l ‘groupname /node,domain/CN=groupname

Add user to group: omaddpdln –l ‘groupname /node,domain/CN=groupname’ –n First Last’

Delete items that exceed a specified age from the Message Store for an individual:  omtidyu

Delete items that exceed a specified age from the Message Store for all users (will show folders):  omtidyallu

Show all users: omshowu -m all

Show Error Notification User: omshowenu

Set Error Notification User: omconfenu -n "William Miller/scalix,node"

Show user password controls (displays currently configured password composition, usage rules, and the password expiration time): omshowpwd

Configure password rules: omconfpwd

Show message store disk usage: sxdu
sxdu flags are as follows:
-w, --wastebasket Show the amount of space used by messages in the users wastebaskets.
-a, --all Show the total usage (excluding wastebasket) and wastebasket usage respectively.
-r, --recovery Show the amount of space used by items in the users recovery folders. (Recovery folder usage is not included in the total usage.)
-s, --summary Report only a total size.
-h, --human-readable Print sizes in human-readable format (eg 4K, 247M, 5.3G).

Clear IMAP cache: You can use sx_clearimap -u email@domain.com  if you grab the sx_clearimap script, as shown here

#!/bin/bash
usage () {
echo "usage $0 [-fdkqh] -u username"
echo ""
echo " $0 is a script to handle IMAP and IMAP-cache related problems"
echo ""
echo " -f: don't ask, just do"
echo " -d: save the old imap-cache folder and dump IMAP related entries from the eventlog to /tmp"
echo " -k: just kill the IMAP sessions, dont remove the cache-folder"
echo " -q: quiet mode"
echo " -h: help (this text)"
echo " -u: username as used by omshowu -u"
exit 1
}
while getopts ':fdkhqu:' OPTION ; do
case $OPTION in
f ) FORCE=true;;
d ) DEBUG=true;;
k ) KILLONLY=true;;
h ) usage;;
q ) QUIET=true;;
u ) NAME=$OPTARG;;
? ) echo "unknown option "-$OPTARG"."
usage ;;
: ) echo "option "-$OPTARG" needs an argument"
usage ;;
* ) usage;;
esac
done
if [ "x" == "x$NAME" ]; then
echo "-u username is required"
usage
exit
fi
REALPATH=`/opt/scalix/bin/omrealpath "~/"`
OMSHOWU=`/opt/scalix/bin/omshowu -n "$NAME" -f 2>/dev/null| grep "User Folder"`
if [ $? -eq 0 ]
then
FOLDER=`echo $OMSHOWU | awk -F/ '{print $2 "/" $3 }' `
ID=`/opt/scalix/bin/omshowu -n "$NAME" | grep "System Login :" | awk -F: '{print $2}' `
if [ "$FORCE" ]; then
DOIT=y
else
echo -n "Do you really want to remove the imap-cache for $NAME (y/N)"
read DOIT
fi
if [ "$DOIT" = "y" ]; then
if [ ! "$QUIET" ]; then echo "locking mail-account ..."; fi
/opt/scalix/bin/ommodu -o "$NAME" -K 2>/dev/null
if [ ! "$QUIET" ]; then echo "killing IMAP-processes for user $NAME (uid $ID) ..."; fi
pkill -u $ID in.imap41d
if [ ! "$KILLONLY" ]; then
if [ ! -d $REALPATH$FOLDER/imap-cache ]; then
echo "sorry, no imap-cache for mailbox $NAME"
else
if [ "$DEBUG" ]; then
if [ -f /tmp/imap-cache.tgz ]; then rm -f /tmp/imap-cache.tgz; fi
if [ ! "$QUIET" ]; then echo "storing imap-cache in /tmp/imap-cache.tgz"; fi
tar cfz /tmp/imap-cache.tgz $REALPATH$FOLDER/imap-cache 2>/dev/null
if [ ! "$QUIET" ]; then echo "saving IMAP entries in omshowlog for last 24 hours in /tmp/omshowlog-imap.txt"; fi
/opt/scalix/bin/omshowlog -p 1440 -s imap > /tmp/omshowlog-imap.txt
fi
if [ ! "$QUIET" ]; then echo "removing $REALPATH$FOLDER/imap-cache ..."; fi
rm -rf $REALPATH$FOLDER/imap-cache
fi
fi
if [ ! "$QUIET" ]; then echo "unlocking mail-account ..."; fi
/opt/scalix/bin/ommodu -o "$NAME" -k 2> /dev/null
if [ ! "$QUIET" ]; then echo "done!"; fi
fi
else
echo "can not find a mailbox $NAME"
fi

My other Scalix posts include how to install Scalix on CentOS 5, Scalix calendars, etc.

Share

Scalix install on Centos 5

For ALL of the details, check out the Scalix ver11.3-11.4 Installation Guide (pdf).

All hosts (running any Linux variation) require the following packages before installation:

glibc
• bash
• ncurses
• libstdc++
• coreutils
• grep
• diffutils
• gawk
• sed

util-linux

tcl
• tk
• cyrus-sasl-md5 (32-bit libs)*
• cyrus-sasl-plain (32-bit libs)*
• sendmail (v8.12 and above)
• sendmail -cf
• Python v2.2 through 2.4
• openssl
• which

In addition to the packages listed above, all Red Hat, Fedora, and CentOS Linux hosts require the following:

compat-libstdc++
• procps
• elinks
• krb5-libs


libstdc++ (32-bit libs)*
• libxml2 (32-bit libs)*
• ncurses (32-bit libs)*

• httpd


*Use the 32-bit libs on both 32-bit and 64-bit platforms

PostgreSQL 7.4.x, 8.0.x, or 8.1.x, including the following packages:
• postgresql-server
• postgresql-libs
• postgresql
• pgdg
• mx

Almost all of these packages are part of a Centos 5 install. In order to determine if you have the right software installed, you can view it. To list all of the .rpm packages that are installed on the system, run this command:
rpm -qa

You can also determine the version number for a specific package (for example, diffutils) with the -q extension:
rpm -q diffutils

And of course, if you ain’t got ’em, yum ’em.

Set up a fully qualified domain and hostname, static ip, dns, etc.

Make sure these ports aren’t in use:
25/TCP for SMTP
80/TCP for Apache HTTP
110/TCP for POP
143/TCP for IMAP
389/TCP for LDAP
5729/TCP for Scalix UAL (open when Scalix is running)
5757/UDP for Scalix UDP
443/TCP for HTTPS
465/TCP for SMTPS
993/TCP for IMAPS
995/TCP for POP3S
5767/TCP for Scalix UAL-S

Disable SELinux

Check out LVM

Install: Download the Scalix .bin file, and place it in a convenient directory on the host, for example the root home folder. In a terminal window, if the file is not in the root home folder, use the cd command to change to the appropriate folder. Launch the installation programs by entering bash and the .bin file name, for example:
bash scalix-11.3.0-GA-enterprise-redhat-intel.bin

Test SWA (Scalix Web Access). Make sure the Tomcat service is started, by entering:
ps -ef | grep tomcat

or restart it with
/etc/init.d/scalix-tomcat restart

and then browse to Webmail:
http://your_scalix_mailserver_FQDN/webmail/

Share

Share