Fedora 6 - Настройка сервака

Anubis

ку
С фтп разобрался и запустил!

Далее пробую exim
/etc/init.d/exim restart
Shutting down exim: [ OK ]
Starting exim: [ OK ]

Для работы exim'a я так понимаю мне необходим демон cyrus
Скачал, поставил, только вот что-то запускаться он не хочет!
/etc/init.d/cyrus-imapd start
Importing cyrus-imapd databases: [FAILED]

В логе tail -20 /var/log/messages - ничего нет по поводу ошибки запуска cyrus'a!
Какой лог нужно смотреть?
 

Pigeon

Well-Known Member
С фтп разобрался и запустил!

Далее пробую exim
/etc/init.d/exim restart
Shutting down exim: [ OK ]
Starting exim: [ OK ]

Для работы exim'a я так понимаю мне необходим демон cyrus
Скачал, поставил, только вот что-то запускаться он не хочет!
/etc/init.d/cyrus-imapd start
Importing cyrus-imapd databases: [FAILED]

В логе tail -20 /var/log/messages - ничего нет по поводу ошибки запуска cyrus'a!
Какой лог нужно смотреть?
tail -f /var/log/syslog
tail -f /var/log/maillog
less /var/lib/imap/rpm/db_import.log
yum remove cyrus-imapd cyrus-imapd-utils
yum install libsysfs
yum install cyrus-imapd
 

Anubis

ку
Такого лога не нашел!

Тут только sendmail ругаеться!
Код:
 sendmail[16858]: l2G2273p016858: to=root, ctladdr=root (0/0), delay=00:00:09, xdelay=00:00:00, mailer=relay, pri=30407, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 Temporary local problem - please try later
less /var/lib/imap/rpm/db_import.log
Код:
cvt_cyrusdb_all version: 1.2.1
/usr/lib/cyrus-imapd/cvt_cyrusdb_all: line 260: db_checkpoint: command not found
/usr/lib/cyrus-imapd/cvt_cyrusdb_all: line 278: db_recover: command not found
/usr/lib/cyrus-imapd/cvt_cyrusdb_all: line 282: db_recover: command not found
ERROR: catastrophic recovery of Berkeley databases failed
you are using /var/lib/imap/sieve as your sieve directory.
yum remove cyrus-imapd cyrus-imapd-utils
Удалил!
Код:
yum remove cyrus-imapd cyrus-imapd-utils
Loading "installonlyn" plugin
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package cyrus-imapd-utils.i386 0:2.3.7-8.fc6 set to be erased
---> Package cyrus-imapd.i386 0:2.3.7-8.fc6 set to be erased
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Removing:
 cyrus-imapd             i386       2.3.7-8.fc6      installed          35 M
 cyrus-imapd-utils       i386       2.3.7-8.fc6      installed         315 k

Transaction Summary
=============================================================================
Install      0 Package(s)
Update       0 Package(s)
Remove       2 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Removing  : cyrus-imapd                  ######################### [1/2]
  Removing  : cyrus-imapd-utils            ######################### [2/2]

Removed: cyrus-imapd.i386 0:2.3.7-8.fc6 cyrus-imapd-utils.i386 0:2.3.7-8.fc6
Complete!
Ничего не нашел! Я так понимаю!
Код:
yum install libsysfs
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
ftp://thales.memphis.edu/fedora/linux/core/6/i386/os/repodata/repomd.xml: [Errno                                                                               4] IOError: [Errno ftp error] 421 There are too many connected users, please tr                                                                              y later.
Trying other mirror.
core                      100% |=========================| 1.1 kB    00:00
updates                   100% |=========================| 1.2 kB    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 526 kB    00:17
################################################## 1213/1213
primary.xml.gz            100% |=========================| 1.4 MB    00:43
################################################## 4529/4529
Parsing package install arguments
Nothing to do
Код:
yum install cyrus-imapd
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for cyrus-imapd to pack into transaction set.
cyrus-imapd-2.3.7-8.fc6.i 100% |=========================|  56 kB    00:01
---> Package cyrus-imapd.i386 0:2.3.7-8.fc6 set to be updated
--> Running transaction check
--> Processing Dependency: cyrus-imapd-utils = 2.3.7-8.fc6 for package: cyrus-im                                                                              apd
--> Processing Dependency: libnetsnmp.so.10 for package: cyrus-imapd
--> Processing Dependency: libnetsnmpagent.so.10 for package: cyrus-imapd
--> Processing Dependency: libnetsnmpmibs.so.10 for package: cyrus-imapd
--> Processing Dependency: db4-utils for package: cyrus-imapd
--> Processing Dependency: libnetsnmphelpers.so.10 for package: cyrus-imapd
--> Processing Dependency: libsensors.so.3 for package: cyrus-imapd
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for db4-utils to pack into transaction set.
db4-utils-4.3.29-9.fc6.i3 100% |=========================|  17 kB    00:00
---> Package db4-utils.i386 0:4.3.29-9.fc6 set to be updated
---> Downloading header for net-snmp-libs to pack into transaction set.
net-snmp-libs-5.3.1-13.fc 100% |=========================|  26 kB    00:00
---> Package net-snmp-libs.i386 1:5.3.1-13.fc6 set to be updated
---> Downloading header for cyrus-imapd-utils to pack into transaction set.
cyrus-imapd-utils-2.3.7-8 100% |=========================|  32 kB    00:00
---> Package cyrus-imapd-utils.i386 0:2.3.7-8.fc6 set to be updated
---> Downloading header for lm_sensors to pack into transaction set.
lm_sensors-2.10.1-1.fc6.i 100% |=========================|  26 kB    00:01
---> Package lm_sensors.i386 0:2.10.1-1.fc6 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 cyrus-imapd             i386       2.3.7-8.fc6      extras             13 M
Installing for dependencies:
 cyrus-imapd-utils       i386       2.3.7-8.fc6      extras            182 k
 db4-utils               i386       4.3.29-9.fc6     core              119 k
 lm_sensors              i386       2.10.1-1.fc6     updates           506 k
 net-snmp-libs           i386       1:5.3.1-13.fc6   updates           1.1 M

Transaction Summary
=============================================================================
Install      5 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 14 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): db4-utils-4.3.29-9 100% |=========================| 119 kB    00:03
(2/5): net-snmp-libs-5.3. 100% |=========================| 1.1 MB    00:24
(3/5): cyrus-imapd-utils- 100% |=========================| 182 kB    00:03
(4/5): cyrus-imapd-2.3.7- 100% |=========================|  13 MB    05:18
(5/5): lm_sensors-2.10.1- 100% |=========================| 506 kB    00:09
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Importing GPG key 0x4F2A6FD2 "Fedora Project <fedora@redhat.com>"
Is this ok [y/N]: y
Importing GPG key 0xDB42A60E "Red Hat, Inc <security@redhat.com>"
Is this ok [y/N]: y
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1ac70ce6
Importing GPG key 0x1AC70CE6 "Fedora Project <fedora-extras@fedoraproject.org>"
Is this ok [y/N]: y
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: lm_sensors                   ######################### [1/5]
  Installing: cyrus-imapd-utils            ######################### [2/5]
  Installing: net-snmp-libs                ######################### [3/5]
  Installing: db4-utils                    ######################### [4/5]
  Installing: cyrus-imapd                  ######################### [5/5]

Installed: cyrus-imapd.i386 0:2.3.7-8.fc6
Dependency Installed: cyrus-imapd-utils.i386 0:2.3.7-8.fc6 db4-utils.i386 0:4.3.29-9.fc6 lm_sensors.i386 0:2.10.1-1.fc6 net-snmp-libs.i386 1:5.3.1-13.fc6
Complete!
Дальше пробую запускать cyrus
/etc/init.d/cyrus-imapd start
Importing cyrus-imapd databases: [ OK ]
Starting cyrus-imapd: [ OK ]

Я что не тот рпм ставил, что он у меня не работал? И что делать с libsysfs?
 

Anubis

ку
libsysfs-2.0.0-6
Есть =)
Я так понимаю теперь мне нужно
saslpasswd2 -c cyrus
Password:
Again (for verification):
Правильно?

Дальше пробую создать ящик
/etc/rc.d/rc.flush-iptables
cyradm --auth login 127.0.0.1 --user cyrus
IMAP Password:
cm Login failed: authentication failure at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm line 119
cyradm: cannot authenticate to server with login as cyrus
Не успиваю набрать cm user. меня сразу выбрасывает
В файле admin.pm на 119 строке вот что
my $rc = $self->{cyrus}->authenticate(@_);
Чтобы это значило?
 

Anubis

ку
Проблему решил задав парольна пользователя cyrus =)

passwd cyrus
Changing password for user cyrus.
New UNIX password:
BAD PASSWORD: it is WAY too short
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@ /]# cyradm --auth login 127.0.0.1 --user cyrus
IMAP Password:
127.0.0.1> cm user.test
127.0.0.1>
 

Anubis

ку
Что-то не могу найти vtund
yum install vtund
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 1.2 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: vtund
Nothing to do

Нашел на , но там нет для FC6 =(
Собирать с исходников?
 
Зверху