Ru-Board.club
← Вернуться в раздел «UNIX»

» Postfix+ Clamav

Автор: AQAQ
Дата сообщения: 22.04.2015 09:10
Дядьки!
Всем здравствуйте, утра всем.
Пытаюсь заставить взлететь конфиг, описаный уважаемым доном тут
не взлетает
Postfix+ Clamav.
root@mx1:~# tail -f /var/log/mail.err
Apr 21 23:22:38 mx1 clamsmtpd: 100011: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory
Apr 22 00:43:03 mx1 clamsmtpd: 100012: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory
Apr 22 00:48:03 mx1 clamsmtpd: 100013: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory
Apr 22 00:58:03 mx1 clamsmtpd: 100014: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory
Apr 22 00:58:03 mx1 clamsmtpd: 100015: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory
Apr 22 01:03:03 mx1 clamsmtpd: 100016: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory
Apr 22 03:38:03 mx1 clamsmtpd: 100017: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory
Apr 22 04:08:04 mx1 clamsmtpd: 100018: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory
Apr 22 04:08:04 mx1 clamsmtpd: 100019: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory
Apr 22 04:23:04 mx1 clamsmtpd: 10001A: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory

и
root@mx1:~# tail -f /var/log/mail.log
Apr 22 04:23:04 mx1 postfix/smtp[2901]: 9653441C96: to=<dima@rnov.ru>, relay=127.0.0.1[127.0.0.1]:10026, delay=23888, delays=23888/0.01/0.05/0.01, d sn=4.0.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 Local Error (in reply to end of DATA command))
Apr 22 04:23:04 mx1 postfix/smtpd[2903]: disconnect from localhost[127.0.0.1]

root@mx1:~# /etc/init.d/clamsmtpd start
/etc/init.d/clamsmtpd: 23: .: Can't open /etc/rc.d/init.d/functions

Если меняю в /etc/clamav/clamd.conf
LocalSocket /var/run/clamav/clamd.sock
то получается вот такоэ
Apr 22 01:03:03 mx1 clamsmtpd: 100016: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory
Apr 22 03:38:03 mx1 clamsmtpd: 100017: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory
Apr 22 04:08:04 mx1 clamsmtpd: 100018: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory
Apr 22 04:08:04 mx1 clamsmtpd: 100019: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory
Apr 22 04:23:04 mx1 clamsmtpd: 10001A: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory
Apr 22 09:18:06 mx1 clamsmtpd: 10001B: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory


root@mx1:~# ps aux | grep clamd
root 1863 0.0 0.0 12984 924 pts/0 S+ 09:34 0:00 grep --color=auto clamd
root@mx1:~# ps aux | grep clamsmtpd
clamsmtp 1435 0.0 0.0 14960 444 ? Ss 09:30 0:00 /usr/sbin/clamsmtpd
root 1865 0.0 0.0 12984 932 pts/0 S+ 09:34 0:00 grep --color=auto clamsmtpd
root@mx1:~#







Добавлено:
Кажется, напал на след:
root@mx1:~# clamsmtpd -d 4
clamsmtpd: read config file: /etc/clamsmtpd.conf
clamsmtpd: parsed option: OutAddress: 10025
clamsmtpd: parsed option: Listen: 127.0.0.1:10026
clamsmtpd: parsed option: ClamAddress: /var/run/clamav/clamd.sock
clamsmtpd: parsed option: TempDirectory: /tmp
clamsmtpd: parsed option: PidFile: /var/run/clamsmtp/clamsmtpd.pid
clamsmtpd: parsed option: User: clamsmtp
clamsmtpd: starting up (1.10)...
clamsmtpd: switched to user clamsmtp (uid 109, gid 118)
clamsmtpd: couldn't bind to address: 127.0.0.1:10026: Address already in use

Как разнести порты clamd и clamsmtpd?
Автор: Drron
Дата сообщения: 22.04.2015 13:14

Цитата:
clamsmtpd: couldn't bind to address: 127.0.0.1:10026: Address already in use

Потому что у вас уже запущен clamsmtpd.


Цитата:
Apr 22 01:03:03 mx1 clamsmtpd: 100016: CLAMAV: couldn't connect to: /var/run/clamav/clamd.ctl: No such file or directory

В файле clamd.conf путь к LocalSocket должен быть такой же, как путь к ClamAddress: в файле clamsmtpd.conf
Автор: AQAQ
Дата сообщения: 22.04.2015 15:25
Спасибо, поправил.

Страницы: 1

Предыдущая тема: Установка пакета DEB


Форум Ru-Board.club — поднят 15-09-2016 числа. Цель - сохранить наследие старого Ru-Board, истории становления российского интернета. Сделано для людей.