- Under FreeBSD. The rules filter (RejectCondition) in the daemon does not function if Russian is used. What can be done?
-
Firstly, the rules should be set in the KOI8-R encoding only. Secondly, if a header (for example, Subject:), you want to filter is in 8bit (i.e. a breach of standard for mail, as it should be =?koi8-r?B?..?= or =?cp1251?Q?..?= encoded, i.e. encoding must be specified), it will be compared without encoding. Such messages (in 8bit) can also be blocked by the filter:
RejectCondition Subject = "8bit"
Finally, the locale should be correctly set up for KOI8-R for a user under whose rights the daemon operates:
-
1. Add the following to /etc/login.conf (usually it already has):
#
# Russian Users Accounts. Setup proper environment variables.
#
russian:Russian Users Accounts:\
:charset=KOI8-R:\
:lang=ru_RU.KOI8-R:\
:tc=default:
For updating /etc/login.conf.db:
# cap_mkdb /etc/login.conf
-
Attribute drweb user to russian:
# pw usermod drweb -L russian
- Sometimes it is necessary to add the following before the «case "$1" in» line in the daemon startup script:
LC_ALL=ru_RU.KOI8-R
export LC_ALL
- Restart the daemon
Back to F.A.Q.
|
 |
My five cents
|
 |
| |
What is the screen size of your monitor?
|
 |
|
 |
|
 |
|