Archive for the 'Mailing' Category

Page 2 of 3

Roundcube PHP Update conflict

Another tricky error after Debian squeeze upgrade:
ERROR: Wrong ‘suhosin.session.encrypt’ option value. Read REQUIREMENTS section in INSTALL file or use Roundcube Installer, please!

The fix is very trivial:

1
2
3
4
vim /etc/php5/apache2/php.ini
# Add this lines to the bottom of the config:
[suhosin]
suhosin.session.encrypt = Off

Fix: Filesystem notification initialization error

I upgraded my Mail-server to Debian 6 – squeeze, it was everything great till I started my Thunderbird and get this Message: Filesystem notification initialization error — contact your mail administrator (check for configuration errors with the FAM/Gamin library)

This error can be seen in your mail client and is often caused by Courier. If you are the administrator of the mail server, simply install libgamin instead of libfam as follows:

1
aptitude install gamin

Now restart all courier services:

1
find /etc/init.d/ | grep courier | while read line; do $line restart; done

Roundcube performance

There are many configuration options with inpact on performance in Roundcube and behind it (Database and Webserver). As Roundcube installation administrator you can set them to some defaults and prevent users to change them by using the ‘dont_override‘ option.

I tested some options and created my tiny boost list.
Here’s the list of options with impact on performance

Messages listing is a main task of a mail client. Sorting is expensive. First of all you should use an IMAP server with SORT capability. If message list displaying is still too slow you should set ‘message_sort_col’ to an empty string.
‘message_sort_col’
Continue reading ‘Roundcube performance’

Test spam rejection

Sometimes it’s interesting to test some MTA’s and their spam behavior, every mail system has his own spam behavior like SPAM_MARK_LEVEL or SPAM_REJECT_LEVEL.
If you send a mail with GTUBE string your mail should be rejected.

1
rejected after DATA: This message scored 1000.0 spam points

The GTUBE String to test spam rejection of mail servers:

1
XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X

Postfix with IPv6


In this how to I describe the basically configuration and administration of Postfix on Debian Lenny.
Current I’m using Postfix version 2.5.5
This tutorial should working with older and newer versions.

1
2
postconf -d | grep "mail_version =" | cut -d" " -f 3
2.5.5

You can find the postfix main configuration file under “/etc/postfix”
Let see what wee need to configure a working Internet Mail-Server

1
postfix ~ # vim /etc/postfix/main.cf

My example configuration:

1
2
3
4
5
6
7
8
9
10
11
12
13
myhostname = ipv6.postfix.idrobot.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = ipv6.postfix.idrobot.net, localhost.localdomain, localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
smtp_bind_address6 = 2a01:4f8:101:265::37
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/
bounce_template_file = /etc/postfix/bounce.cf

If you want to relay your mails to another mail-server you can use the relayhost option:
Edit main.cf, and add this line:

1
relayhost = ipv6.mx.idrobot.net

Some administration commands:
Show running config:

1
postconf -n

Show the default postfix config instead of running one:

1
postconf -d

Show message content:

1
postcat -q 7FB942082

Delete all mail in queue:

1
postsuper -d ALL

Schedule immediate delivery:

1
postqueue -i 7FB942082

Flush the queue:

1
postqueue -f