/l3/users/clint/MIMEDefrag-installation/clint.chubba.net/root :1 :2 :3 :4 :5 |
|
#netstat -lnp | grep clamd
unix 2 [ ACC ] STREAM LISTENING 5507 2654/clamd /var/run/clamav/clamd.ctl |
#netstat -lnp | grep mimed
unix 2 [ ACC ] STREAM LISTENING 5718 2750/mimedefang /var/spool/MIMEDefang/mimedefang.sock unix 2 [ ACC ] STREAM LISTENING 5597 2735/mimedefang-mul /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#mail user -s test
iortu^[. . Cc: Can't send mail: sendmail process failed with error code 67 |
#tail -f /var/log/mail.log
Nov 1 22:07:52 clint mimedefang-multiplexor[2735]: Starting slave 0 (pid 2867) (1 running): Bringing slaves up to minSlaves (2) Nov 1 22:07:52 clint mimedefang[2750]: Multiplexor alive - entering main loop Nov 1 22:07:54 clint sm-mta[2887]: kA1M7shw002887: from=<>, size=17030, class=0, nrcpts=1, msgid=<200610301824.k9UIK1YJ003537@clint.chubba.net>, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 1 22:07:55 clint mimedefang-multiplexor[2735]: Starting slave 1 (pid 2913) (2 running): Bringing slaves up to minSlaves (2) Nov 1 22:09:04 clint sendmail[3014]: kA1M94W2003014: from=root, size=32, class=0, nrcpts=1, msgid=<200611012209.kA1M94W2003014@clint.chubba.net>, relay=root@localhost Nov 1 22:09:04 clint sm-mta[3017]: kA1M94dK003017: <user@clint.chubba.net>... User unknown Nov 1 22:09:04 clint sendmail[3014]: kA1M94W2003014: to=user, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30032, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown Nov 1 22:09:04 clint sm-mta[3017]: kA1M94dK003017: from=<root@clint.chubba.net>, size=32, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 1 22:09:04 clint sendmail[3014]: kA1M94W2003014: kA1M94W3003014: DSN: User unknown Nov 1 22:09:04 clint sm-mta[3017]: kA1M94dM003017: from=<>, size=1896, class=0, nrcpts=1, msgid=<200611012209.kA1M94W3003014@clint.chubba.net>, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 1 22:10:03 clint sm-mta[3198]: kA1MA2Tb003198: from=<kaplan@ondagrupera.com>, size=1112, class=0, nrcpts=1, msgid=<1162298741.2071001152@mx13.mail.ru>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Nov 1 22:10:03 clint mimedefang-multiplexor[2735]: Starting slave 2 (pid 3200) (3 running): About to perform scan |
#/etc/init.d/mimedefang stop
Shutting down mimedefang: [ OK ] Shutting down mimedefang-multiplexor: [ OK ] |
#tail -f /var/log/mail.log
Nov 1 22:10:24 clint sm-mta[2887]: kA1M7si0002887: to=<sergey.cherepenin@tex.kiev.ua>, delay=00:00:00, pri=45224, stat=Please try again later Nov 1 22:10:24 clint sm-msp-queue[2876]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+07:51:03, xdelay=00:00:00, mailer=relay, pri=7965064, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 1 22:10:24 clint sm-mta[3198]: kA1MA2Tf003198: from=<sergey.cherepenin+caf_=clintx=ukr.net@gmail.com>, size=2045, class=0, nrcpts=1, msgid=<20061031202902.GA3941@serzh.linux.nt>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Nov 1 22:10:24 clint mimedefang[3199]: MXCommand: connect: No such file or directory: Is multiplexor running? Nov 1 22:10:24 clint sm-mta[3198]: kA1MA2Tf003198: Milter: data, reject=451 4.3.2 Please try again later Nov 1 22:10:24 clint sm-mta[3198]: kA1MA2Tf003198: to=<clint@localhost>, delay=00:00:00, pri=32045, stat=Please try again later Nov 1 22:10:24 clint sm-mta[3198]: kA1MA2Th003198: from=<sergey.cherepenin+caf_=clintx=ukr.net@gmail.com>, size=2316, class=0, nrcpts=1, msgid=<20061101080214.GY28753@chub.in>, bodytype=8BITMIME, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Nov 1 22:10:24 clint mimedefang[3199]: MXCommand: connect: No such file or directory: Is multiplexor running? Nov 1 22:10:24 clint sm-mta[3198]: kA1MA2Th003198: Milter: data, reject=451 4.3.2 Please try again later Nov 1 22:10:24 clint sm-mta[3198]: kA1MA2Th003198: to=<clint@localhost>, delay=00:00:00, pri=32316, stat=Please try again later Nov 1 22:10:27 clint mimedefang[2750]: MIMEDefang-2.57: mi_stop=1 |
#vi /etc/mail/sendmail.mc
88,89c88,90 < MAIL_FILTER(`mimedefang', `S=local:/var/spool/MIMEDefang/mimedefang.sock,F=T, T=C:15m;S:4m;R:4m;E:10m')dnl < define(`confINPUT_MAIL_FILTERS', `mimedefang')dnl --- > INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T, T=S:1m;R:1m;E:5m') > dnl MAIL_FILTER(`mimedefang', `S=local:/var/spool/MIMEDefang/mimedefang.sock,F=T, T=C:15m;S:4m;R:4m;E:10m')dnl > dnl define(`confINPUT_MAIL_FILTERS', `mimedefang')dnl |
#cd /etc/mail/
|
#make
Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#/etc/init.d/sendmail restart
Restarting Transport Agent: sendmailWARNING: Xmimedefang: local socket name /var/spool/MIMEDefang/mimedefang.sock missing . |
#netstat -lnp | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 3448/sendmail: MTA: |
#tail -25 /var/log/mail.log
Nov 1 22:10:24 clint sm-mta[3198]: kA1MA2Td003198: from=<sergey.cherepenin+caf_=clintx=ukr.net@gmail.com>, size=2046, class=0, nrcpts=1, msgid=<20061031221839.GA3950@serzh.linux.nt>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Nov 1 22:10:24 clint mimedefang[3199]: MXCommand: connect: No such file or directory: Is multiplexor running? Nov 1 22:10:24 clint sm-mta[3198]: kA1MA2Td003198: Milter: data, reject=451 4.3.2 Please try again later Nov 1 22:10:24 clint sm-mta[3198]: kA1MA2Td003198: to=<clint@localhost>, delay=00:00:00, pri=32046, stat=Please try again later Nov 1 22:10:24 clint sm-mta[2887]: kA1M7si0002887: from=<root@clint.chubba.net>, size=15224, class=0, nrcpts=1, msgid=<20061030141921.GA2970@clint.chubba.net>, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 1 22:10:24 clint mimedefang[2901]: MXCommand: connect: No such file or directory: Is multiplexor running? Nov 1 22:10:24 clint sm-mta[2887]: kA1M7si0002887: Milter: data, reject=451 4.3.2 Please try again later Nov 1 22:10:24 clint sm-mta[2887]: kA1M7si0002887: to=<sergey.cherepenin@tex.kiev.ua>, delay=00:00:00, pri=45224, stat=Please try again later Nov 1 22:10:24 clint sm-msp-queue[2876]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+07:51:03, xdelay=00:00:00, mailer=relay, pri=7965064, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 1 22:10:24 clint sm-mta[3198]: kA1MA2Tf003198: from=<sergey.cherepenin+caf_=clintx=ukr.net@gmail.com>, size=2045, class=0, nrcpts=1, msgid=<20061031202902.GA3941@serzh.linux.nt>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] ... Nov 1 22:10:24 clint sm-mta[3198]: kA1MA2Th003198: Milter: data, reject=451 4.3.2 Please try again later Nov 1 22:10:24 clint sm-mta[3198]: kA1MA2Th003198: to=<clint@localhost>, delay=00:00:00, pri=32316, stat=Please try again later Nov 1 22:10:27 clint mimedefang[2750]: MIMEDefang-2.57: mi_stop=1 Nov 1 22:13:12 clint sm-mta[3448]: starting daemon (8.13.8): SMTP+queueing@00:10:00 Nov 1 22:13:14 clint sm-mta[3458]: kA1MDEA5003458: Milter (mimedefang): local socket name /var/spool/MIMEDefang/mimedefang.sock unsafe Nov 1 22:13:14 clint sm-mta[3458]: kA1MDEA5003458: Milter (mimedefang): to error state Nov 1 22:13:14 clint sm-mta[3458]: kA1MDEA5003458: Milter: initialization failed, temp failing commands Nov 1 22:13:14 clint sm-msp-queue[3457]: kA1M94W3003014: to=root, delay=00:04:10, xdelay=00:00:00, mailer=relay, pri=121056, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 1 22:13:14 clint sm-msp-queue[3457]: k9UIK1YJ003537: to=root, delay=2+03:49:13, xdelay=00:00:00, mailer=relay, pri=6976270, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 1 22:13:14 clint sm-msp-queue[3457]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+07:53:53, xdelay=00:00:00, mailer=relay, pri=8055064, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later |
#date
Срд Ноя 1 22:13:46 UTC 2006 |
#vi /etc/clamav/clamd.conf
|
#mv /etc/clamav/clamd.conf /etc/clamav/clamd.conf.orig
|
#vi /etc/clamav/clamd.conf
|
#/etc/init.d/clamav-
clamav-daemon clamav-freshclam |
#/etc/init.d/clamav-daemon restart
Stopping ClamAV daemon: clamd. Starting ClamAV daemon: clamdLibClamAV debug: Setting /tmp as global temporary directory LibClamAV debug: Loading databases from /var/lib/clamav LibClamAV debug: Loading /var/lib/clamav/main.cvd LibClamAV debug: in cli_cvdload() LibClamAV debug: MD5(.tar.gz) = c6c0e5c39b28fdbc7f2e23ce1c5166fc LibClamAV debug: Decoded signature: c6c0e5c39b28fdbc7f2e23ce1c5166fc LibClamAV debug: Digital signature is correct. LibClamAV debug: in cli_untgz() LibClamAV debug: Unpacking /tmp/clamav-30c8a9bd33eab5ea/COPYING ... LibClamAV debug: Unpacking /tmp/clamav-5b92cc6a4af59938/daily.zmd LibClamAV debug: Unpacking /tmp/clamav-5b92cc6a4af59938/daily.fp LibClamAV debug: Unpacking /tmp/clamav-5b92cc6a4af59938/daily.info LibClamAV debug: Loading databases from /tmp/clamav-5b92cc6a4af59938 LibClamAV debug: Loading /tmp/clamav-5b92cc6a4af59938/daily.db LibClamAV debug: Loading /tmp/clamav-5b92cc6a4af59938/daily.hdb LibClamAV debug: Loading /tmp/clamav-5b92cc6a4af59938/daily.ndb LibClamAV debug: Loading /tmp/clamav-5b92cc6a4af59938/daily.zmd LibClamAV debug: Loading /tmp/clamav-5b92cc6a4af59938/daily.fp . |
#netstat -lnp | grep clam
unix 2 [ ACC ] STREAM LISTENING 7489 3559/clamd /var/spool/MIMEDefang/clamd.sock |
#grep sendmail.mc mime
grep: mime: No such file or directory |
#grep mime
INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T, T=S:1m;R:1m;E:5m') dnl MAIL_FILTER(`mimedefang', `S=local:/var/spool/MIMEDefang/mimedefang.sock,F=T, T=C:15m;S:4m;R:4m;E:10m')dnl dnl define(`confINPUT_MAIL_FILTERS', `mimedefang')dnl |
#/etc/init.d/mimedefang start
Starting mimedefang-multiplexor: [ OK ] Starting mimedefang: [ OK ] |
#netstat -lnp | grep mime
unix 2 [ ACC ] STREAM LISTENING 7627 3622/mimedefang-mul /var/spool/MIMEDefang/mimedefang-multiplexor.sock unix 2 [ ACC ] STREAM LISTENING 7668 3637/mimedefang /var/spool/MIMEDefang/mimedefang.sock |
#vi /etc/clamav/clamd.conf
1a2 > LocalSocket /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#/etc/init.d/mimedefang stop
Shutting down mimedefang: [ OK ] Shutting down mimedefang-multiplexor: [ OK ] |
#netstat -lnp | grep mime
unix 2 [ ACC ] STREAM LISTENING 7668 3637/mimedefang /var/spool/MIMEDefang/mimedefang.sock |
#/etc/init.d/sendmail stop
Stopping Mail Transport Agent: sendmail. |
#netstat -lnp | grep mime
|
#/etc/init.d/clamav-daemon restart
Stopping ClamAV daemon: clamd. Starting ClamAV daemon: clamdLibClamAV debug: Setting /tmp as global temporary directory LibClamAV debug: Loading databases from /var/lib/clamav LibClamAV debug: Loading /var/lib/clamav/main.cvd LibClamAV debug: in cli_cvdload() LibClamAV debug: MD5(.tar.gz) = c6c0e5c39b28fdbc7f2e23ce1c5166fc LibClamAV debug: Decoded signature: c6c0e5c39b28fdbc7f2e23ce1c5166fc LibClamAV debug: Digital signature is correct. LibClamAV debug: in cli_untgz() LibClamAV debug: Unpacking /tmp/clamav-932d5909c4c2e7b3/COPYING ... LibClamAV debug: Unpacking /tmp/clamav-296615885c32307b/daily.zmd LibClamAV debug: Unpacking /tmp/clamav-296615885c32307b/daily.fp LibClamAV debug: Unpacking /tmp/clamav-296615885c32307b/daily.info LibClamAV debug: Loading databases from /tmp/clamav-296615885c32307b LibClamAV debug: Loading /tmp/clamav-296615885c32307b/daily.db LibClamAV debug: Loading /tmp/clamav-296615885c32307b/daily.hdb LibClamAV debug: Loading /tmp/clamav-296615885c32307b/daily.ndb LibClamAV debug: Loading /tmp/clamav-296615885c32307b/daily.zmd LibClamAV debug: Loading /tmp/clamav-296615885c32307b/daily.fp . |
#netstat -lnp | grep clam
unix 2 [ ACC ] STREAM LISTENING 7489 3559/clamd /var/spool/MIMEDefang/clamd.sock unix 2 [ ACC ] STREAM LISTENING 7985 3773/clamd /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#/etc/init.d/clamav-daemon restart
|
#vi /etc/clamav/clamd.conf
10d9 < LocalSocket /var/spool/MIMEDefang/clamd.sock |
#/etc/init.d/clamav-daemon restart
Stopping ClamAV daemon: clamd. Starting ClamAV daemon: clamdLibClamAV debug: Setting /tmp as global temporary directory LibClamAV debug: Loading databases from /var/lib/clamav LibClamAV debug: Loading /var/lib/clamav/main.cvd LibClamAV debug: in cli_cvdload() LibClamAV debug: MD5(.tar.gz) = c6c0e5c39b28fdbc7f2e23ce1c5166fc LibClamAV debug: Decoded signature: c6c0e5c39b28fdbc7f2e23ce1c5166fc LibClamAV debug: Digital signature is correct. LibClamAV debug: in cli_untgz() LibClamAV debug: Unpacking /tmp/clamav-495a1b403e533ce2/COPYING ... LibClamAV debug: Unpacking /tmp/clamav-199385e9c7c0dd8c/daily.zmd LibClamAV debug: Unpacking /tmp/clamav-199385e9c7c0dd8c/daily.fp LibClamAV debug: Unpacking /tmp/clamav-199385e9c7c0dd8c/daily.info LibClamAV debug: Loading databases from /tmp/clamav-199385e9c7c0dd8c LibClamAV debug: Loading /tmp/clamav-199385e9c7c0dd8c/daily.db LibClamAV debug: Loading /tmp/clamav-199385e9c7c0dd8c/daily.hdb LibClamAV debug: Loading /tmp/clamav-199385e9c7c0dd8c/daily.ndb LibClamAV debug: Loading /tmp/clamav-199385e9c7c0dd8c/daily.zmd LibClamAV debug: Loading /tmp/clamav-199385e9c7c0dd8c/daily.fp . |
#netstat -lnp | grep clam
unix 2 [ ACC ] STREAM LISTENING 7489 3559/clamd /var/spool/MIMEDefang/clamd.sock unix 2 [ ACC ] STREAM LISTENING 7985 3773/clamd /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#vi /etc/clamav/clamd.conf
|
#kill -9 7489 7985
bash: kill: (7489) - No such process bash: kill: (7985) - No such process |
#netstat -lnp | grep clam
unix 2 [ ACC ] STREAM LISTENING 7489 3559/clamd /var/spool/MIMEDefang/clamd.sock unix 2 [ ACC ] STREAM LISTENING 7985 3773/clamd /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#rm /var/spool/
rm: невозможно удалить `/var/spool/': Is a directory |
#rm /var/spool/MIMEDefang/clamd.sock
|
#rm /var/spool/MIMEDefang/mimedefang-multiplexor.sock
|
#netstat -lnp | grep clam
unix 2 [ ACC ] STREAM LISTENING 7489 3559/clamd /var/spool/MIMEDefang/clamd.sock unix 2 [ ACC ] STREAM LISTENING 7985 3773/clamd /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#/etc/init.d/networking restart
Reconfiguring network interfaces...addr=192.168.16.200, name=clint.chubba.net Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains # Optional file... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** Mail Transport Agent: sendmail is not running ifup: interface lo already configured done. |
#netstat -lnp | grep clam
unix 2 [ ACC ] STREAM LISTENING 7489 3559/clamd /var/spool/MIMEDefang/clamd.sock unix 2 [ ACC ] STREAM LISTENING 7985 3773/clamd /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#/etc/init.d/mimedefang stop
Shutting down mimedefang: [FAILED] Shutting down mimedefang-multiplexor: [FAILED] |
#netstat -lnp | grep clam
unix 2 [ ACC ] STREAM LISTENING 7489 3559/clamd /var/spool/MIMEDefang/clamd.sock unix 2 [ ACC ] STREAM LISTENING 7985 3773/clamd /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#/etc/init.d/clamav-daemon start
Starting ClamAV daemon: clamdLibClamAV debug: Setting /tmp as global temporary directory LibClamAV debug: Loading databases from /var/lib/clamav LibClamAV debug: Loading /var/lib/clamav/main.cvd LibClamAV debug: in cli_cvdload() LibClamAV debug: MD5(.tar.gz) = c6c0e5c39b28fdbc7f2e23ce1c5166fc LibClamAV debug: Decoded signature: c6c0e5c39b28fdbc7f2e23ce1c5166fc LibClamAV debug: Digital signature is correct. LibClamAV debug: in cli_untgz() LibClamAV debug: Unpacking /tmp/clamav-a28799e7c8b8a273/COPYING LibClamAV debug: Unpacking /tmp/clamav-a28799e7c8b8a273/main.db ... LibClamAV debug: Unpacking /tmp/clamav-09661573b5f1e89c/daily.zmd LibClamAV debug: Unpacking /tmp/clamav-09661573b5f1e89c/daily.fp LibClamAV debug: Unpacking /tmp/clamav-09661573b5f1e89c/daily.info LibClamAV debug: Loading databases from /tmp/clamav-09661573b5f1e89c LibClamAV debug: Loading /tmp/clamav-09661573b5f1e89c/daily.db LibClamAV debug: Loading /tmp/clamav-09661573b5f1e89c/daily.hdb LibClamAV debug: Loading /tmp/clamav-09661573b5f1e89c/daily.ndb LibClamAV debug: Loading /tmp/clamav-09661573b5f1e89c/daily.zmd LibClamAV debug: Loading /tmp/clamav-09661573b5f1e89c/daily.fp . |
#netstat -lnp | grep clam
unix 2 [ ACC ] STREAM LISTENING 7489 3559/clamd /var/spool/MIMEDefang/clamd.sock unix 2 [ ACC ] STREAM LISTENING 8996 4180/clamd /var/spool/MIMEDefang/mimedefang-multiplexor.sock unix 2 [ ACC ] STREAM LISTENING 7985 3773/clamd /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#lsof /var/spool/MIMEDefang/mimedefang-multiplexor.sock
bash: lsof: command not found |
#fuser /var/spool/MIMEDefang/mimedefang-multiplexor.sock
/var/spool/MIMEDefang/mimedefang-multiplexor.sock: 3773 3843 |
#kill -9 3773 3843
|
#netstat -lnp | grep clam
unix 2 [ ACC ] STREAM LISTENING 7489 3559/clamd /var/spool/MIMEDefang/clamd.sock unix 2 [ ACC ] STREAM LISTENING 8996 4180/clamd /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#fuser /var/spool/MIMEDefang/clamd.sock
Cannot stat /var/spool/MIMEDefang/clamd.sock: No such file or directory Cannot stat /var/spool/MIMEDefang/clamd.sock: No such file or directory |
#kill -9 7489 3559
bash: kill: (7489) - No such process |
#netstat -lnp | grep clam
unix 2 [ ACC ] STREAM LISTENING 8996 4180/clamd /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#kill -9 4180
|
#netstat -lnp | grep clam
|
#/etc/init.d/clamav-daemon start
Starting ClamAV daemon: clamdLibClamAV debug: Setting /tmp as global temporary directory LibClamAV debug: Loading databases from /var/lib/clamav LibClamAV debug: Loading /var/lib/clamav/main.cvd LibClamAV debug: in cli_cvdload() LibClamAV debug: MD5(.tar.gz) = c6c0e5c39b28fdbc7f2e23ce1c5166fc LibClamAV debug: Decoded signature: c6c0e5c39b28fdbc7f2e23ce1c5166fc LibClamAV debug: Digital signature is correct. LibClamAV debug: in cli_untgz() LibClamAV debug: Unpacking /tmp/clamav-b5a3af625a5c2c6a/COPYING LibClamAV debug: Unpacking /tmp/clamav-b5a3af625a5c2c6a/main.db ... LibClamAV debug: Unpacking /tmp/clamav-640302b1a43dbd7c/daily.zmd LibClamAV debug: Unpacking /tmp/clamav-640302b1a43dbd7c/daily.fp LibClamAV debug: Unpacking /tmp/clamav-640302b1a43dbd7c/daily.info LibClamAV debug: Loading databases from /tmp/clamav-640302b1a43dbd7c LibClamAV debug: Loading /tmp/clamav-640302b1a43dbd7c/daily.db LibClamAV debug: Loading /tmp/clamav-640302b1a43dbd7c/daily.hdb LibClamAV debug: Loading /tmp/clamav-640302b1a43dbd7c/daily.ndb LibClamAV debug: Loading /tmp/clamav-640302b1a43dbd7c/daily.zmd LibClamAV debug: Loading /tmp/clamav-640302b1a43dbd7c/daily.fp . |
#netstat -lnp | grep clam
unix 2 [ ACC ] STREAM LISTENING 9378 4263/clamd /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#/etc/init.d/mimedefang start
Starting mimedefang-multiplexor: [ OK ] Starting mimedefang: [ OK ] |
#netstat -lnp | grep clam
unix 2 [ ACC ] STREAM LISTENING 9378 4263/clamd /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#netstat -lnp | grep mimedefang
unix 2 [ ACC ] STREAM LISTENING 9455 4308/mimedefang-mul /var/spool/MIMEDefang/mimedefang-multiplexor.sock unix 2 [ ACC ] STREAM LISTENING 9496 4323/mimedefang /var/spool/MIMEDefang/mimedefang.sock unix 2 [ ACC ] STREAM LISTENING 9378 4263/clamd /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#tail /var/log/mail.log
Nov 1 22:17:44 clint mimedefang[3637]: MIMEDefang-2.57: mi_stop=1 Nov 1 22:20:01 clint sm-msp-queue[3935]: kA1M94W3003014: to=root, delay=00:10:57, xdelay=00:00:00, mailer=relay, pri=211056, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Nov 1 22:20:01 clint sm-msp-queue[3935]: k9UIK1YJ003537: to=root, delay=2+03:56:00, xdelay=00:00:00, mailer=relay, pri=7066270, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Nov 1 22:20:01 clint sm-msp-queue[3935]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+08:00:40, xdelay=00:00:00, mailer=relay, pri=8145064, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Nov 1 22:22:33 clint mimedefang-multiplexor[4308]: started; minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, busyTimeout=600, clientTimeout=10 Nov 1 22:22:33 clint mimedefang[4323]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0 Nov 1 22:22:33 clint mimedefang-multiplexor[4308]: Initialized embedded Perl interpreter Nov 1 22:22:33 clint mimedefang-multiplexor[4308]: Starting slave 0 (pid 4329) (1 running): Bringing slaves up to minSlaves (2) Nov 1 22:22:33 clint mimedefang[4323]: Multiplexor alive - entering main loop Nov 1 22:22:36 clint mimedefang-multiplexor[4308]: Starting slave 1 (pid 4339) (2 running): Bringing slaves up to minSlaves (2) |
#/etc/init.d/send
sendmail sendsigs |
#/etc/init.d/sendmail start
Starting Mail Transport Agent: sendmail. |
#tail /var/log/mail.log
Nov 1 22:20:01 clint sm-msp-queue[3935]: k9UIK1YJ003537: to=root, delay=2+03:56:00, xdelay=00:00:00, mailer=relay, pri=7066270, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Nov 1 22:20:01 clint sm-msp-queue[3935]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+08:00:40, xdelay=00:00:00, mailer=relay, pri=8145064, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Nov 1 22:22:33 clint mimedefang-multiplexor[4308]: started; minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, busyTimeout=600, clientTimeout=10 Nov 1 22:22:33 clint mimedefang[4323]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0 Nov 1 22:22:33 clint mimedefang-multiplexor[4308]: Initialized embedded Perl interpreter Nov 1 22:22:33 clint mimedefang-multiplexor[4308]: Starting slave 0 (pid 4329) (1 running): Bringing slaves up to minSlaves (2) Nov 1 22:22:33 clint mimedefang[4323]: Multiplexor alive - entering main loop Nov 1 22:22:36 clint mimedefang-multiplexor[4308]: Starting slave 1 (pid 4339) (2 running): Bringing slaves up to minSlaves (2) Nov 1 22:23:22 clint sm-mta[4448]: starting daemon (8.13.8): SMTP+queueing@00:10:00 Nov 1 22:23:24 clint sm-mta[4458]: kA1MNOU3004458: from=<>, size=1896, class=0, nrcpts=1, msgid=<200611012209.kA1M94W3003014@clint.chubba.net>, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] |
#tail /var/log/mail.log
Nov 1 22:20:01 clint sm-msp-queue[3935]: k9UIK1YJ003537: to=root, delay=2+03:56:00, xdelay=00:00:00, mailer=relay, pri=7066270, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Nov 1 22:20:01 clint sm-msp-queue[3935]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+08:00:40, xdelay=00:00:00, mailer=relay, pri=8145064, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Nov 1 22:22:33 clint mimedefang-multiplexor[4308]: started; minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, busyTimeout=600, clientTimeout=10 Nov 1 22:22:33 clint mimedefang[4323]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0 Nov 1 22:22:33 clint mimedefang-multiplexor[4308]: Initialized embedded Perl interpreter Nov 1 22:22:33 clint mimedefang-multiplexor[4308]: Starting slave 0 (pid 4329) (1 running): Bringing slaves up to minSlaves (2) Nov 1 22:22:33 clint mimedefang[4323]: Multiplexor alive - entering main loop Nov 1 22:22:36 clint mimedefang-multiplexor[4308]: Starting slave 1 (pid 4339) (2 running): Bringing slaves up to minSlaves (2) Nov 1 22:23:22 clint sm-mta[4448]: starting daemon (8.13.8): SMTP+queueing@00:10:00 Nov 1 22:23:24 clint sm-mta[4458]: kA1MNOU3004458: from=<>, size=1896, class=0, nrcpts=1, msgid=<200611012209.kA1M94W3003014@clint.chubba.net>, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] |
#tail /var/log/mail.log
Nov 1 22:20:01 clint sm-msp-queue[3935]: k9UIK1YJ003537: to=root, delay=2+03:56:00, xdelay=00:00:00, mailer=relay, pri=7066270, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Nov 1 22:20:01 clint sm-msp-queue[3935]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+08:00:40, xdelay=00:00:00, mailer=relay, pri=8145064, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Nov 1 22:22:33 clint mimedefang-multiplexor[4308]: started; minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, busyTimeout=600, clientTimeout=10 Nov 1 22:22:33 clint mimedefang[4323]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0 Nov 1 22:22:33 clint mimedefang-multiplexor[4308]: Initialized embedded Perl interpreter Nov 1 22:22:33 clint mimedefang-multiplexor[4308]: Starting slave 0 (pid 4329) (1 running): Bringing slaves up to minSlaves (2) Nov 1 22:22:33 clint mimedefang[4323]: Multiplexor alive - entering main loop Nov 1 22:22:36 clint mimedefang-multiplexor[4308]: Starting slave 1 (pid 4339) (2 running): Bringing slaves up to minSlaves (2) Nov 1 22:23:22 clint sm-mta[4448]: starting daemon (8.13.8): SMTP+queueing@00:10:00 Nov 1 22:23:24 clint sm-mta[4458]: kA1MNOU3004458: from=<>, size=1896, class=0, nrcpts=1, msgid=<200611012209.kA1M94W3003014@clint.chubba.net>, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] |
#tail /var/log/mail.log
Nov 1 22:20:01 clint sm-msp-queue[3935]: k9UIK1YJ003537: to=root, delay=2+03:56:00, xdelay=00:00:00, mailer=relay, pri=7066270, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Nov 1 22:20:01 clint sm-msp-queue[3935]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+08:00:40, xdelay=00:00:00, mailer=relay, pri=8145064, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Nov 1 22:22:33 clint mimedefang-multiplexor[4308]: started; minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, busyTimeout=600, clientTimeout=10 Nov 1 22:22:33 clint mimedefang[4323]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0 Nov 1 22:22:33 clint mimedefang-multiplexor[4308]: Initialized embedded Perl interpreter Nov 1 22:22:33 clint mimedefang-multiplexor[4308]: Starting slave 0 (pid 4329) (1 running): Bringing slaves up to minSlaves (2) Nov 1 22:22:33 clint mimedefang[4323]: Multiplexor alive - entering main loop Nov 1 22:22:36 clint mimedefang-multiplexor[4308]: Starting slave 1 (pid 4339) (2 running): Bringing slaves up to minSlaves (2) Nov 1 22:23:22 clint sm-mta[4448]: starting daemon (8.13.8): SMTP+queueing@00:10:00 Nov 1 22:23:24 clint sm-mta[4458]: kA1MNOU3004458: from=<>, size=1896, class=0, nrcpts=1, msgid=<200611012209.kA1M94W3003014@clint.chubba.net>, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] |
#mail user -s test
102 dnl # Masquerading options -- ÐСТÐÐÐÐ -- 101,5 88% 103 FEATURE(`always_add_domain')dnl -- ÐСТÐÐÐÐ -- 102,5 89% 104 MASQUERADE_AS(`ukr.net')dnl -- ÐСТÐÐÐÐ -- 103,5 90% 105 FEATURE(`allmasquerade')dnl 106 FEATURE(`masquerade_envelope')dnl 104,5 91% 107 -- Ðdml FEATURE(`always_add_domain')dnl 106,5 93% dnl dateUERADE_AS(`ukr.net')dnl 108 dnl FEATURE(`allmasquerade')dnl .- Ðdnl FEATURE(`masquerade_envelope')dnl 107,1 94% 109 MAILER_DEFINITIONS Cc: 110 MAILER(`local')dnl 108,1 95% Can't send mail: sendmail process failed with error code 67 -- ÐСТÐÐÐÐ -- 103,5 97% |
#vim sendmail.mc
68c68 < define(`SMATR_HOST',`mail.voliacable.com')dnl --- > dnl define(`SMATR_HOST',`mail.voliacable.com')dnl 103,106c103,106 < FEATURE(`always_add_domain')dnl < MASQUERADE_AS(`ukr.net')dnl < FEATURE(`allmasquerade')dnl < FEATURE(`masquerade_envelope')dnl --- > dnl FEATURE(`always_add_domain')dnl > dnl MASQUERADE_AS(`ukr.net')dnl > dnl FEATURE(`allmasquerade')dnl > dnl FEATURE(`masquerade_envelope')dnl |
#make
Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#su - user
Неизвестный id: user |
#tail /var/log/mail.log
Nov 1 22:24:24 clint sm-msp-queue[4457]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+08:05:03, xdelay=00:00:00, mailer=relay, pri=8235064, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 1 22:24:24 clint sm-mta[4458]: kA1MNOU6004458: from=<root@clint.chubba.net>, size=15246, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 1 22:24:51 clint sm-mta[4498]: kA1MNpct004498: Milter (mimedefang): timeout before data read Nov 1 22:24:51 clint sm-mta[4498]: kA1MNpct004498: Milter (mimedefang): to error state Nov 1 22:24:51 clint sm-mta[4498]: kA1MNpct004498: Milter: data, reject=451 4.3.2 Please try again later Nov 1 22:24:51 clint sm-mta[4498]: kA1MNpct004498: to=<root@clint.chubba.net>, delay=00:01:00, pri=31893, stat=Please try again later Nov 1 22:24:51 clint sendmail[4495]: kA1MNpha004495: to=root, delay=00:01:00, xdelay=00:01:00, mailer=relay, pri=31053, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 1 22:25:24 clint sm-mta[4698]: starting daemon (8.13.8): SMTP+queueing@00:10:00 Nov 1 22:25:26 clint sm-mta[4707]: kA1MPQrU004707: from=<>, size=1893, class=0, nrcpts=1, msgid=<200611012223.kA1MNpha004495@clint.chubba.net>, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 1 22:25:26 clint mimedefang-multiplexor[4308]: Starting slave 2 (pid 4719) (3 running): About to perform scan |
#tail /var/log/mail.log
Nov 1 22:24:24 clint sm-msp-queue[4457]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+08:05:03, xdelay=00:00:00, mailer=relay, pri=8235064, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 1 22:24:24 clint sm-mta[4458]: kA1MNOU6004458: from=<root@clint.chubba.net>, size=15246, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 1 22:24:51 clint sm-mta[4498]: kA1MNpct004498: Milter (mimedefang): timeout before data read Nov 1 22:24:51 clint sm-mta[4498]: kA1MNpct004498: Milter (mimedefang): to error state Nov 1 22:24:51 clint sm-mta[4498]: kA1MNpct004498: Milter: data, reject=451 4.3.2 Please try again later Nov 1 22:24:51 clint sm-mta[4498]: kA1MNpct004498: to=<root@clint.chubba.net>, delay=00:01:00, pri=31893, stat=Please try again later Nov 1 22:24:51 clint sendmail[4495]: kA1MNpha004495: to=root, delay=00:01:00, xdelay=00:01:00, mailer=relay, pri=31053, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 1 22:25:24 clint sm-mta[4698]: starting daemon (8.13.8): SMTP+queueing@00:10:00 Nov 1 22:25:26 clint sm-mta[4707]: kA1MPQrU004707: from=<>, size=1893, class=0, nrcpts=1, msgid=<200611012223.kA1MNpha004495@clint.chubba.net>, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 1 22:25:26 clint mimedefang-multiplexor[4308]: Starting slave 2 (pid 4719) (3 running): About to perform scan |
#tail /var/log/mail.log -f
Nov 1 22:26:26 clint sm-mta[4707]: kA1MPQrW004707: from=<>, size=1908, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 1 22:26:26 clint sm-mta[4707]: kA1MPQrX004707: Milter: from=<>, reject=451 4.3.2 Please try again later Nov 1 22:26:26 clint sm-msp-queue[4706]: k9UIK1YJ003537: to=root, delay=2+04:02:25, xdelay=00:00:00, mailer=relay, pri=7246270, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 1 22:26:26 clint sm-mta[4707]: kA1MPQrX004707: from=<>, size=17042, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 1 22:26:26 clint sm-mta[4707]: kA1MPQrY004707: Milter: from=<root@clint.chubba.net>, reject=451 4.3.2 Please try again later Nov 1 22:26:26 clint sm-msp-queue[4706]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+08:07:05, xdelay=00:00:00, mailer=relay, pri=8325064, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 1 22:26:26 clint sm-mta[4707]: kA1MPQrY004707: from=<root@clint.chubba.net>, size=15246, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 1 22:27:51 clint sendmail[4836]: kA1MRp37004836: from=clint, size=644, class=0, nrcpts=1, msgid=<20061101222751.GA4828@clint.chubba.net>, relay=clint@localhost Nov 1 22:27:52 clint sm-mta[4839]: kA1MRp27004839: from=<clint@clint.chubba.net>, size=796, class=0, nrcpts=1, msgid=<20061101222751.GA4828@clint.chubba.net>, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 1 22:27:52 clint mimedefang-multiplexor[4308]: Starting slave 3 (pid 4841) (4 running): About to perform scan |
#su - clint
l3-agent is already running: pid=3028; pidfile=/home/clint/.lilalo/l3-agent.pid |
#netstat -lnp | grep mime
unix 2 [ ACC ] STREAM LISTENING 9455 4308/mimedefang-mul /var/spool/MIMEDefang/mimedefang-multiplexor.sock unix 2 [ ACC ] STREAM LISTENING 9496 4323/mimedefang /var/spool/MIMEDefang/mimedefang.sock unix 2 [ ACC ] STREAM LISTENING 9378 4263/clamd /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#netstat -lnp | grep mime
unix 2 [ ACC ] STREAM LISTENING 9455 4308/mimedefang-mul /var/spool/MIMEDefang/mimedefang-multiplexor.sock unix 2 [ ACC ] STREAM LISTENING 9496 4323/mimedefang /var/spool/MIMEDefang/mimedefang.sock unix 2 [ ACC ] STREAM LISTENING 9378 4263/clamd /var/spool/MIMEDefang/mimedefang-multiplexor.sock |
#grep mime /etc/mail/sendmail.mc
INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T, T=S:1m;R:1m;E:5m') dnl MAIL_FILTER(`mimedefang', `S=local:/var/spool/MIMEDefang/mimedefang.sock,F=T, T=C:15m;S:4m;R:4m;E:10m')dnl dnl define(`confINPUT_MAIL_FILTERS', `mimedefang')dnl |
#netstat -lnp | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 4698/sendmail: MTA: |
#tail /var/log/mail.log
Nov 2 07:41:11 clint sm-msp-queue[5931]: k9UIK1YJ003537: to=root, delay=2+13:17:10, xdelay=00:00:00, mailer=relay, pri=9766270, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 2 07:41:11 clint sm-mta[5932]: kA27eBZv005932: from=<>, size=17042, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 2 07:41:11 clint sm-mta[5932]: kA27eBZw005932: Milter: from=<root@clint.chubba.net>, reject=451 4.3.2 Please try again later Nov 2 07:41:11 clint sm-msp-queue[5931]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+17:21:50, xdelay=00:00:00, mailer=relay, pri=10845064, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 2 07:41:11 clint sm-mta[5932]: kA27eBZw005932: from=<root@clint.chubba.net>, size=15246, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 2 07:50:11 clint mimedefang-multiplexor[4308]: Killing busy slave 3 (pid 5872): Busy timeout Nov 2 07:50:11 clint mimedefang[5933]: Error from multiplexor: ERR Filter timed out - check filter rules or system load Nov 2 07:50:11 clint mimedefang-multiplexor[4308]: Reap: slave 3 (pid 5872) exited due to SIGTERM/SIGKILL as expected. Nov 2 07:50:11 clint mimedefang-multiplexor[4308]: Slave 3 resource usage: req=1, scans=1, user=0.030, sys=0.000, nswap=0, majflt=0, minflt=956, maxrss=0, bi=0, bo=0 Nov 2 07:50:14 clint mimedefang-multiplexor[4308]: Starting slave 3 (pid 5940) (2 running): Bringing slaves up to minSlaves (2) |
#/etc/init.d/mimedefang restart
Shutting down mimedefang: [ OK ] Shutting down mimedefang-multiplexor: [ OK ] Waiting for daemons to exit..... Starting mimedefang-multiplexor: [ OK ] Starting mimedefang: [ OK ] |
#/etc/init.d/mimedefang restart
Shutting down mimedefang: [ OK ] Shutting down mimedefang-multiplexor: [ OK ] Waiting for daemons to exit..... Starting mimedefang-multiplexor: [ OK ] Starting mimedefang: [ OK ] |
#tail /var/log/mail.log
Nov 2 07:58:50 clint mimedefang[6225]: Multiplexor alive - entering main loop Nov 2 07:58:52 clint mimedefang-multiplexor[6210]: Received SIGTERM: Stopping slaves and terminating Nov 2 07:58:52 clint mimedefang-multiplexor[6210]: Reap: slave 0 (pid 6231) exited normally with status 0 Nov 2 07:58:52 clint mimedefang-multiplexor[6210]: Slave 0 resource usage: req=0, scans=0, user=0.000, sys=0.010, nswap=0, majflt=0, minflt=248, maxrss=0, bi=0, bo=0 Nov 2 07:58:55 clint mimedefang[6225]: MIMEDefang-2.57: mi_stop=1 Nov 2 07:58:56 clint mimedefang-multiplexor[6279]: started; minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, busyTimeout=600, clientTimeout=10 Nov 2 07:58:56 clint mimedefang[6294]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0 Nov 2 07:58:57 clint mimedefang-multiplexor[6279]: Initialized embedded Perl interpreter Nov 2 07:58:57 clint mimedefang-multiplexor[6279]: Starting slave 0 (pid 6300) (1 running): Bringing slaves up to minSlaves (2) Nov 2 07:58:57 clint mimedefang[6294]: Multiplexor alive - entering main loop |
#/etc/init.d/sendmail restart
Restarting Transport Agent: sendmail. |
#netstat -lnp | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 6414/sendmail: MTA: |
#tail /var/log/mail.log
Nov 2 07:58:52 clint mimedefang-multiplexor[6210]: Slave 0 resource usage: req=0, scans=0, user=0.000, sys=0.010, nswap=0, majflt=0, minflt=248, maxrss=0, bi=0, bo=0 Nov 2 07:58:55 clint mimedefang[6225]: MIMEDefang-2.57: mi_stop=1 Nov 2 07:58:56 clint mimedefang-multiplexor[6279]: started; minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, busyTimeout=600, clientTimeout=10 Nov 2 07:58:56 clint mimedefang[6294]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0 Nov 2 07:58:57 clint mimedefang-multiplexor[6279]: Initialized embedded Perl interpreter Nov 2 07:58:57 clint mimedefang-multiplexor[6279]: Starting slave 0 (pid 6300) (1 running): Bringing slaves up to minSlaves (2) Nov 2 07:58:57 clint mimedefang[6294]: Multiplexor alive - entering main loop Nov 2 07:59:00 clint mimedefang-multiplexor[6279]: Starting slave 1 (pid 6309) (2 running): Bringing slaves up to minSlaves (2) Nov 2 07:59:12 clint sm-mta[6414]: starting daemon (8.13.8): SMTP+queueing@00:10:00 Nov 2 07:59:14 clint sm-mta[6423]: kA27xEBb006423: from=<>, size=2550, class=0, nrcpts=1, msgid=<200611020241.kA22eBH2005285@clint.chubba.net>, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] |
#mail user -s test
Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBd006423: from=<>, size=1905, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBe006423: Milter: from=<>, reject=451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-msp-queue[6422]: kA1M94W3003014: to=root, delay=09:51:10, xdelay=00:00:00, mailer=relay, pri=3001056, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBe006423: from=<>, size=1908, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBf006423: Milter: from=<>, reject=451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-msp-queue[6422]: k9UIK1YJ003537: to=root, delay=2+13:36:13, xdelay=00:00:00, mailer=relay, pri=9856270, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBf006423: from=<>, size=17042, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBg006423: Milter: from=<root@clint.chubba.net>, reject=451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-msp-queue[6422]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+17:40:53, xdelay=00:00:00, mailer=relay, pri=10935064, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBg006423: from=<root@clint.chubba.net>, size=15246, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 2 08:00:42 clint sm-mta[6452]: kA27xgd5006452: Milter (mimedefang): timeout before data read Nov 2 08:00:42 clint sm-mta[6452]: kA27xgd5006452: Milter (mimedefang): to error state Nov 2 08:00:42 clint sm-mta[6452]: kA27xgd5006452: Milter: data, reject=451 4.3.2 Please try again later Nov 2 08:00:42 clint sm-mta[6452]: kA27xgd5006452: to=<root@clint.chubba.net>, delay=00:01:00, pri=31894, stat=Please try again later Nov 2 08:00:42 clint sendmail[6449]: kA27xgJk006449: to=root, delay=00:01:00, xdelay=00:01:00, mailer=relay, pri=31054, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later idfkn . Cc: Can't send mail: sendmail process failed with error code 67 |
#vi /etc/mail/sendmail.mc
69c69 < dnl define(`confDOMAIN_NAME',`$w.$m')dnl --- > define(`confDOMAIN_NAME',`$w.$m')dnl |
#cd /etc/mail/
|
#make
Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#/etc/init.d/sendmail restart
Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBd006423: from=<>, size=1905, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBe006423: Milter: from=<>, reject=451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-msp-queue[6422]: kA1M94W3003014: to=root, delay=09:51:10, xdelay=00:00:00, mailer=relay, pri=3001056, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBe006423: from=<>, size=1908, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBf006423: Milter: from=<>, reject=451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-msp-queue[6422]: k9UIK1YJ003537: to=root, delay=2+13:36:13, xdelay=00:00:00, mailer=relay, pri=9856270, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBf006423: from=<>, size=17042, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBg006423: Milter: from=<root@clint.chubba.net>, reject=451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-msp-queue[6422]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+17:40:53, xdelay=00:00:00, mailer=relay, pri=10935064, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBg006423: from=<root@clint.chubba.net>, size=15246, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] ... Nov 2 08:01:01 clint sm-msp-queue[6474]: kA1M94W3003014: to=root, delay=09:51:57, xdelay=00:00:00, mailer=relay, pri=3091056, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 2 08:01:01 clint sm-mta[6475]: kA2801TW006475: from=<>, size=1908, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 2 08:01:01 clint sm-mta[6475]: kA2801TX006475: Milter: from=<>, reject=451 4.3.2 Please try again later Nov 2 08:01:01 clint sm-msp-queue[6474]: k9UIK1YJ003537: to=root, delay=2+13:37:00, xdelay=00:00:00, mailer=relay, pri=9946270, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 2 08:01:01 clint sm-mta[6475]: kA2801TX006475: from=<>, size=17042, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 2 08:01:01 clint sm-mta[6475]: kA2801TY006475: Milter: from=<root@clint.chubba.net>, reject=451 4.3.2 Please try again later Nov 2 08:01:01 clint sm-msp-queue[6474]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+17:41:40, xdelay=00:00:00, mailer=relay, pri=11025064, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 2 08:01:01 clint sm-mta[6475]: kA2801TY006475: from=<root@clint.chubba.net>, size=15246, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 2 08:01:53 clint sm-mta[6847]: starting daemon (8.13.8): SMTP+queueing@00:10:00 Restarting Transport Agent: sendmail. |
#/etc/init.d/clamav-daemon restart
Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBd006423: from=<>, size=1905, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBe006423: Milter: from=<>, reject=451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-msp-queue[6422]: kA1M94W3003014: to=root, delay=09:51:10, xdelay=00:00:00, mailer=relay, pri=3001056, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBe006423: from=<>, size=1908, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBf006423: Milter: from=<>, reject=451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-msp-queue[6422]: k9UIK1YJ003537: to=root, delay=2+13:36:13, xdelay=00:00:00, mailer=relay, pri=9856270, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBf006423: from=<>, size=17042, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBg006423: Milter: from=<root@clint.chubba.net>, reject=451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-msp-queue[6422]: k9UEJLfg002976: to=sergey.cherepenin@tex.kiev.ua, ctladdr=root (0/0), delay=2+17:40:53, xdelay=00:00:00, mailer=relay, pri=10935064, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later Nov 2 08:00:14 clint sm-mta[6423]: kA27xEBg006423: from=<root@clint.chubba.net>, size=15246, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1] ... LibClamAV debug: Unpacking /tmp/clamav-9d04d4a3d136f022/daily.zmd LibClamAV debug: Unpacking /tmp/clamav-9d04d4a3d136f022/daily.fp LibClamAV debug: Unpacking /tmp/clamav-9d04d4a3d136f022/daily.info LibClamAV debug: Loading databases from /tmp/clamav-9d04d4a3d136f022 LibClamAV debug: Loading /tmp/clamav-9d04d4a3d136f022/daily.db LibClamAV debug: Loading /tmp/clamav-9d04d4a3d136f022/daily.hdb LibClamAV debug: Loading /tmp/clamav-9d04d4a3d136f022/daily.ndb LibClamAV debug: Loading /tmp/clamav-9d04d4a3d136f022/daily.zmd LibClamAV debug: Loading /tmp/clamav-9d04d4a3d136f022/daily.fp . |
#/etc/init.d/sendmail restart
Wed Nov 1 22:22:23 2006 -> HTML support enabled. Wed Nov 1 22:22:23 2006 -> Self checking every 1800 seconds. Thu Nov 2 08:02:11 2006 -> +++ Started at Thu Nov 2 08:02:11 2006 Thu Nov 2 08:02:11 2006 -> clamd daemon 0.88.5 (OS: linux-gnu, ARCH: i386, CPU: i486) Thu Nov 2 08:02:11 2006 -> Log file size limited to 1048576 bytes. Thu Nov 2 08:02:11 2006 -> Verbose logging activated. Thu Nov 2 08:02:11 2006 -> Running as user defang (UID 106, GID 107) Thu Nov 2 08:02:11 2006 -> Reading databases from /var/lib/clamav Thu Nov 2 08:02:13 2006 -> Protecting against 75255 viruses. Thu Nov 2 08:02:13 2006 -> ERROR: Socket file /var/spool/MIMEDefang/mimedefang-multiplexor.sock is in use by another process. |
#tail /var/log/clamav/
clamav.log clamd.log freshclam.log |
#tail /var/log/clamav/clamd.log
Wed Nov 1 22:22:23 2006 -> HTML support enabled. Wed Nov 1 22:22:23 2006 -> Self checking every 1800 seconds. Thu Nov 2 08:02:11 2006 -> +++ Started at Thu Nov 2 08:02:11 2006 Thu Nov 2 08:02:11 2006 -> clamd daemon 0.88.5 (OS: linux-gnu, ARCH: i386, CPU: i486) Thu Nov 2 08:02:11 2006 -> Log file size limited to 1048576 bytes. Thu Nov 2 08:02:11 2006 -> Verbose logging activated. Thu Nov 2 08:02:11 2006 -> Running as user defang (UID 106, GID 107) Thu Nov 2 08:02:11 2006 -> Reading databases from /var/lib/clamav Thu Nov 2 08:02:13 2006 -> Protecting against 75255 viruses. Thu Nov 2 08:02:13 2006 -> ERROR: Socket file /var/spool/MIMEDefang/mimedefang-multiplexor.sock is in use by another process. |
Время первой команды журнала | 00:08:01 2006-11- 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:02:16 2006-11- 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 13.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.39 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 4.33 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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