/l3/users/clint/MIMEDefang-ASP/asp.linux.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 |
|
#rpm -Uhv --force --nodeps /home/user/Desktop/clamav-0.88.5-1.rh9.rf.i386.rpm
предупреждение: /home/user/Desktop/clamav-0.88.5-1.rh9.rf.i386.rpm: Заголовок V3 DSA signature: NOKEY, key ID 6b8d79e6 Подготовка... ########################################### [100%] 1:clamav предупреждение: /etc/freshclam.conf создан как /etc/freshclam.conf.rpmnew ########################################### [100%] предупреждение: /var/lib/clamav/daily.cvd сохранен как /var/lib/clamav/daily.cvd.rpmsave предупреждение: /etc/logrotate.d/freshclam сохранен как /etc/logrotate.d/freshclam.rpmsave предупреждение: /etc/clamd.conf сохранен как /etc/clamd.conf.rpmsave |
#rpm -Uhv --force --nodeps /home/user/Desktop/clamav-db-0.88.5-1.rh9.rf.i386.rpm
предупреждение: /home/user/Desktop/clamav-db-0.88.5-1.rh9.rf.i386.rpm: Заголовок V3 DSA signature: NOKEY, key ID 6b8d79e6 Подготовка... ########################################### [100%] 1:clamav-db предупреждение: /var/clamav/daily.cvd создан как /var/clamav/daily.cvd.rpmnew ########################################### [100%] ошибка: распаковка архива не удалась на файле /var/clamav/main.cvd;45427565: cpio: read |
#rpm -Uhv --force /home/user/Desktop/clamd-0.88.5-1.rh9.rf.i386.rpm
предупреждение: /home/user/Desktop/clamd-0.88.5-1.rh9.rf.i386.rpm: Заголовок V3 DSA signature: NOKEY, key ID 6b8d79e6 Подготовка... ########################################### [100%] 1:clamd ########################################### [100%] |
#vi /etc/clamd.conf
|
#vi /etc/clamd.conf
72c72 < #LocalSocket /var/run/clamav/clamd.sock --- > LocalSocket /var/spool/MIMEDefangc/clamd.sock 76c76 < FixStaleSocket --- > #FixStaleSocket 80c80 < TCPSocket 3310 --- > #TCPSocket 3310 144c144 < User clamav --- > User defang |
#/etc/init.d/clamd start
Starting Clam AntiVirus Daemon: LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days. *** LibClamAV Warning: *** Please update it IMMEDIATELY! *** LibClamAV Warning: ************************************************** [ ОК ] |
#ps -ax
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.5/FAQ PID TTY STAT TIME COMMAND 1 ? S 0:00 init [5] 2 ? SN 0:00 [ksoftirqd/0] 3 ? S< 0:00 [events/0] 4 ? S< 0:00 [khelper] 5 ? S< 0:00 [kthread] 7 ? S< 0:00 [kacpid] 80 ? S< 0:00 [kblockd/0] 83 ? S< 0:00 [khubd] ... 27253 ? Sl 0:00 /usr/bin/mimedefang -P /var/spool/MIMEDefang/mimedefang.pid -m /var/spool/MIMEDefang/mimedefang-multiplexor.sock -R -1 -U defang -p /var/spool/ 27264 ? S 0:01 /usr/bin/perl /usr/bin/mimedefang.pl -server 27288 ? Ss 0:00 sendmail: accepting connections 27295 ? Ss 0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue 27325 pts/5 S+ 0:00 /bin/vi mimedefang.spec 27590 ? Ss 0:00 sshd: root@pts/9 27593 pts/9 Ss+ 0:00 script -f -q /root/.lilalo//93929998153653587-1161982837.script 27653 pts/9 S+ 0:00 script -f -q /root/.lilalo//93929998153653587-1161982837.script 27654 pts/10 Ss+ 0:00 bash -i 28023 pts/8 R+ 0:00 ps -ax |
#tail -f /var/log/messages
Oct 28 00:05:02 asp crond(pam_unix)[27793]: session closed for user root Oct 28 00:10:01 asp crond(pam_unix)[27981]: session opened for user root by (uid=0) Oct 28 00:10:02 asp crond(pam_unix)[27981]: session closed for user root Oct 28 00:11:22 asp clamd[28014]: Daemon started. Oct 28 00:11:22 asp clamd[28014]: clamd daemon 0.88.5 (OS: linux-gnu, ARCH: i386, CPU: i386) Oct 28 00:11:22 asp clamd[28014]: Log file size limit disabled. Oct 28 00:11:22 asp clamd[28014]: Running as user defang (UID 100, GID 101) Oct 28 00:11:22 asp clamd[28014]: Reading databases from /var/clamav Oct 28 00:11:22 asp clamd[28014]: Protecting against 8881 viruses. Oct 28 00:11:22 asp clamd[28015]: Socket file /var/spool/MIMEDefangc/clamd.sock could not be bound: No such file or directory |
#vi /etc/clamd.conf
72c72 < LocalSocket /var/spool/MIMEDefangc/clamd.sock --- > LocalSocket /var/spool/MIMEDefang/clamd.sock |
#/etc/init.d/clamd start
Starting Clam AntiVirus Daemon: LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days. *** LibClamAV Warning: *** Please update it IMMEDIATELY! *** LibClamAV Warning: ************************************************** [ ОК ] |
#vi /etc/clamd.conf
|
#tail -f /var/log/messages
Oct 28 00:12:03 asp clamd[28055]: Archive support enabled. Oct 28 00:12:03 asp clamd[28055]: Archive: RAR support disabled. Oct 28 00:12:03 asp clamd[28055]: Archive: Blocking encrypted archives. Oct 28 00:12:03 asp clamd[28055]: Archive: Blocking archives that exceed limits. Oct 28 00:12:03 asp clamd[28055]: Portable Executable support enabled. Oct 28 00:12:03 asp clamd[28055]: Detection of broken executables enabled. Oct 28 00:12:03 asp clamd[28055]: Mail files support enabled. Oct 28 00:12:03 asp clamd[28055]: OLE2 support enabled. Oct 28 00:12:03 asp clamd[28055]: HTML support enabled. Oct 28 00:12:03 asp clamd[28055]: Self checking every 1800 seconds. |
#tail -f /var/log/maillog
Oct 27 23:49:16 asp mimedefang.pl[27240]: filter: k9RKmEot027524: tempfail=1 Oct 27 23:49:16 asp mimedefang[27253]: k9RKmEot027524: Tempfailing because filter instructed us to Oct 27 23:49:16 asp sendmail[27524]: k9RKmEot027524: Milter: data, reject=451 4.3.0 Problem running virus-scanner Oct 27 23:49:16 asp sendmail[27524]: k9RKmEot027524: to=root@asp.linux.nt, delay=00:00:20, pri=30022, stat=Problem running virus-scanner Oct 28 00:11:18 asp clamd[27427]: Shutting down the main socket. Oct 28 00:11:18 asp clamd[27427]: Closing the main socket. Oct 28 00:11:18 asp clamd[27427]: Socket file removed. Oct 28 00:11:18 asp clamd[27427]: Can't unlink the pid file /var/run/clamav/clamd.pid Oct 28 00:11:18 asp clamd[27427]: Exiting (clean) Oct 28 00:11:18 asp clamd[27427]: --- Stopped at Sat Oct 28 00:11:18 2006 |
#ps -ax
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.5/FAQ PID TTY STAT TIME COMMAND 1 ? S 0:00 init [5] 2 ? SN 0:00 [ksoftirqd/0] 3 ? S< 0:00 [events/0] 4 ? S< 0:00 [khelper] 5 ? S< 0:00 [kthread] 7 ? S< 0:00 [kacpid] 80 ? S< 0:00 [kblockd/0] 83 ? S< 0:00 [khubd] ... 27264 ? S 0:01 /usr/bin/perl /usr/bin/mimedefang.pl -server 27288 ? Ss 0:00 sendmail: accepting connections 27295 ? Ss 0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue 27325 pts/5 S+ 0:00 /bin/vi mimedefang.spec 27590 ? Ss 0:00 sshd: root@pts/9 27593 pts/9 Ss+ 0:00 script -f -q /root/.lilalo//93929998153653587-1161982837.script 27653 pts/9 S+ 0:00 script -f -q /root/.lilalo//93929998153653587-1161982837.script 27654 pts/10 Ss+ 0:00 bash -i 28055 ? Ss 0:00 clamd 28099 pts/8 R+ 0:00 ps -ax |
#telnet 192.168.15.150
Trying 192.168.15.150... telnet: connect to address 192.168.15.150: Connection refused telnet: Unable to connect to remote host: Connection refused |
#tail -f /var/log/maillog
Oct 27 23:49:16 asp mimedefang.pl[27240]: filter: k9RKmEot027524: tempfail=1 Oct 27 23:49:16 asp mimedefang[27253]: k9RKmEot027524: Tempfailing because filter instructed us to Oct 27 23:49:16 asp sendmail[27524]: k9RKmEot027524: Milter: data, reject=451 4.3.0 Problem running virus-scanner Oct 27 23:49:16 asp sendmail[27524]: k9RKmEot027524: to=root@asp.linux.nt, delay=00:00:20, pri=30022, stat=Problem running virus-scanner Oct 28 00:11:18 asp clamd[27427]: Shutting down the main socket. Oct 28 00:11:18 asp clamd[27427]: Closing the main socket. Oct 28 00:11:18 asp clamd[27427]: Socket file removed. Oct 28 00:11:18 asp clamd[27427]: Can't unlink the pid file /var/run/clamav/clamd.pid Oct 28 00:11:18 asp clamd[27427]: Exiting (clean) Oct 28 00:11:18 asp clamd[27427]: --- Stopped at Sat Oct 28 00:11:18 2006 |
#tail -f /var/log/messages
Oct 28 00:12:03 asp clamd[28055]: Archive support enabled. Oct 28 00:12:03 asp clamd[28055]: Archive: RAR support disabled. Oct 28 00:12:03 asp clamd[28055]: Archive: Blocking encrypted archives. Oct 28 00:12:03 asp clamd[28055]: Archive: Blocking archives that exceed limits. Oct 28 00:12:03 asp clamd[28055]: Portable Executable support enabled. Oct 28 00:12:03 asp clamd[28055]: Detection of broken executables enabled. Oct 28 00:12:03 asp clamd[28055]: Mail files support enabled. Oct 28 00:12:03 asp clamd[28055]: OLE2 support enabled. Oct 28 00:12:03 asp clamd[28055]: HTML support enabled. Oct 28 00:12:03 asp clamd[28055]: Self checking every 1800 seconds. ^[[B:q |
#telnet 192.168.15.150 25
Trying 192.168.15.150... Connected to asp.linux.nt (192.168.15.150). Escape character is '^]'. 220 asp.linux.nt ESMTP Sendmail 8.13.7/8.13.7; Sat, 28 Oct 2006 00:13:03 +0300 MAIL FROM : iudr@mail.ru 250 2.1.0 iudr@mail.ru... Sender ok RCPT TO : root@asp.linux.nt 250 2.1.5 root@asp.linux.nt... Recipient ok DATA 354 Enter mail, end with "." on a line by itself Subject: SPAM . 451 4.3.0 Problem running virus-scanner Connection closed by foreign host. |
#ps ax grep cla
ERROR: Process ID list syntax error. ********* simple selection ********* ********* selection by list ********* -A all processes -C by command name -N negate selection -G by real group ID (supports names) -a all w/ tty except session leaders -U by real user ID (supports names) -d all except session leaders -g by session OR by effective group name -e all processes -p by process ID T all processes on this terminal -s processes in the sessions given a all w/ tty, including other users -t by tty g OBSOLETE -- DO NOT USE -u by effective user ID (supports names) ... -o,o user-defined -f full --Group --User --pid --cols --ppid -j,j job control s signal --group --user --sid --rows --info -O,O preloaded -o v virtual memory --cumulative --format --deselect -l,l long u user-oriented --sort --tty --forest --version -F extra full X registers --heading --no-heading --context ********* misc options ********* -V,V show version L list format codes f ASCII art forest -m,m,-L,-T,H threads S children in sum -y change -l format -M,Z security data c true command name -c scheduling class -w,w wide output n numeric WCHAN,UID -H process hierarchy |
#ps ax |
28055 ? Ss 0:00 clamd 28135 pts/8 R+ 0:00 grep cla |
#/etc/init.d/sendmail restart
Oct 27 23:49:16 asp mimedefang[27253]: k9RKmEot027524: Tempfailing because filter instructed us to Oct 27 23:49:16 asp sendmail[27524]: k9RKmEot027524: Milter: data, reject=451 4.3.0 Problem running virus-scanner Oct 27 23:49:16 asp sendmail[27524]: k9RKmEot027524: to=root@asp.linux.nt, delay=00:00:20, pri=30022, stat=Problem running virus-scanner Oct 28 00:11:18 asp clamd[27427]: Shutting down the main socket. Oct 28 00:11:18 asp clamd[27427]: Closing the main socket. Oct 28 00:11:18 asp clamd[27427]: Socket file removed. Oct 28 00:11:18 asp clamd[27427]: Can't unlink the pid file /var/run/clamav/clamd.pid Oct 28 00:11:18 asp clamd[27427]: Exiting (clean) Oct 28 00:11:18 asp clamd[27427]: --- Stopped at Sat Oct 28 00:11:18 2006 Oct 28 00:13:23 asp sendmail[28120]: k9RLD3e8028120: Authentication-Warning: asp.linux.nt: asp.linux.nt [192.168.15.150] didn't use HELO protocol ... Oct 28 00:14:20 asp mimedefang.pl[27240]: Problem running virus scanner: code=226, category=swerr, action=tempfail Oct 28 00:14:20 asp mimedefang.pl[27240]: filter: k9RLEJ3f028194: tempfail=1 Oct 28 00:14:20 asp mimedefang[27253]: k9RLEJ3f028194: Tempfailing because filter instructed us to Oct 28 00:14:20 asp sendmail[28194]: k9RLEJ3f028194: Milter: data, reject=451 4.3.0 Problem running virus-scanner Oct 28 00:14:20 asp sendmail[28194]: k9RLEJ3f028194: to=<root@asp.linux.nt>, delay=00:00:01, pri=30300, stat=Problem running virus-scanner Oct 28 00:14:20 asp sm-msp-queue[28193]: k9RK3pQi026361: to=root, ctladdr=root (0/0), delay=01:10:29, xdelay=00:00:01, mailer=relay, pri=480030, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.0 Problem running virus-scanner Останавливается sm-client: [ ОК ] Останавливается sendmail: [ ОК ] Запускается sendmail: [ ОК ] Запускается sm-client: [ ОК ] |
#vi /etc/mail/mimedefang-filter
143,146c143,146 < if ($action eq "tempfail") { < action_tempfail("Problem running virus-scanner"); < md_syslog('warning', "Problem running virus scanner: code=$code, category=$category, action=$action"); < } --- > # if ($action eq "tempfail") { > # action_tempfail("Problem running virus-scanner"); > # md_syslog('warning', "Problem running virus scanner: code=$code, category=$category, action=$action"); > # } |
#/etc/init.d/mimedefang restart
Oct 27 23:49:16 asp mimedefang[27253]: k9RKmEot027524: Tempfailing because filter instructed us to Oct 27 23:49:16 asp sendmail[27524]: k9RKmEot027524: Milter: data, reject=451 4.3.0 Problem running virus-scanner Oct 27 23:49:16 asp sendmail[27524]: k9RKmEot027524: to=root@asp.linux.nt, delay=00:00:20, pri=30022, stat=Problem running virus-scanner Oct 28 00:11:18 asp clamd[27427]: Shutting down the main socket. Oct 28 00:11:18 asp clamd[27427]: Closing the main socket. Oct 28 00:11:18 asp clamd[27427]: Socket file removed. Oct 28 00:11:18 asp clamd[27427]: Can't unlink the pid file /var/run/clamav/clamd.pid Oct 28 00:11:18 asp clamd[27427]: Exiting (clean) Oct 28 00:11:18 asp clamd[27427]: --- Stopped at Sat Oct 28 00:11:18 2006 Oct 28 00:13:23 asp sendmail[28120]: k9RLD3e8028120: Authentication-Warning: asp.linux.nt: asp.linux.nt [192.168.15.150] didn't use HELO protocol ... Oct 28 00:15:49 asp mimedefang-multiplexor[27239]: Slave 0 resource usage: req=12, scans=12, user=1.920, sys=0.188, nswap=0, majflt=0, minflt=18742, maxrss=0, bi=0, bo=0 Oct 28 00:15:49 asp mimedefang-multiplexor[28269]: started; minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, busyTimeout=600, clientTimeout=10 Oct 28 00:15:49 asp mimedefang-multiplexor[28269]: Starting slave 0 (pid 28270) (1 running): Bringing slaves up to minSlaves (2) Oct 28 00:15:49 asp mimedefang[28283]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0 Oct 28 00:15:49 asp mimedefang[28283]: Multiplexor alive - entering main loop Shutting down mimedefang: [ ОК ] Shutting down mimedefang-multiplexor: [ ОК ] Waiting for daemons to exit Starting mimedefang-multiplexor: [ ОК ] Starting mimedefang: [ ОК ] |
#/etc/init.d/sendmail restart
Oct 27 23:49:16 asp mimedefang[27253]: k9RKmEot027524: Tempfailing because filter instructed us to Oct 27 23:49:16 asp sendmail[27524]: k9RKmEot027524: Milter: data, reject=451 4.3.0 Problem running virus-scanner Oct 27 23:49:16 asp sendmail[27524]: k9RKmEot027524: to=root@asp.linux.nt, delay=00:00:20, pri=30022, stat=Problem running virus-scanner Oct 28 00:11:18 asp clamd[27427]: Shutting down the main socket. Oct 28 00:11:18 asp clamd[27427]: Closing the main socket. Oct 28 00:11:18 asp clamd[27427]: Socket file removed. Oct 28 00:11:18 asp clamd[27427]: Can't unlink the pid file /var/run/clamav/clamd.pid Oct 28 00:11:18 asp clamd[27427]: Exiting (clean) Oct 28 00:11:18 asp clamd[27427]: --- Stopped at Sat Oct 28 00:11:18 2006 Oct 28 00:13:23 asp sendmail[28120]: k9RLD3e8028120: Authentication-Warning: asp.linux.nt: asp.linux.nt [192.168.15.150] didn't use HELO protocol ... Oct 28 00:16:00 asp mimedefang-multiplexor[28269]: Slave 0 stderr: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /root/.spamassassin/auto-whitelist.lock.asp.linux.nt.28270 for /root/.spamassassin/auto-whitelist.lock: Permission denied Oct 28 00:16:00 asp mimedefang.pl[28270]: MDLOG,k9RLFwAs028327,mail_in,,,<root@asp.linux.nt>,<root@asp.linux.nt>,tets Oct 28 00:16:00 asp sendmail[28327]: k9RLFwAs028327: Milter delete (noop): header: X-Spam-Score Oct 28 00:16:00 asp sendmail[28327]: k9RLFwAs028327: Milter add: header: X-Scanned-By: MIMEDefang 2.57 on 192.168.15.150 Oct 28 00:16:00 asp sm-msp-queue[28326]: k9RK3pQi026361: to=root, ctladdr=root (0/0), delay=01:12:09, xdelay=00:00:00, mailer=relay, pri=570030, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k9RLFwAs028327 Message accepted for delivery) Oct 28 00:16:00 asp sendmail[28349]: k9RLFwAs028327: to=<root@asp.linux.nt>, ctladdr=<root@asp.linux.nt> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30557, dsn=2.0.0, stat=Sent Останавливается sm-client: [ ОК ] Останавливается sendmail: [ ОК ] Запускается sendmail: [ ОК ] Запускается sm-client: [ ОК ] |
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/spool/mail/root": 10 messages 7 new 9 unread U 1 root@asp.linux.nt Fri Oct 27 22:09 21/710 "test" U 2 root@asp.linux.nt Fri Oct 27 22:13 22/720 "test" 3 root@asp.linux.nt Fri Oct 27 22:14 42/1305 "Re: test" >N 4 root@asp.linux.nt Fri Oct 27 22:37 18/673 "test" N 5 root@asp.linux.nt Fri Oct 27 22:37 36/1105 "kjhkjhkg gjg" N 6 root@asp.linux.nt Sat Oct 28 00:16 17/613 "trew" N 7 root@asp.linux.nt Sat Oct 28 00:16 17/614 "wef" N 8 root@asp.linux.nt Sat Oct 28 00:16 17/621 "ss" ... At EOF & At EOF & At EOF & At EOF & q Saved 7 messages in mbox Held 3 messages in /var/spool/mail/root |
#mutt
Оставлено: 4, удалено: 0. You have mail in /var/spool/mail/root |
#ps -ax
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.5/FAQ PID TTY STAT TIME COMMAND 1 ? S 0:00 init [5] 2 ? SN 0:00 [ksoftirqd/0] 3 ? S< 0:00 [events/0] 4 ? S< 0:00 [khelper] 5 ? S< 0:00 [kthread] 7 ? S< 0:00 [kacpid] 80 ? S< 0:00 [kblockd/0] 83 ? S< 0:00 [khubd] ... 27654 pts/10 Ss+ 0:00 bash -i 28055 ? Ss 0:00 clamd 28143 pts/8 S+ 0:00 tail -f /var/log/maillog 28269 ? S 0:00 /usr/bin/mimedefang-multiplexor -p /var/spool/MIMEDefang/mimedefang-multiplexor.pid -m 2 -x 10 -U defang -b 600 -l -s /va 28270 ? S 0:03 /usr/bin/perl /usr/bin/mimedefang.pl -server 28283 ? Sl 0:00 /usr/bin/mimedefang -P /var/spool/MIMEDefang/mimedefang.pid -m /var/spool/MIMEDefang/mimedefang-multiplexor.sock -R -1 -U 28294 ? S 0:01 /usr/bin/perl /usr/bin/mimedefang.pl -server 28318 ? Ss 0:00 sendmail: accepting connections 28325 ? Ss 0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue 28381 pts/1 R+ 0:00 ps -ax |
#mail root
Oct 28 00:13:23 asp sendmail[28120]: k9RLD3e8028120: Authentication-Warning: asp.linux.nt: asp.linux.nt [192.168.15.150] didn't use HELO protocol Oct 28 00:13:52 asp sendmail[28145]: k9RLDqUa028145: from=root, size=29, class=0, nrcpts=1, msgid=<200610272113.k9RLDqUa028145@asp.linux.nt>, relay=root@localhost Oct 28 00:13:52 asp sendmail[28151]: k9RLDq9A028151: from=<root@asp.linux.nt>, size=299, class=0, nrcpts=1, msgid=<200610272113.k9RLDqUa028145@asp.linux.nt>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Oct 28 00:13:52 asp mimedefang.pl[27240]: Problem running virus scanner: code=226, category=swerr, action=tempfail Oct 28 00:13:52 asp mimedefang.pl[27240]: filter: k9RLDq9A028151: tempfail=1 Oct 28 00:13:52 asp mimedefang[27253]: k9RLDq9A028151: Tempfailing because filter instructed us to Oct 28 00:13:52 asp sendmail[28151]: k9RLDq9A028151: Milter: data, reject=451 4.3.0 Problem running virus-scanner Oct 28 00:13:52 asp sendmail[28151]: k9RLDq9A028151: to=<root@asp.linux.nt>, delay=00:00:00, pri=30299, stat=Problem running virus-scanner Oct 28 00:13:52 asp sendmail[28145]: k9RLDqUa028145: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30029, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.0 Problem running virus-scanner Oct 28 00:14:06 asp sendmail[28120]: k9RLD3e8028120: from=iudr@mail.ru, size=15, class=0, nrcpts=1, msgid=<200610272113.k9RLD3e8028120@asp.linux.nt>, proto=SMTP, daemon=MTA, relay=asp.linux.nt [192.168.15.150] ... Oct 28 00:18:12 asp sendmail[28395]: k9RLICIN028395: from=<root@asp.linux.nt>, size=307, class=0, nrcpts=1, msgid=<200610272118.k9RLICja028389@asp.linux.nt>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Oct 28 00:18:12 asp mimedefang-multiplexor[28269]: Slave 0 stderr: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /root/.spamassassin/auto-whitelist.lock.asp.linux.nt.28270 for /root/.spamassassin/auto-whitelist.lock: Permission denied Oct 28 00:18:12 asp mimedefang.pl[28270]: MDLOG,k9RLICIN028395,mail_in,,,<root@asp.linux.nt>,<root@asp.linux.nt>,sdfsdf sdf Oct 28 00:18:12 asp sendmail[28395]: k9RLICIN028395: Milter delete (noop): header: X-Spam-Score Oct 28 00:18:12 asp sendmail[28395]: k9RLICIN028395: Milter add: header: X-Scanned-By: MIMEDefang 2.57 on 192.168.15.150 Oct 28 00:18:12 asp sendmail[28389]: k9RLICja028389: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30037, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k9RLICIN028395 Message accepted for delivery) Oct 28 00:18:12 asp sendmail[28399]: k9RLICIN028395: to=<root@asp.linux.nt>, ctladdr=<root@asp.linux.nt> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30564, dsn=2.0.0, stat=Sent Subject: sdfsdf sdf sdfsdf Cc: |
#freshclam
ClamAV update process started at Sat Oct 28 00:18:45 2006 Downloading main.cvd [*] main.cvd updated (version: 40, sigs: 64138, f-level: 8, builder: tkojm) |
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/spool/mail/root": 5 messages 1 new 3 unread U 1 root@asp.linux.nt Fri Oct 27 22:09 21/710 "test" U 2 root@asp.linux.nt Fri Oct 27 22:13 22/720 "test" 3 root@asp.linux.nt Fri Oct 27 22:14 43/1317 "Re: test" 4 root@asp.linux.nt Sat Oct 28 00:16 58/1970 "Re: test" >N 5 root@asp.linux.nt Sat Oct 28 00:18 17/622 "sdfsdf sdf" & Message 5: From root@asp.linux.nt Sat Oct 28 00:18:12 2006 Date: Sat, 28 Oct 2006 00:18:12 +0300 From: root <root@asp.linux.nt> To: root@asp.linux.nt Subject: sdfsdf sdf X-Scanned-By: MIMEDefang 2.57 on 192.168.15.150 sdfsdf & q Saved 1 message in mbox Held 4 messages in /var/spool/mail/root |
#tail -f /var/log/mail.log
tail: невозможно открыть `/var/log/mail.log' для чтения: Нет такого файла или каталога tail: больше нет файлов |
#tail -f /var/log/mail
mail/ maillog |
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/spool/mail/root": 5 messages 1 new 3 unread U 1 root@asp.linux.nt Fri Oct 27 22:09 21/710 "test" U 2 root@asp.linux.nt Fri Oct 27 22:13 22/720 "test" 3 root@asp.linux.nt Fri Oct 27 22:14 43/1317 "Re: test" 4 root@asp.linux.nt Sat Oct 28 00:16 58/1970 "Re: test" >N 5 sergey.cherepenin@gm Sat Oct 28 02:17 13/533 & Message 5: From sergey.cherepenin@gmail.com Sat Oct 28 02:17:49 2006 Date: Sat, 28 Oct 2006 02:16:52 +0300 From: sergey.cherepenin@gmail.com X-Authentication-Warning: asp.linux.nt: [192.168.15.15] didn't use HELO protocol X-Scanned-By: MIMEDefang 2.57 on 192.168.15.150 testishe! & q Saved 1 message in mbox Held 4 messages in /var/spool/mail/root |
#cd /usr/src/
asplinux/ debug/ mimedefang-2.57/ Unix-Syslog-0.100/ |
#yum insatall clamav
usage: yum [options] < update | install | info | remove | list | clean | provides | search | check-update | groupinstall | groupupdate | grouplist | groupinfo | groupremove | makecache | localinstall | erase | upgrade | whatprovides | localupdate | resolvedep | shell | deplist > options: -h, --help show this help message and exit -t, --tolerant be tolerant of errors -C run entirely from cache, don't update cache -c [config file] config file location -R [minutes] maximum command wait time -d [debug level] debugging output level -e [error level] error output level -y answer yes for all questions --version show Yum version and exit --installroot=[path] set install root --enablerepo=[repo] enable one or more repositories (wildcards allowed) --disablerepo=[repo] disable one or more repositories (wildcards allowed) --exclude=[package] exclude package(s) by name or glob --obsoletes enable obsoletes processing during updates --noplugins disable Yum plugins |
#yum install clamav
Setting up Install Process Setting up repositories base 100% |=========================| 951 B 00:00 updates-released 100% |=========================| 951 B 00:00 Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package clamav.i386 70:0.88.5-1.110asp set to be updated --> Running transaction check --> Processing Dependency: clamav = 0.88.5-1.rh9.rf for package: clamd --> Finished Dependency Resolution Error: Missing Dependency: clamav = 0.88.5-1.rh9.rf is needed by package clamd |
#yum install clamad
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments No Match for argument: clamad Nothing to do |
#yum install clamd
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments No Match for argument: clamd Nothing to do |
#ps aux | grep clamd
defang 28055 0.0 0.5 17644 5964 ? Ss 00:12 0:00 clamd root 29237 0.0 0.0 3788 752 pts/4 R+ 02:20 0:00 grep clamd |
#/etc/init.d/clamd restart
Stopping Clam AntiVirus Daemon: [ ОК ] Starting Clam AntiVirus Daemon: LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days. *** LibClamAV Warning: *** Please update it IMMEDIATELY! *** LibClamAV Warning: ************************************************** [ ОК ] |
#freshclam
ClamAV update process started at Sat Oct 28 02:20:37 2006 main.cvd is up to date (version: 40, sigs: 64138, f-level: 8, builder: tkojm) daily.cvd is up to date (version: 2126, sigs: 10476, f-level: 8, builder: sven) |
#/etc/init.d/clamd restart
Stopping Clam AntiVirus Daemon: [ ОК ] Starting Clam AntiVirus Daemon: LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days. *** LibClamAV Warning: *** Please update it IMMEDIATELY! *** LibClamAV Warning: ************************************************** [ ОК ] |
#/etc/init.d/sendmail stop
Останавливается sm-client: [ ОК ] Останавливается sendmail: [ ОК ] |
#/etc/init.d/clamd stop
Stopping Clam AntiVirus Daemon: [ ОК ] |
#/etc/init.d/mimedefang stop
Shutting down mimedefang: [ ОК ] Shutting down mimedefang-multiplexor: [ ОК ] |
#vi /etc/mail/mimedefang-filter
143,145c143,145 < # if ($action eq "tempfail") { < # action_tempfail("Problem running virus-scanner"); < # md_syslog('warning', "Problem running virus scanner: code=$code, category=$category, action=$action"); --- > if ($action eq "tempfail") { > action_tempfail("Problem running virus-scanner"); > md_syslog('warning', "Problem running virus scanner: code=$code, category=$category, action=$action"); |
#/etc/init.d/mimedefang start
Oct 28 02:17:49 asp mimedefang.pl[28270]: MDLOG,k9RNGqD1029091,mail_in,,,sergey.cherepenin@gmail.com,root@localhost, Oct 28 02:17:49 asp sendmail[29091]: k9RNGqD1029091: Milter delete (noop): header: X-Spam-Score Oct 28 02:17:49 asp sendmail[29091]: k9RNGqD1029091: Milter add: header: X-Scanned-By: MIMEDefang 2.57 on 192.168.15.150 Oct 28 02:17:49 asp sendmail[29099]: k9RNGqD1029091: to=root@localhost, delay=00:00:17, xdelay=00:00:00, mailer=local, pri=30444, dsn=2.0.0, stat=Sent Oct 28 02:25:17 asp mimedefang[28283]: MIMEDefang-2.57: mi_stop=1 Oct 28 02:25:19 asp mimedefang-multiplexor[28269]: Received SIGTERM: Stopping slaves and terminating Oct 28 02:25:19 asp mimedefang-multiplexor[28269]: Reap: slave 1 (pid 28294) exited normally with status 0 Oct 28 02:25:19 asp mimedefang-multiplexor[28269]: Slave 1 resource usage: req=0, scans=0, user=1.540, sys=0.100, nswap=0, majflt=0, minflt=5052, maxrss=0, bi=0, bo=0 Oct 28 02:25:19 asp mimedefang-multiplexor[28269]: Reap: slave 0 (pid 28270) exited normally with status 0 Oct 28 02:25:19 asp mimedefang-multiplexor[28269]: Slave 0 resource usage: req=8, scans=8, user=3.608, sys=0.276, nswap=0, majflt=0, minflt=30693, maxrss=0, bi=0, bo=0 ... Oct 28 02:27:17 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29539) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:27:18 asp mimedefang-multiplexor[29514]: Slave 0 stderr: Missing right curly or square bracket at /etc/mail/mimedefang-filter line 343, at end of line syntax error at /etc/mail/mimedefang-filter line 343, at EOF Compilation failed in require at /usr/bin/mimedefang.pl line 5012. Oct 28 02:27:18 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29539) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:18 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.684, sys=0.044, nswap=0, majflt=0, minflt=2499, maxrss=0, bi=0, bo=0 Oct 28 02:27:20 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29540) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:27:21 asp mimedefang-multiplexor[29514]: Slave 0 stderr: Missing right curly or square bracket at /etc/mail/mimedefang-filter line 343, at end of line syntax error at /etc/mail/mimedefang-filter line 343, at EOF Compilation failed in require at /usr/bin/mimedefang.pl line 5012. Oct 28 02:27:21 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29540) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:21 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.720, sys=0.036, nswap=0, majflt=0, minflt=2490, maxrss=0, bi=0, bo=0 Starting mimedefang-multiplexor: [ ОК ] Starting mimedefang: [ ОК ] |
#tail -f /var/log/maillog
Oct 28 02:17:49 asp mimedefang.pl[28270]: MDLOG,k9RNGqD1029091,mail_in,,,sergey.cherepenin@gmail.com,root@localhost, Oct 28 02:17:49 asp sendmail[29091]: k9RNGqD1029091: Milter delete (noop): header: X-Spam-Score Oct 28 02:17:49 asp sendmail[29091]: k9RNGqD1029091: Milter add: header: X-Scanned-By: MIMEDefang 2.57 on 192.168.15.150 Oct 28 02:17:49 asp sendmail[29099]: k9RNGqD1029091: to=root@localhost, delay=00:00:17, xdelay=00:00:00, mailer=local, pri=30444, dsn=2.0.0, stat=Sent Oct 28 02:25:17 asp mimedefang[28283]: MIMEDefang-2.57: mi_stop=1 Oct 28 02:25:19 asp mimedefang-multiplexor[28269]: Received SIGTERM: Stopping slaves and terminating Oct 28 02:25:19 asp mimedefang-multiplexor[28269]: Reap: slave 1 (pid 28294) exited normally with status 0 Oct 28 02:25:19 asp mimedefang-multiplexor[28269]: Slave 1 resource usage: req=0, scans=0, user=1.540, sys=0.100, nswap=0, majflt=0, minflt=5052, maxrss=0, bi=0, bo=0 Oct 28 02:25:19 asp mimedefang-multiplexor[28269]: Reap: slave 0 (pid 28270) exited normally with status 0 Oct 28 02:25:19 asp mimedefang-multiplexor[28269]: Slave 0 resource usage: req=8, scans=8, user=3.608, sys=0.276, nswap=0, majflt=0, minflt=30693, maxrss=0, bi=0, bo=0 ... Oct 28 02:27:39 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.716, sys=0.060, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 Oct 28 02:27:41 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29549) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:27:42 asp mimedefang-multiplexor[29514]: Slave 0 stderr: Missing right curly or square bracket at /etc/mail/mimedefang-filter line 343, at end of line syntax error at /etc/mail/mimedefang-filter line 343, at EOF Compilation failed in require at /usr/bin/mimedefang.pl line 5012. Oct 28 02:27:42 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29549) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:42 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.668, sys=0.068, nswap=0, majflt=0, minflt=2496, maxrss=0, bi=0, bo=0 Oct 28 02:27:44 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29550) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:27:45 asp mimedefang-multiplexor[29514]: Slave 0 stderr: Missing right curly or square bracket at /etc/mail/mimedefang-filter line 343, at end of line syntax error at /etc/mail/mimedefang-filter line 343, at EOF Compilation failed in require at /usr/bin/mimedefang.pl line 5012. Oct 28 02:27:45 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29550) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:45 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.680, sys=0.056, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 Oct 28 02:27:47 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29551) (1 running): Bringing slaves up to minSlaves (2) |
#/etc/init.d/mimedefang stop
Oct 28 02:27:48 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29551) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:48 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.708, sys=0.052, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29557) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Slave 0 stderr: Missing right curly or square bracket at /etc/mail/mimedefang-filter line 343, at end of line syntax error at /etc/mail/mimedefang-filter line 343, at EOF Compilation failed in require at /usr/bin/mimedefang.pl line 5012. Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29557) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.704, sys=0.036, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29558) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Slave 0 stderr: Missing right curly or square bracket at /etc/mail/mimedefang-filter line 343, at end of line syntax error at /etc/mail/mimedefang-filter line 343, at EOF Compilation failed in require at /usr/bin/mimedefang.pl line 5012. Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29558) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.696, sys=0.056, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 ... Oct 28 02:28:00 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29562) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:28:00 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.704, sys=0.056, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 Oct 28 02:28:03 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29569) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:28:03 asp mimedefang-multiplexor[29514]: Slave 0 stderr: Missing right curly or square bracket at /etc/mail/mimedefang-filter line 343, at end of line syntax error at /etc/mail/mimedefang-filter line 343, at EOF Compilation failed in require at /usr/bin/mimedefang.pl line 5012. Oct 28 02:28:03 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29569) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:28:03 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.704, sys=0.036, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 Oct 28 02:28:04 asp mimedefang[29528]: MIMEDefang-2.57: mi_stop=1 Oct 28 02:28:05 asp mimedefang-multiplexor[29514]: Received SIGTERM: Stopping slaves and terminating Shutting down mimedefang: [ ОК ] Shutting down mimedefang-multiplexor: [ ОК ] |
#tail -f /var/log/maillog
Oct 28 02:27:48 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29551) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:48 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.708, sys=0.052, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29557) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Slave 0 stderr: Missing right curly or square bracket at /etc/mail/mimedefang-filter line 343, at end of line syntax error at /etc/mail/mimedefang-filter line 343, at EOF Compilation failed in require at /usr/bin/mimedefang.pl line 5012. Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29557) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.704, sys=0.036, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29558) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Slave 0 stderr: Missing right curly or square bracket at /etc/mail/mimedefang-filter line 343, at end of line syntax error at /etc/mail/mimedefang-filter line 343, at EOF Compilation failed in require at /usr/bin/mimedefang.pl line 5012. Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29558) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.696, sys=0.056, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 ... Oct 28 02:30:00 asp sendmail[29671]: starting daemon (8.13.7): SMTP+queueing@01:00:00 Oct 28 02:30:00 asp sm-msp-queue[29678]: starting daemon (8.13.7): queueing@01:00:00 Oct 28 02:30:53 asp sendmail[29703]: k9RNUrf8029703: from=root, size=29, class=0, nrcpts=1, msgid=<200610272330.k9RNUrf8029703@asp.linux.nt>, relay=root@localhost Oct 28 02:30:53 asp sendmail[29709]: k9RNUr1N029709: from=<root@asp.linux.nt>, size=299, class=0, nrcpts=1, msgid=<200610272330.k9RNUrf8029703@asp.linux.nt>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Oct 28 02:30:53 asp mimedefang.pl[29631]: Problem running virus scanner: code=226, category=swerr, action=tempfail Oct 28 02:30:53 asp mimedefang.pl[29631]: filter: k9RNUr1N029709: tempfail=1 Oct 28 02:30:53 asp mimedefang[29644]: k9RNUr1N029709: Tempfailing because filter instructed us to Oct 28 02:30:53 asp sendmail[29709]: k9RNUr1N029709: Milter: data, reject=451 4.3.0 Problem running virus-scanner Oct 28 02:30:53 asp sendmail[29709]: k9RNUr1N029709: to=<root@asp.linux.nt>, delay=00:00:00, pri=30299, stat=Problem running virus-scanner Oct 28 02:30:53 asp sendmail[29703]: k9RNUrf8029703: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30029, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.0 Problem running virus-scanner |
#/etc/init.d/mimedefang start
Oct 28 02:27:48 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29551) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:48 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.708, sys=0.052, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29557) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Slave 0 stderr: Missing right curly or square bracket at /etc/mail/mimedefang-filter line 343, at end of line syntax error at /etc/mail/mimedefang-filter line 343, at EOF Compilation failed in require at /usr/bin/mimedefang.pl line 5012. Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29557) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.704, sys=0.036, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29558) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Slave 0 stderr: Missing right curly or square bracket at /etc/mail/mimedefang-filter line 343, at end of line syntax error at /etc/mail/mimedefang-filter line 343, at EOF Compilation failed in require at /usr/bin/mimedefang.pl line 5012. Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29558) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.696, sys=0.056, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 ... Oct 28 02:28:03 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.704, sys=0.036, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 Oct 28 02:28:04 asp mimedefang[29528]: MIMEDefang-2.57: mi_stop=1 Oct 28 02:28:05 asp mimedefang-multiplexor[29514]: Received SIGTERM: Stopping slaves and terminating Oct 28 02:29:36 asp mimedefang-multiplexor[29630]: started; minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, busyTimeout=600, clientTimeout=10 Oct 28 02:29:36 asp mimedefang-multiplexor[29630]: Starting slave 0 (pid 29631) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:29:36 asp mimedefang[29644]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0 Oct 28 02:29:36 asp mimedefang[29644]: Multiplexor alive - entering main loop Oct 28 02:29:39 asp mimedefang-multiplexor[29630]: Starting slave 1 (pid 29655) (2 running): Bringing slaves up to minSlaves (2) Starting mimedefang-multiplexor: [ ОК ] Starting mimedefang: [ ОК ] |
#/etc/init.d/sendmail start
Oct 28 02:27:48 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29551) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:48 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.708, sys=0.052, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29557) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Slave 0 stderr: Missing right curly or square bracket at /etc/mail/mimedefang-filter line 343, at end of line syntax error at /etc/mail/mimedefang-filter line 343, at EOF Compilation failed in require at /usr/bin/mimedefang.pl line 5012. Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29557) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.704, sys=0.036, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29558) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Slave 0 stderr: Missing right curly or square bracket at /etc/mail/mimedefang-filter line 343, at end of line syntax error at /etc/mail/mimedefang-filter line 343, at EOF Compilation failed in require at /usr/bin/mimedefang.pl line 5012. Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29558) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.696, sys=0.056, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 ... Oct 28 02:29:36 asp mimedefang-multiplexor[29630]: Starting slave 0 (pid 29631) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:29:36 asp mimedefang[29644]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0 Oct 28 02:29:36 asp mimedefang[29644]: Multiplexor alive - entering main loop Oct 28 02:29:39 asp mimedefang-multiplexor[29630]: Starting slave 1 (pid 29655) (2 running): Bringing slaves up to minSlaves (2) Oct 28 02:30:00 asp sendmail[29667]: alias database /etc/aliases rebuilt by root Oct 28 02:30:00 asp sendmail[29667]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total Oct 28 02:30:00 asp sendmail[29671]: starting daemon (8.13.7): SMTP+queueing@01:00:00 Oct 28 02:30:00 asp sm-msp-queue[29678]: starting daemon (8.13.7): queueing@01:00:00 Запускается sendmail: [ ОК ] Запускается sm-client: [ ОК ] |
#/etc/init.d/clamd start
Starting Clam AntiVirus Daemon: LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days. *** LibClamAV Warning: *** Please update it IMMEDIATELY! *** LibClamAV Warning: ************************************************** [ ОК ] |
# mail root -s tets
Oct 28 02:27:48 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29551) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:48 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.708, sys=0.052, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29557) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Slave 0 stderr: Missing right curly or square bracket at /etc/mail/mimedefang-filter line 343, at end of line syntax error at /etc/mail/mimedefang-filter line 343, at EOF Compilation failed in require at /usr/bin/mimedefang.pl line 5012. Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29557) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:51 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.704, sys=0.036, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Starting slave 0 (pid 29558) (1 running): Bringing slaves up to minSlaves (2) Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Slave 0 stderr: Missing right curly or square bracket at /etc/mail/mimedefang-filter line 343, at end of line syntax error at /etc/mail/mimedefang-filter line 343, at EOF Compilation failed in require at /usr/bin/mimedefang.pl line 5012. Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Reap: slave 0 (pid 29558) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY) Oct 28 02:27:54 asp mimedefang-multiplexor[29514]: Slave 0 resource usage: req=0, scans=0, user=0.696, sys=0.056, nswap=0, majflt=0, minflt=2491, maxrss=0, bi=0, bo=0 ... Oct 28 02:30:53 asp sendmail[29709]: k9RNUr1N029709: from=<root@asp.linux.nt>, size=299, class=0, nrcpts=1, msgid=<200610272330.k9RNUrf8029703@asp.linux.nt>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Oct 28 02:30:53 asp mimedefang.pl[29631]: Problem running virus scanner: code=226, category=swerr, action=tempfail Oct 28 02:30:53 asp mimedefang.pl[29631]: filter: k9RNUr1N029709: tempfail=1 Oct 28 02:30:53 asp mimedefang[29644]: k9RNUr1N029709: Tempfailing because filter instructed us to Oct 28 02:30:53 asp sendmail[29709]: k9RNUr1N029709: Milter: data, reject=451 4.3.0 Problem running virus-scanner Oct 28 02:30:53 asp sendmail[29709]: k9RNUr1N029709: to=<root@asp.linux.nt>, delay=00:00:00, pri=30299, stat=Problem running virus-scanner Oct 28 02:30:53 asp sendmail[29703]: k9RNUrf8029703: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30029, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.0 Problem running virus-scanner rl;t . Cc: |
#mime
Setting up Update Process Setting up repositories base 100% |=========================| 951 B 00:00 updates-released 100% |=========================| 951 B 00:00 Reading repository metadata in from local files Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package ipw2100-firmware.noarch 0:1.3-3 set to be updated ---> Package faad2.i386 0:2.0-4.2.110asp set to be updated ---> Package kdeaddons.i386 0:3.5.3-0.1.fc4 set to be updated ... ---> Downloading header for info to pack into transaction set. info-4.8-8.fc4.2.i386.rpm 100% |=========================| 11 kB 00:00 ---> Package info.i386 0:4.8-8.fc4.2 set to be updated ---> Downloading header for gnutls to pack into transaction set. gnutls-1.0.25-2.110asp.i3 100% |=========================| 4.8 kB 00:00 ---> Package gnutls.i386 0:1.0.25-2.110asp set to be updated ---> Downloading header for unrar to pack into transaction set. mimedefang mimedump mimepostcard mimedefang-multiplexor mimeencode mimesend mimedefang.pl mimeexplode |
#mime
mimedefang mimedump mimepostcard mimedefang-multiplexor mimeencode mimesend mimedefang.pl mimeexplode |
#man m
|
#yum search bash_completion
Searching Packages: Setting up repositories Reading repository metadata in from local files No Matches found |
#yum search completion
* Session logging and reloading. * Extensible syntax processing for special purpose situations. * Access to the system shell with user-extensible alias system. * Easily embeddable in other Python programs. * Integrated access to the pdb debugger and the Python profiler. kile.i386 1.8.1-7.110asp base Matched from: Kile is a user friendly (La)TeX editor. The main features are: * Compile, convert and view your document with one click. * Auto-completion of (La)TeX commands ... displayed as graphs. You can use your mouse to dereference pointers or view structure contents, which are updated every time the program stops. DDD can debug programs written in Ada, C, C++, Chill, Fortran, Java, Modula, Pascal, Perl, and Python. DDD provides machine-level debugging; hypertext source navigation and lookup; breakpoint, watchpoint, backtrace, and history editors; array plots; undo and redo; preferences and settings editors; program execution in the terminal emulation window, debugging on a remote host, an on-line manual, extensive help on the Motif user interface, and a command-line interface with full editing, history and completion capabilities. |
#yum search completion | less
|
#yum search bash_completion.noarch
Searching Packages: Setting up repositories Reading repository metadata in from local files No Matches found |
#yum install bash_completion.noarch
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments No Match for argument: bash_completion.noarch Nothing to do |
#yum install bash-completion.noarch
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 bash-completion to pack into transaction set. bash-completion-20060301- 100% |=========================| 19 kB 00:00 ---> Package bash-completion.noarch 0:20060301-1.110asp set to be updated --> Running transaction check ... Is this ok [y/N]: y Downloading Packages: (1/1): bash-completion-20 100% |=========================| 141 kB 00:01 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: bash-completion ######################### [1/1] Installed: bash-completion.noarch 0:20060301-1.110asp Complete! |
#. /etc/bash
bash_completion bash_completion.d/ bashrc |
#. /etc/bash_completion
|
#rpm -
-b -e -F -i -q -t -U -V |
#rpm -e
Display all 885 possibilities? (y or n) |
#rpm -e m
m4 mimedefang mozilla-nss mailcap mimedefang-contrib mpage mailx mimedefang-debuginfo mpeg2dec make mingetty mrtg man minicom mtools man-pages mjpegtools mtr man-pages-ru-asp mkbootdisk mt-st mc mkinitrd mutt mdadm mktemp metacity module-init-tools |
#rpm -e mimedefang mimedefang
mimedefang mimedefang-contrib mimedefang-debuginfo |
#rpm -ev mimedefang mimedefang-contrib mimedefang-debuginfo
предупреждение: /etc/mail/sa-mimedefang.cf сохранен как /etc/mail/sa-mimedefang.cf.rpmsave предупреждение: /etc/mail/mimedefang-filter сохранен как /etc/mail/mimedefang-filter.rpmsave |
#cd /usr/src/mimedefang-2.57/
|
#ls
Changelog Makefile.in README.IRIX config.h.in md-mx-ctrl.8.in README.NONROOT configure md-mx-ctrl.c README.SECURITY configure.in mimedefang.8.in README.SOPHIE contrib mimedefang.c README.SPAMASSASSIN COPYING mimedefang-filter.5.in README.TRU64 drop_privs.c mimedefang.h README.VEXIRA embperl.c mimedefang-multiplexor.8.in redhat event.c mimedefang-multiplexor.c rm_r.c event.h mimedefang-notify.7.in SpamAssassin eventpriv.h mimedefang.pl.8.in syslog-fac.c event_tcp.c mimedefang.pl.in tests event_tcp.h mimedefang-protocol.7.in utils.c examples notifier.c watch-mimedefang.8 gen-ip-validator.pl README watch-mimedefang.in install-sh README.ANOMY |
#vi README
|
#./configure
checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for ar... ar ... File::Scan YES TROPHIE 'trophie' NO (not found) Make sure clamd runs as the defang user! ...and make sure you use clamd version 0.67 or higher. Found Mail::SpamAssassin. You may use spam_assassin_* functions Found Anomy::HTMLCleaner. You may use anomy_clean_html() Found HTML::Parser. You may use append_html_boilerplate() Note: SpamAssassin, File::Scan, HTML::Parser and Anomy::HTMLCleaner are detected at run-time, so if you install or remove any of those modules, you do not need to re-run ./configure and make a new mimedefang.pl. |
#make
gcc -g -O2 -Wall -Wstrict-prototypes -pthread -D_POSIX_PTHREAD_SEMANTICS -DEMBED_PERL -DSAFE_EMBED_PERL -DPERL_PATH=\"/usr/bin/perl\" -DMIMEDEFANG_PL=\"/usr/local/bin/mimedefang.pl\" -DRM=\"/bin/rm\" -DVERSION=\"2.57\" -DSPOOLDIR=\"/var/spool/MIMEDefang\" -DQDIR=\"/var/spool/MD-Quarantine\" -DCONFDIR=\"/etc/mail\" -c -o mimedefang.o mimedefang.c mimedefang.c: In function ‘rcptto’: mimedefang.c:970: warning: pointer targets in passing argument 2 of ‘writestr’ differ in signedness mimedefang.c:972: warning: pointer targets in passing argument 2 of ‘writestr’ differ in signedness mimedefang.c:974: warning: pointer targets in passing argument 2 of ‘writestr’ differ in signedness mimedefang.c:976: warning: pointer targets in passing argument 2 of ‘writestr’ differ in signedness mimedefang.c:978: warning: pointer targets in passing argument 2 of ‘writestr’ differ in signedness mimedefang.c: In function ‘header’: mimedefang.c:1033: warning: pointer targets in passing argument 2 of ‘writestr’ differ in signedness mimedefang.c:1035: warning: pointer targets in passing argument 2 of ‘writestr’ differ in signedness ... gcc -g -O2 -Wall -Wstrict-prototypes -D_POSIX_PTHREAD_SEMANTICS -DEMBED_PERL -DSAFE_EMBED_PERL -DPERL_PATH=\"/usr/bin/perl\" -DMIMEDEFANG_PL=\"/usr/local/bin/mimedefang.pl\" -DRM=\"/bin/rm\" -DVERSION=\"2.57\" -DSPOOLDIR=\"/var/spool/MIMEDefang\" -DQDIR=\"/var/spool/MD-Quarantine\" -DCONFDIR=\"/etc/mail\" -c -o md-mx-ctrl.o md-mx-ctrl.c md-mx-ctrl.c: In function ‘percent_decode’: md-mx-ctrl.c:71: warning: pointer targets in passing argument 1 of ‘sscanf’ differ in signedness md-mx-ctrl.c: In function ‘buildCmd’: md-mx-ctrl.c:176: warning: pointer targets in passing argument 1 of ‘percent_encode’ differ in signedness md-mx-ctrl.c:176: warning: pointer targets in passing argument 2 of ‘percent_encode’ differ in signedness md-mx-ctrl.c: In function ‘doCmd’: md-mx-ctrl.c:239: warning: pointer targets in passing argument 1 of ‘percent_decode’ differ in signedness gcc -g -O2 -Wall -Wstrict-prototypes -o md-mx-ctrl md-mx-ctrl.o -lnsl test "" != "1" && strip md-mx-ctrl |
#make install
mkdir -p /etc/mail && chmod 755 /etc/mail if test "no" = "yes" -a ! -f "/etc/mail/mimedefang-ip-key" ; then \ /usr/bin/perl ./gen-ip-validator.pl > /etc/mail/mimedefang-ip-key ;\ fi if test "defang" != "" ; then \ chown "defang" /etc/mail/mimedefang-ip-key > /dev/null 2>&1 || true; \ mkdir -p /var/spool/MIMEDefang > /dev/null 2>&1 || true; \ chown "defang" /var/spool/MIMEDefang || true; \ chmod 700 /var/spool/MIMEDefang || exit 1; \ mkdir -p /var/spool/MD-Quarantine > /dev/null 2>&1 || true; \ ... if test -f /etc/mail/sa-mimedefang.cf ; then \ /usr/bin/install -c -m 644 SpamAssassin/spamassassin.cf /etc/mail/sa-mimedefang.cf.example || exit 1; \ else \ /usr/bin/install -c -m 644 SpamAssassin/spamassassin.cf /etc/mail/sa-mimedefang.cf || exit 1; \ fi \ fi Please create the spool directory, '/var/spool/MIMEDefang', if it does not exist. Give it mode 700 or 750, and make it owned by the user and group you intend to run MIMEDefang as. Please do the same with the quarantine directory, '/var/spool/MD-Quarantine'. |
#. /etc/bash_completion
|
#tail -f /var/log/maillog
Oct 28 02:30:53 asp mimedefang[29644]: k9RNUr1N029709: Tempfailing because filter instructed us to Oct 28 02:30:53 asp sendmail[29709]: k9RNUr1N029709: Milter: data, reject=451 4.3.0 Problem running virus-scanner Oct 28 02:30:53 asp sendmail[29709]: k9RNUr1N029709: to=<root@asp.linux.nt>, delay=00:00:00, pri=30299, stat=Problem running virus-scanner Oct 28 02:30:53 asp sendmail[29703]: k9RNUrf8029703: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30029, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.0 Problem running virus-scanner Oct 28 02:37:18 asp mimedefang[29644]: MIMEDefang-2.57: mi_stop=1 Oct 28 02:37:19 asp mimedefang-multiplexor[29630]: Received SIGTERM: Stopping slaves and terminating Oct 28 02:37:19 asp mimedefang-multiplexor[29630]: Reap: slave 1 (pid 29655) exited normally with status 0 Oct 28 02:37:19 asp mimedefang-multiplexor[29630]: Slave 1 resource usage: req=0, scans=0, user=1.712, sys=0.100, nswap=0, majflt=0, minflt=5052, maxrss=0, bi=0, bo=0 Oct 28 02:37:19 asp mimedefang-multiplexor[29630]: Reap: slave 0 (pid 29631) exited normally with status 0 Oct 28 02:37:19 asp mimedefang-multiplexor[29630]: Slave 0 resource usage: req=1, scans=1, user=1.604, sys=0.104, nswap=0, majflt=0, minflt=6285, maxrss=0, bi=0, bo=0 ... Oct 28 02:45:37 asp last message repeated 8 times Oct 28 02:46:48 asp sendmail[32213]: alias database /etc/aliases rebuilt by root Oct 28 02:46:48 asp sendmail[32213]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total Oct 28 02:46:49 asp sendmail[32217]: starting daemon (8.13.7): SMTP+queueing@01:00:00 Oct 28 02:46:49 asp sendmail[32217]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Oct 28 02:46:49 asp sendmail[32217]: daemon MTA: problem creating SMTP socket Oct 28 02:46:54 asp sendmail[32217]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Oct 28 02:46:54 asp sendmail[32217]: daemon MTA: problem creating SMTP socket Oct 28 02:46:59 asp sendmail[32217]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Oct 28 02:46:59 asp sendmail[32217]: daemon MTA: problem creating SMTP socket |
#/usr/bin/mime
mimedump mimeencode mimeexplode mimepostcard mimesend |
#/usr/bin/mime -P /var/spool/MIMEDefang/mimedefang.pid -m /var/spoo
|
#/usr/bin/mime
mimedump mimeencode mimeexplode mimepostcard mimesend |
#/usr/bin/mime -P /var/spool/MIMEDefang/mimedefang.pid -m /var/spoo
|
#/usr/bin/mime
mimedump mimeencode mimeexplode mimepostcard mimesend |
#/usr/bin/mime -P /var/spool/MIMEDefang/mimedefang.pid -m /var/spoo
|
#ps ax | grep mimedef
32113 pts/8 S+ 0:00 grep mimedef |
#/usr/local/bin/
l3-agent mimedefang mimedefang.pl md-mx-ctrl mimedefang-multiplexor watch-mimedefang |
#ps ax | grep mimedef
32134 ? S 0:00 /usr/local/bin/mimedefang -P /var/spool/MIMEDefang/mimedefang.pid -m /var/spool/MIMEDefang/mimedefang-multiplex -U defang 32141 pts/8 R+ 0:00 grep mimedef |
#kill -9 32134
|
#/usr/local/bin/mimedefang-multiplexor -p /var/spool/MIMEDefang/mi
edefang-multiplexor.pid -m 2 -x 10 -U defang |
#ps ax | grep mimedef
32157 ? S 0:00 /usr/local/bin/mimedefang-multiplexor -p /var/spool/MIMEDefang/mimedefang-multiplexor.pid -m 2 -x 10 -U defang 32158 ? S 0:01 /usr/bin/perl /usr/local/bin/mimedefang.pl -server 32165 pts/8 S+ 0:00 grep mimedef |
#ps ax | grep mimedef
32157 ? S 0:00 /usr/local/bin/mimedefang-multiplexor -p /var/spool/MIMEDefang/mimedefang-multiplexor.pid -m 2 -x 10 -U defang 32158 ? S 0:01 /usr/bin/perl /usr/local/bin/mimedefang.pl -server 32171 ? S 0:01 /usr/bin/perl /usr/local/bin/mimedefang.pl -server 32175 ? S 0:00 /usr/local/bin/mimedefang-multiplexor -p /var/spool/MIMEDefang/mimedefang-multiplexor.pid -m 2 -x 10 -U defang 32176 ? S 0:01 /usr/bin/perl /usr/local/bin/mimedefang.pl -server 32182 ? S 0:01 /usr/bin/perl /usr/local/bin/mimedefang.pl -server 32184 pts/8 R+ 0:00 grep mimedef |
#/etc/init.d/clamd start
Starting Clam AntiVirus Daemon: LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days. *** LibClamAV Warning: *** Please update it IMMEDIATELY! *** LibClamAV Warning: ************************************************** [ ОК ] |
#/etc/init.d/sendmail start
Oct 28 02:30:53 asp mimedefang[29644]: k9RNUr1N029709: Tempfailing because filter instructed us to Oct 28 02:30:53 asp sendmail[29709]: k9RNUr1N029709: Milter: data, reject=451 4.3.0 Problem running virus-scanner Oct 28 02:30:53 asp sendmail[29709]: k9RNUr1N029709: to=<root@asp.linux.nt>, delay=00:00:00, pri=30299, stat=Problem running virus-scanner Oct 28 02:30:53 asp sendmail[29703]: k9RNUrf8029703: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30029, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.0 Problem running virus-scanner Oct 28 02:37:18 asp mimedefang[29644]: MIMEDefang-2.57: mi_stop=1 Oct 28 02:37:19 asp mimedefang-multiplexor[29630]: Received SIGTERM: Stopping slaves and terminating Oct 28 02:37:19 asp mimedefang-multiplexor[29630]: Reap: slave 1 (pid 29655) exited normally with status 0 Oct 28 02:37:19 asp mimedefang-multiplexor[29630]: Slave 1 resource usage: req=0, scans=0, user=1.712, sys=0.100, nswap=0, majflt=0, minflt=5052, maxrss=0, bi=0, bo=0 Oct 28 02:37:19 asp mimedefang-multiplexor[29630]: Reap: slave 0 (pid 29631) exited normally with status 0 Oct 28 02:37:19 asp mimedefang-multiplexor[29630]: Slave 0 resource usage: req=1, scans=1, user=1.604, sys=0.104, nswap=0, majflt=0, minflt=6285, maxrss=0, bi=0, bo=0 Oct 28 02:45:13 asp mimedefang[32134]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0 Oct 28 02:45:13 asp mimedefang[32134]: MXCommand: connect: No such file or directory: Is multiplexor running? Oct 28 02:45:37 asp last message repeated 8 times Oct 28 02:46:48 asp sendmail[32213]: alias database /etc/aliases rebuilt by root Oct 28 02:46:48 asp sendmail[32213]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total Oct 28 02:46:49 asp sendmail[32217]: starting daemon (8.13.7): SMTP+queueing@01:00:00 Oct 28 02:46:49 asp sendmail[32217]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Oct 28 02:46:49 asp sendmail[32217]: daemon MTA: problem creating SMTP socket Запускается sendmail: WARNING: Xmimedefang: local socket name /var/spool/MIMEDefang/mimedefang.sock missing [ ОК ] |
#/etc/init.d/sendmail stop
Останавливается sm-client: [ ОК ] Останавливается sendmail: [ ОК ] |
#tail -f /var/log/maillog
Oct 28 02:46:59 asp sendmail[32217]: daemon MTA: problem creating SMTP socket Oct 28 02:47:04 asp sendmail[32217]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Oct 28 02:47:04 asp sendmail[32217]: daemon MTA: problem creating SMTP socket Oct 28 02:47:09 asp sendmail[32217]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Oct 28 02:47:09 asp sendmail[32217]: daemon MTA: problem creating SMTP socket Oct 28 03:03:20 asp mimedefang-multiplexor[322]: started; minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, busyTimeout=600, clientTimeout=10 Oct 28 03:03:20 asp mimedefang-multiplexor[322]: Starting slave 0 (pid 323) (1 running): Bringing slaves up to minSlaves (2) Oct 28 03:03:20 asp mimedefang[336]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0 Oct 28 03:03:20 asp mimedefang[336]: Multiplexor alive - entering main loop Oct 28 03:03:23 asp mimedefang-multiplexor[322]: Starting slave 1 (pid 347) (2 running): Bringing slaves up to minSlaves (2) Oct 28 03:03:51 asp sendmail[375]: alias database /etc/aliases rebuilt by root Oct 28 03:03:51 asp sendmail[375]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total Oct 28 03:03:51 asp sendmail[379]: starting daemon (8.13.7): SMTP+queueing@01:00:00 Oct 28 03:03:51 asp sm-msp-queue[386]: starting daemon (8.13.7): queueing@01:00:00 Oct 28 03:03:51 asp sendmail[394]: k9S03pRE000394: from=<root@asp.linux.nt>, size=299, class=0, nrcpts=1, msgid=<200610272330.k9RNUrf8029703@asp.linux.nt>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Oct 28 03:03:51 asp mimedefang.pl[323]: Problem running virus scanner: code=226, category=swerr, action=tempfail Oct 28 03:03:51 asp mimedefang.pl[323]: filter: k9S03pRE000394: tempfail=1 Oct 28 03:03:51 asp mimedefang[336]: k9S03pRE000394: Tempfailing because filter instructed us to Oct 28 03:03:51 asp sendmail[394]: k9S03pRE000394: Milter: data, reject=451 4.3.0 Problem running virus-scanner Oct 28 03:03:51 asp sendmail[394]: k9S03pRE000394: to=<root@asp.linux.nt>, delay=00:00:00, pri=30299, stat=Problem running virus-scanner Oct 28 03:03:51 asp sm-msp-queue[387]: k9RNUrf8029703: to=root, ctladdr=root (0/0), delay=00:32:58, xdelay=00:00:00, mailer=relay, pri=120029, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.0 Problem running virus-scanner |
Время первой команды журнала | 00:08:35 2006-10-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 02:47:14 2006-10-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 9.90 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 6.93 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.75 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.23 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008