/l3/users/clint/postfix/freebsd6.clinika.local/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 |
|
#mail
Delivered-To: root@clinika.local From: ya@mail.ru To: undisclosed-recipients:; Date: Wed, 28 May 2008 22:11:11 +0000 (UTC) X-Spam-Flag: YES X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on freebsd6.clinika.local X-Spam-Level: ************************************************** X-Spam-Status: Yes, score=101.7 required=5.0 tests=ALL_TRUSTED,AWL, MISSING_SUBJECT,TVD_SPACE_RATIO,USER_IN_BLACKLIST autolearn=no version=3 ... X-Spam-Status: Yes, score=101.7 required=5.0 tests=ALL_TRUSTED,AWL, MISSING_SUBJECT,TVD_SPACE_RATIO,USER_IN_BLACKLIST autolearn=no version=3 .2.4 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_483DD89F.C89F5706" This is a multi-part message in MIME format. ------------=_483DD89F.C89F5706 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit |
#mail
Delivered-To: root@clinika.local From: ya@mail.ru To: undisclosed-recipients:; Date: Wed, 28 May 2008 22:11:11 +0000 (UTC) X-Spam-Flag: YES X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on freebsd6.clinika.local X-Spam-Level: ************************************************** X-Spam-Status: Yes, score=101.7 required=5.0 tests=ALL_TRUSTED,AWL, MISSING_SUBJECT,TVD_SPACE_RATIO,USER_IN_BLACKLIST autolearn=no version=3 ... X-Spam-Status: Yes, score=101.7 required=5.0 tests=ALL_TRUSTED,AWL, MISSING_SUBJECT,TVD_SPACE_RATIO,USER_IN_BLACKLIST autolearn=no version=3 .2.4 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_483DD89F.C89F5706" This is a multi-part message in MIME format. ------------=_483DD89F.C89F5706 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit |
#mail
Delivered-To: root@clinika.local From: ya@mail.ru To: undisclosed-recipients:; Date: Wed, 28 May 2008 22:11:11 +0000 (UTC) X-Spam-Flag: YES X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on freebsd6.clinika.local X-Spam-Level: ************************************************** X-Spam-Status: Yes, score=101.7 required=5.0 tests=ALL_TRUSTED,AWL, MISSING_SUBJECT,TVD_SPACE_RATIO,USER_IN_BLACKLIST autolearn=no version=3 ... X-Spam-Status: Yes, score=101.7 required=5.0 tests=ALL_TRUSTED,AWL, MISSING_SUBJECT,TVD_SPACE_RATIO,USER_IN_BLACKLIST autolearn=no version=3 .2.4 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_483DD89F.C89F5706" This is a multi-part message in MIME format. ------------=_483DD89F.C89F5706 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit |
#perldoc Mail::SpamAssassin::Conf
If you want to define a meta-rule, but do not want its individual sub-rules to count towards the final score unless the entire meta- rule matches, give the sub-rules names that start with '__' (two underscores). SpamAssassin will ignore these for scoring. tflags SYMBOLIC_TEST_NAME [ {net|nice|learn|userconf|noautolearn|multi- ple} ] Used to set flags on a test. These flags are used in the score- determination back end system for details of the test's behaviour. Please see "bayes_auto_learn" for more information about tflag interaction with those systems. The following flags can be set: ... ESCOA ESCOA ESCOA ESCOA ESCOA ESCOA ESCOA ESCOA ESCOA ESCOA |
#perldoc Mail::SpamAssassin::Conf
If you want to define a meta-rule, but do not want its individual sub-rules to count towards the final score unless the entire meta- rule matches, give the sub-rules names that start with '__' (two underscores). SpamAssassin will ignore these for scoring. tflags SYMBOLIC_TEST_NAME [ {net|nice|learn|userconf|noautolearn|multi- ple} ] Used to set flags on a test. These flags are used in the score- determination back end system for details of the test's behaviour. Please see "bayes_auto_learn" for more information about tflag interaction with those systems. The following flags can be set: ... ESCOA ESCOA ESCOA ESCOA ESCOA ESCOA ESCOA ESCOA ESCOA ESCOA |
#vim local.cf
--- /tmp/l3-saved-18330.31143.3367 Wed May 28 22:14:50 2008 +++ local.cf Wed May 28 22:15:02 2008 @@ -54,3 +54,5 @@ use_razor2 1 use_pyzor 1 blacklist_from ya@mail.ru +ok_languages en ru +ok_locales en ru |
#vim local.cf
--- /tmp/l3-saved-18330.31143.3367 Wed May 28 22:14:50 2008 +++ local.cf Wed May 28 22:15:02 2008 @@ -54,3 +54,5 @@ use_razor2 1 use_pyzor 1 blacklist_from ya@mail.ru +ok_languages en ru +ok_locales en ru |
#/usr/local/etc/rc.d/sa-spamd restart
Stopping spamd. Starting spamd. |
#/usr/local/etc/rc.d/sa-spamd restart
Stopping spamd. Starting spamd. |
#/usr/local/etc/rc.d/sa-spamd restart
Stopping spamd. Starting spamd. |
#/usr/local/etc/rc.d/sa-spamd restart
Stopping spamd. Starting spamd. |
#/usr/local/etc/rc.d/sa-spamd restart
Stopping spamd. Starting spamd. |
#cat local.cf
# This is the right place to customize your installation of SpamAssassin. # # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be # tweaked. # # Only a small subset of options are listed below # ########################################################################### # Add *****SPAM***** to the Subject header of spam e-mails # ... # # bayes_ignore_header X-Bogosity # bayes_ignore_header X-Spam-Flag # bayes_ignore_header X-Spam-Status skip_rbl_checks 0 use_razor2 1 use_pyzor 1 blacklist_from ya@mail.ru ok_languages en ru ok_locales en ru |
#cat local.cf
# This is the right place to customize your installation of SpamAssassin. # # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be # tweaked. # # Only a small subset of options are listed below # ########################################################################### # Add *****SPAM***** to the Subject header of spam e-mails # ... # # bayes_ignore_header X-Bogosity # bayes_ignore_header X-Spam-Flag # bayes_ignore_header X-Spam-Status skip_rbl_checks 0 use_razor2 1 use_pyzor 1 blacklist_from ya@mail.ru ok_languages en ru ok_locales en ru |
#cat local.cf
# This is the right place to customize your installation of SpamAssassin. # # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be # tweaked. # # Only a small subset of options are listed below # ########################################################################### # Add *****SPAM***** to the Subject header of spam e-mails # ... # # bayes_ignore_header X-Bogosity # bayes_ignore_header X-Spam-Flag # bayes_ignore_header X-Spam-Status skip_rbl_checks 0 use_razor2 1 use_pyzor 1 blacklist_from ya@mail.ru ok_languages en ru ok_locales en ru |
#cat local.cf
# This is the right place to customize your installation of SpamAssassin. # # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be # tweaked. # # Only a small subset of options are listed below # ########################################################################### # Add *****SPAM***** to the Subject header of spam e-mails # ... # # bayes_ignore_header X-Bogosity # bayes_ignore_header X-Spam-Flag # bayes_ignore_header X-Spam-Status skip_rbl_checks 0 use_razor2 1 use_pyzor 1 blacklist_from ya@mail.ru ok_languages en ru ok_locales en ru |
#cat local.cf
# This is the right place to customize your installation of SpamAssassin. # # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be # tweaked. # # Only a small subset of options are listed below # ########################################################################### # Add *****SPAM***** to the Subject header of spam e-mails # ... # # bayes_ignore_header X-Bogosity # bayes_ignore_header X-Spam-Flag # bayes_ignore_header X-Spam-Status skip_rbl_checks 0 use_razor2 1 use_pyzor 1 blacklist_from ya@mail.ru ok_languages en ru ok_locales en ru |
#cd
|
#cd
|
#cd
|
#cd
|
#cd
|
#pkg_add kav4mailservers-freebsd-5.x-5.5.33.tgz
Installing license files. License file (a file with .key extension) is your personal license key. You need to install it to use the application. To install it right now, just enter the path to the location of your license file (enter an empty string to continue without key file installation): Configuring KeepUp2Date proxy settings. If you use an http proxy server to access the Internet, you need to tell the Kaspersky Anti-Virus for Mail Servers KeepUp2Date component about it. Please enter the address of your http proxy ... Kaspersky Anti-Virus for Mail Servers is installed. Configuration file was installed in /etc/kav/5.5/kav4mailservers/kav4mailservers.conf Binaries were installed in /usr/local/share/kav/5.5/kav4mailservers/bin You must install a valid Kaspersky Lab license file to use the application. To do this, run /usr/local/share/kav/5.5/kav4mailservers/bin/licensemanager -a <keyfile>. |
#pkg_add kav4mailservers-freebsd-5.x-5.5.33.tgz
Installing license files. License file (a file with .key extension) is your personal license key. You need to install it to use the application. To install it right now, just enter the path to the location of your license file (enter an empty string to continue without key file installation): Configuring KeepUp2Date proxy settings. If you use an http proxy server to access the Internet, you need to tell the Kaspersky Anti-Virus for Mail Servers KeepUp2Date component about it. Please enter the address of your http proxy ... Kaspersky Anti-Virus for Mail Servers is installed. Configuration file was installed in /etc/kav/5.5/kav4mailservers/kav4mailservers.conf Binaries were installed in /usr/local/share/kav/5.5/kav4mailservers/bin You must install a valid Kaspersky Lab license file to use the application. To do this, run /usr/local/share/kav/5.5/kav4mailservers/bin/licensemanager -a <keyfile>. |
#pkg_add kav4mailservers-freebsd-5.x-5.5.33.tgz
Installing license files. License file (a file with .key extension) is your personal license key. You need to install it to use the application. To install it right now, just enter the path to the location of your license file (enter an empty string to continue without key file installation): Configuring KeepUp2Date proxy settings. If you use an http proxy server to access the Internet, you need to tell the Kaspersky Anti-Virus for Mail Servers KeepUp2Date component about it. Please enter the address of your http proxy ... Kaspersky Anti-Virus for Mail Servers is installed. Configuration file was installed in /etc/kav/5.5/kav4mailservers/kav4mailservers.conf Binaries were installed in /usr/local/share/kav/5.5/kav4mailservers/bin You must install a valid Kaspersky Lab license file to use the application. To do this, run /usr/local/share/kav/5.5/kav4mailservers/bin/licensemanager -a <keyfile>. |
#pkg_add kav4mailservers-freebsd-5.x-5.5.33.tgz
Installing license files. License file (a file with .key extension) is your personal license key. You need to install it to use the application. To install it right now, just enter the path to the location of your license file (enter an empty string to continue without key file installation): Configuring KeepUp2Date proxy settings. If you use an http proxy server to access the Internet, you need to tell the Kaspersky Anti-Virus for Mail Servers KeepUp2Date component about it. Please enter the address of your http proxy ... Kaspersky Anti-Virus for Mail Servers is installed. Configuration file was installed in /etc/kav/5.5/kav4mailservers/kav4mailservers.conf Binaries were installed in /usr/local/share/kav/5.5/kav4mailservers/bin You must install a valid Kaspersky Lab license file to use the application. To do this, run /usr/local/share/kav/5.5/kav4mailservers/bin/licensemanager -a <keyfile>. |
#pkg_add kav4mailservers-freebsd-5.x-5.5.33.tgz
Installing license files. License file (a file with .key extension) is your personal license key. You need to install it to use the application. To install it right now, just enter the path to the location of your license file (enter an empty string to continue without key file installation): Configuring KeepUp2Date proxy settings. If you use an http proxy server to access the Internet, you need to tell the Kaspersky Anti-Virus for Mail Servers KeepUp2Date component about it. Please enter the address of your http proxy ... Kaspersky Anti-Virus for Mail Servers is installed. Configuration file was installed in /etc/kav/5.5/kav4mailservers/kav4mailservers.conf Binaries were installed in /usr/local/share/kav/5.5/kav4mailservers/bin You must install a valid Kaspersky Lab license file to use the application. To do this, run /usr/local/share/kav/5.5/kav4mailservers/bin/licensemanager -a <keyfile>. |
#vim /usr/local/etc/postfix/ma
|
#vim /usr/local/etc/postfix/ma
|
#vim /usr/local/etc/postfix/ma
|
#vim /usr/local/etc/postfix/ma
|
#vim /usr/local/etc/postfix/main.cf
|
#vim /usr/local/etc/postfix/main.cf
|
#~
13 ##<KIS55> ## Added by Kaspersky Anti-Virus Installer ## 14 -o content_filter=lmtp:127.0.0.1:10030 15 ## Added by Kaspersky Anti-Virus Installer ##<KIS55> 16 -o content_filter=spamfilter:dummy 17 ######smtp inet n - n - - smtpd 18 #submission inet n - n - - smtpd 19 # -o smtpd_tls_security_level=encryptab 20 # -o smtpd_sasl_auth_enable=yes 21 # -o smtpd_client_restrictions=permit_sasl_authenticated,reject 22 # -o milter_macro_daemon_name=ORIGINATING ... 25 # -o smtpd_sasl_auth_enable=yes 26 # -o smtpd_client_restrictions=permit_sasl_authenticated,reject 27 # -o milter_macro_daemon_name=ORIGINATING - showq 28 628 inet n - n - - qmqpd 29 pickup fifo - - n 60 1 pickup 30 ##<KIS55> ## Added by Kaspersky Anti-Virus Installer ## 31 -o content_filter=lmtp:127.0.0.1:10030 32 ## Added by Kaspersky Anti-Virus Installer ##<KIS55> 53 discard unix - - n - - discard "/usr/local/etc/postfix/master.cf" 134L, 6314C written |
#~
13 ##<KIS55> ## Added by Kaspersky Anti-Virus Installer ## 14 -o content_filter=lmtp:127.0.0.1:10030 15 ## Added by Kaspersky Anti-Virus Installer ##<KIS55> 16 -o content_filter=spamfilter:dummy 17 ######smtp inet n - n - - smtpd 18 #submission inet n - n - - smtpd 19 # -o smtpd_tls_security_level=encryptab 20 # -o smtpd_sasl_auth_enable=yes 21 # -o smtpd_client_restrictions=permit_sasl_authenticated,reject 22 # -o milter_macro_daemon_name=ORIGINATING ... 25 # -o smtpd_sasl_auth_enable=yes 26 # -o smtpd_client_restrictions=permit_sasl_authenticated,reject 27 # -o milter_macro_daemon_name=ORIGINATING - showq 28 628 inet n - n - - qmqpd 29 pickup fifo - - n 60 1 pickup 30 ##<KIS55> ## Added by Kaspersky Anti-Virus Installer ## 31 -o content_filter=lmtp:127.0.0.1:10030 32 ## Added by Kaspersky Anti-Virus Installer ##<KIS55> 53 discard unix - - n - - discard "/usr/local/etc/postfix/master.cf" 134L, 6314C written |
#~
13 ##<KIS55> ## Added by Kaspersky Anti-Virus Installer ## 14 -o content_filter=lmtp:127.0.0.1:10030 15 ## Added by Kaspersky Anti-Virus Installer ##<KIS55> 16 -o content_filter=spamfilter:dummy 17 ######smtp inet n - n - - smtpd 18 #submission inet n - n - - smtpd 19 # -o smtpd_tls_security_level=encryptab 20 # -o smtpd_sasl_auth_enable=yes 21 # -o smtpd_client_restrictions=permit_sasl_authenticated,reject 22 # -o milter_macro_daemon_name=ORIGINATING ... 25 # -o smtpd_sasl_auth_enable=yes 26 # -o smtpd_client_restrictions=permit_sasl_authenticated,reject 27 # -o milter_macro_daemon_name=ORIGINATING - showq 28 628 inet n - n - - qmqpd 29 pickup fifo - - n 60 1 pickup 30 ##<KIS55> ## Added by Kaspersky Anti-Virus Installer ## 31 -o content_filter=lmtp:127.0.0.1:10030 32 ## Added by Kaspersky Anti-Virus Installer ##<KIS55> 53 discard unix - - n - - discard "/usr/local/etc/postfix/master.cf" 134L, 6314C written |
#~
13 ##<KIS55> ## Added by Kaspersky Anti-Virus Installer ## 14 -o content_filter=lmtp:127.0.0.1:10030 15 ## Added by Kaspersky Anti-Virus Installer ##<KIS55> 16 -o content_filter=spamfilter:dummy 17 ######smtp inet n - n - - smtpd 18 #submission inet n - n - - smtpd 19 # -o smtpd_tls_security_level=encryptab 20 # -o smtpd_sasl_auth_enable=yes 21 # -o smtpd_client_restrictions=permit_sasl_authenticated,reject 22 # -o milter_macro_daemon_name=ORIGINATING ... 25 # -o smtpd_sasl_auth_enable=yes 26 # -o smtpd_client_restrictions=permit_sasl_authenticated,reject 27 # -o milter_macro_daemon_name=ORIGINATING - showq 28 628 inet n - n - - qmqpd 29 pickup fifo - - n 60 1 pickup 30 ##<KIS55> ## Added by Kaspersky Anti-Virus Installer ## 31 -o content_filter=lmtp:127.0.0.1:10030 32 ## Added by Kaspersky Anti-Virus Installer ##<KIS55> 53 discard unix - - n - - discard "/usr/local/etc/postfix/master.cf" 134L, 6314C written |
#~
13 ##<KIS55> ## Added by Kaspersky Anti-Virus Installer ## 14 -o content_filter=lmtp:127.0.0.1:10030 15 ## Added by Kaspersky Anti-Virus Installer ##<KIS55> 16 -o content_filter=spamfilter:dummy 17 ######smtp inet n - n - - smtpd 18 #submission inet n - n - - smtpd 19 # -o smtpd_tls_security_level=encryptab 20 # -o smtpd_sasl_auth_enable=yes 21 # -o smtpd_client_restrictions=permit_sasl_authenticated,reject 22 # -o milter_macro_daemon_name=ORIGINATING ... 25 # -o smtpd_sasl_auth_enable=yes 26 # -o smtpd_client_restrictions=permit_sasl_authenticated,reject 27 # -o milter_macro_daemon_name=ORIGINATING - showq 28 628 inet n - n - - qmqpd 29 pickup fifo - - n 60 1 pickup 30 ##<KIS55> ## Added by Kaspersky Anti-Virus Installer ## 31 -o content_filter=lmtp:127.0.0.1:10030 32 ## Added by Kaspersky Anti-Virus Installer ##<KIS55> 53 discard unix - - n - - discard "/usr/local/etc/postfix/master.cf" 134L, 6314C written |
#/usr/local/etc/rc.d/postfix restart
postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system |
#tail -f /var/log/maillog
May 28 22:15:20 freebsd6 spamd[68956]: spamd: server started on port 783/tcp (running version 3.2.4) May 28 22:15:20 freebsd6 spamd[68956]: spamd: server pid: 68956 May 28 22:15:20 freebsd6 spamd[68956]: spamd: server successfully spawned child process, pid 68964 May 28 22:15:20 freebsd6 spamd[68956]: spamd: server successfully spawned child process, pid 68965 May 28 22:15:20 freebsd6 spamd[68956]: prefork: child states: IS May 28 22:15:20 freebsd6 spamd[68956]: prefork: child states: II May 28 22:22:29 freebsd6 postfix/postfix-script[69294]: stopping the Postfix mail system May 28 22:22:29 freebsd6 postfix/master[67986]: terminating on signal 15 May 28 22:22:30 freebsd6 postfix/postfix-script[69349]: starting the Postfix mail system May 28 22:22:30 freebsd6 postfix/master[69350]: daemon started -- version 2.5.1, configuration /usr/local/etc/postfix ^C |
#telnet freebsd6 25
Trying 192.168.7.250... Connected to freebsd6.clinika.local. Escape character is '^]'. 220 freebsd6.clinika.local ESMTP Postfix (2.5.1) HELO ale 250 freebsd6.clinika.local MAIL FROM:<ya@mail.ru> 250 2.1.0 Ok RCPT TO:<root@clinika.local> 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> Subject: testing sd . 250 2.0.0 Ok: queued as 79BC217071 QUIT 221 2.0.0 Bye Connection closed by foreign host. |
#telnet freebsd6 25
Trying 192.168.7.250... Connected to freebsd6.clinika.local. Escape character is '^]'. 220 freebsd6.clinika.local ESMTP Postfix (2.5.1) HELO ale 250 freebsd6.clinika.local MAIL FROM:<ya@mail.ru> 250 2.1.0 Ok RCPT TO:<root@clinika.local> 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> Subject: testing sd . 250 2.0.0 Ok: queued as 79BC217071 QUIT 221 2.0.0 Bye Connection closed by foreign host. |
#telnet freebsd6 25
Trying 192.168.7.250... Connected to freebsd6.clinika.local. Escape character is '^]'. 220 freebsd6.clinika.local ESMTP Postfix (2.5.1) HELO ale 250 freebsd6.clinika.local MAIL FROM:<ya@mail.ru> 250 2.1.0 Ok RCPT TO:<root@clinika.local> 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> Subject: testing sd . 250 2.0.0 Ok: queued as 79BC217071 QUIT 221 2.0.0 Bye Connection closed by foreign host. |
#tail -f /var/log/maillog
May 28 22:23:38 freebsd6 spamd[68964]: spamd: identified spam (101.4/5.0) for spamd:58 in 3.2 seconds, 387 bytes. May 28 22:23:38 freebsd6 spamd[68964]: spamd: result: Y 101 - ALL_TRUSTED,AWL,TVD_SPACE_RATIO,USER_IN_BLACKLIST scantime=3.2,size=387,user=spamd,uid=58,required_score=5.0,rhost=localhost.clinika.local,raddr=127.0.0.1,rport=57509,mid=<20080528222320.79BC217071@freebsd6.clinika.local>,autolearn=no May 28 22:23:38 freebsd6 spamd[68956]: prefork: child states: II May 28 22:23:38 freebsd6 postfix/pipe[69393]: 79BC217071: to=<root@clinika.local>, relay=spamfilter, delay=34, delays=30/0.03/0/3.6, dsn=2.0.0, status=sent (delivered via spamfilter service) May 28 22:23:38 freebsd6 postfix/qmgr[69355]: 79BC217071: removed May 28 22:23:38 freebsd6 postfix/pickup[69353]: D778417040: uid=58 from=<ya@mail.ru> May 28 22:23:38 freebsd6 postfix/cleanup[69392]: D778417040: message-id=<20080528222320.79BC217071@freebsd6.clinika.local> May 28 22:23:38 freebsd6 postfix/qmgr[69355]: D778417040: from=<ya@mail.ru>, size=2462, nrcpt=1 (queue active) May 28 22:23:39 freebsd6 postfix/spawn[69407]: warning: command /usr/local/share/kav/5.5/kav4mailservers/bin/smtpscanner exit status 1 May 28 22:23:39 freebsd6 postfix/lmtp[69406]: D778417040: to=<root@clinika.local>, relay=127.0.0.1[127.0.0.1]:10030, delay=3.5, delays=3.5/0.02/0.05/0, dsn=4.4.2, status=deferred (lost connection with 127.0.0.1[127.0.0.1] while receiving the initial server greeting) ^C |
#tail -f /var/log/maillog
May 28 22:23:38 freebsd6 spamd[68964]: spamd: identified spam (101.4/5.0) for spamd:58 in 3.2 seconds, 387 bytes. May 28 22:23:38 freebsd6 spamd[68964]: spamd: result: Y 101 - ALL_TRUSTED,AWL,TVD_SPACE_RATIO,USER_IN_BLACKLIST scantime=3.2,size=387,user=spamd,uid=58,required_score=5.0,rhost=localhost.clinika.local,raddr=127.0.0.1,rport=57509,mid=<20080528222320.79BC217071@freebsd6.clinika.local>,autolearn=no May 28 22:23:38 freebsd6 spamd[68956]: prefork: child states: II May 28 22:23:38 freebsd6 postfix/pipe[69393]: 79BC217071: to=<root@clinika.local>, relay=spamfilter, delay=34, delays=30/0.03/0/3.6, dsn=2.0.0, status=sent (delivered via spamfilter service) May 28 22:23:38 freebsd6 postfix/qmgr[69355]: 79BC217071: removed May 28 22:23:38 freebsd6 postfix/pickup[69353]: D778417040: uid=58 from=<ya@mail.ru> May 28 22:23:38 freebsd6 postfix/cleanup[69392]: D778417040: message-id=<20080528222320.79BC217071@freebsd6.clinika.local> May 28 22:23:38 freebsd6 postfix/qmgr[69355]: D778417040: from=<ya@mail.ru>, size=2462, nrcpt=1 (queue active) May 28 22:23:39 freebsd6 postfix/spawn[69407]: warning: command /usr/local/share/kav/5.5/kav4mailservers/bin/smtpscanner exit status 1 May 28 22:23:39 freebsd6 postfix/lmtp[69406]: D778417040: to=<root@clinika.local>, relay=127.0.0.1[127.0.0.1]:10030, delay=3.5, delays=3.5/0.02/0.05/0, dsn=4.4.2, status=deferred (lost connection with 127.0.0.1[127.0.0.1] while receiving the initial server greeting) ^C |
#tail -f /var/log/maillog
May 28 22:23:38 freebsd6 spamd[68964]: spamd: identified spam (101.4/5.0) for spamd:58 in 3.2 seconds, 387 bytes. May 28 22:23:38 freebsd6 spamd[68964]: spamd: result: Y 101 - ALL_TRUSTED,AWL,TVD_SPACE_RATIO,USER_IN_BLACKLIST scantime=3.2,size=387,user=spamd,uid=58,required_score=5.0,rhost=localhost.clinika.local,raddr=127.0.0.1,rport=57509,mid=<20080528222320.79BC217071@freebsd6.clinika.local>,autolearn=no May 28 22:23:38 freebsd6 spamd[68956]: prefork: child states: II May 28 22:23:38 freebsd6 postfix/pipe[69393]: 79BC217071: to=<root@clinika.local>, relay=spamfilter, delay=34, delays=30/0.03/0/3.6, dsn=2.0.0, status=sent (delivered via spamfilter service) May 28 22:23:38 freebsd6 postfix/qmgr[69355]: 79BC217071: removed May 28 22:23:38 freebsd6 postfix/pickup[69353]: D778417040: uid=58 from=<ya@mail.ru> May 28 22:23:38 freebsd6 postfix/cleanup[69392]: D778417040: message-id=<20080528222320.79BC217071@freebsd6.clinika.local> May 28 22:23:38 freebsd6 postfix/qmgr[69355]: D778417040: from=<ya@mail.ru>, size=2462, nrcpt=1 (queue active) May 28 22:23:39 freebsd6 postfix/spawn[69407]: warning: command /usr/local/share/kav/5.5/kav4mailservers/bin/smtpscanner exit status 1 May 28 22:23:39 freebsd6 postfix/lmtp[69406]: D778417040: to=<root@clinika.local>, relay=127.0.0.1[127.0.0.1]:10030, delay=3.5, delays=3.5/0.02/0.05/0, dsn=4.4.2, status=deferred (lost connection with 127.0.0.1[127.0.0.1] while receiving the initial server greeting) ^C |
#tail -f /var/log/maillog
May 28 22:23:38 freebsd6 spamd[68964]: spamd: identified spam (101.4/5.0) for spamd:58 in 3.2 seconds, 387 bytes. May 28 22:23:38 freebsd6 spamd[68964]: spamd: result: Y 101 - ALL_TRUSTED,AWL,TVD_SPACE_RATIO,USER_IN_BLACKLIST scantime=3.2,size=387,user=spamd,uid=58,required_score=5.0,rhost=localhost.clinika.local,raddr=127.0.0.1,rport=57509,mid=<20080528222320.79BC217071@freebsd6.clinika.local>,autolearn=no May 28 22:23:38 freebsd6 spamd[68956]: prefork: child states: II May 28 22:23:38 freebsd6 postfix/pipe[69393]: 79BC217071: to=<root@clinika.local>, relay=spamfilter, delay=34, delays=30/0.03/0/3.6, dsn=2.0.0, status=sent (delivered via spamfilter service) May 28 22:23:38 freebsd6 postfix/qmgr[69355]: 79BC217071: removed May 28 22:23:38 freebsd6 postfix/pickup[69353]: D778417040: uid=58 from=<ya@mail.ru> May 28 22:23:38 freebsd6 postfix/cleanup[69392]: D778417040: message-id=<20080528222320.79BC217071@freebsd6.clinika.local> May 28 22:23:38 freebsd6 postfix/qmgr[69355]: D778417040: from=<ya@mail.ru>, size=2462, nrcpt=1 (queue active) May 28 22:23:39 freebsd6 postfix/spawn[69407]: warning: command /usr/local/share/kav/5.5/kav4mailservers/bin/smtpscanner exit status 1 May 28 22:23:39 freebsd6 postfix/lmtp[69406]: D778417040: to=<root@clinika.local>, relay=127.0.0.1[127.0.0.1]:10030, delay=3.5, delays=3.5/0.02/0.05/0, dsn=4.4.2, status=deferred (lost connection with 127.0.0.1[127.0.0.1] while receiving the initial server greeting) ^C |
#mail
No mail for root |
#mail
No mail for root |
#mail
No mail for root |
#mail
No mail for root |
#ldconfig
|
#ldconfig
|
#ldconfig
|
#ldconfig
|
#pkg_delete kav4mailservers-freebsd-5.x-5.5.33
pkg_delete: file '//var/db/kav/5.5/kav4mailservers/bases/updcfg.xml' doesn't exist pkg_delete: '//etc/kav/5.5/kav4mailservers/kav4mailservers.conf' fails original MD5 checksum - not deleted. pkg_delete: unable to completely remove directory '///etc/kav/5.5/kav4mailservers' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) |
#pkg_delete kav4mailservers-freebsd-5.x-5.5.33
pkg_delete: file '//var/db/kav/5.5/kav4mailservers/bases/updcfg.xml' doesn't exist pkg_delete: '//etc/kav/5.5/kav4mailservers/kav4mailservers.conf' fails original MD5 checksum - not deleted. pkg_delete: unable to completely remove directory '///etc/kav/5.5/kav4mailservers' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) |
#pkg_delete kav4mailservers-freebsd-5.x-5.5.33
pkg_delete: file '//var/db/kav/5.5/kav4mailservers/bases/updcfg.xml' doesn't exist pkg_delete: '//etc/kav/5.5/kav4mailservers/kav4mailservers.conf' fails original MD5 checksum - not deleted. pkg_delete: unable to completely remove directory '///etc/kav/5.5/kav4mailservers' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) |
#pkg_delete kav4mailservers-freebsd-5.x-5.5.33
pkg_delete: file '//var/db/kav/5.5/kav4mailservers/bases/updcfg.xml' doesn't exist pkg_delete: '//etc/kav/5.5/kav4mailservers/kav4mailservers.conf' fails original MD5 checksum - not deleted. pkg_delete: unable to completely remove directory '///etc/kav/5.5/kav4mailservers' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) |
#ldconfig
|
#mail
|
#ldconfig
|
#mail
|
#ldconfig
|
#mail
|
#ldconfig
|
#mail
|
#pkg_add kav4mailservers-freebsd-5.x-5.5.33.tgz
Installing license files. License file (a file with .key extension) is your personal license key. You need to install it to use the application. To install it right now, just enter the path to the location of your license file (enter an empty string to continue without key file installation): /root/03B66929.key Could not open directory /root/03B66929.key: Not a directory Please enter another path to the location of your license file (enter an empty string to continue without key file ... (enter an empty string to continue without key file installation): /root/ 03B66929.key rejected - not a valid Kaspersky Lab license file. None of the Kaspersky Lab license files found is valid for this product. Please enter another path to the location of your license file (enter an empty string to continue without key file installation): ^CInterrupted. |
#pkg_add kav4mailservers-freebsd-5.x-5.5.33.tgz
Installing license files. License file (a file with .key extension) is your personal license key. You need to install it to use the application. To install it right now, just enter the path to the location of your license file (enter an empty string to continue without key file installation): /root/03B66929.key Could not open directory /root/03B66929.key: Not a directory Please enter another path to the location of your license file (enter an empty string to continue without key file ... (enter an empty string to continue without key file installation): /root/ 03B66929.key rejected - not a valid Kaspersky Lab license file. None of the Kaspersky Lab license files found is valid for this product. Please enter another path to the location of your license file (enter an empty string to continue without key file installation): ^CInterrupted. |
#pkg_add kav4mailservers-freebsd-5.x-5.5.33.tgz
Installing license files. License file (a file with .key extension) is your personal license key. You need to install it to use the application. To install it right now, just enter the path to the location of your license file (enter an empty string to continue without key file installation): /root/03B66929.key Could not open directory /root/03B66929.key: Not a directory Please enter another path to the location of your license file (enter an empty string to continue without key file ... (enter an empty string to continue without key file installation): /root/ 03B66929.key rejected - not a valid Kaspersky Lab license file. None of the Kaspersky Lab license files found is valid for this product. Please enter another path to the location of your license file (enter an empty string to continue without key file installation): ^CInterrupted. |
#rm -rfc/kav/
|
#rm -rfc/kav/
|
#rm -rfc/kav/
|
#pkg_add kav4mailservers-freebsd-5.x-5.5.33.tgz
pkg_add: package 'kav4mailservers-freebsd-5.x-5.5.33' or its older version already installed |
#pkg_delete kav4mailservers-freebsd-5.x-5.5.33
pkg_delete: file '//var/db/kav/5.5/kav4mailservers/bases/updcfg.xml' doesn't exist pkg_delete: file '//etc/kav/5.5/kav4mailservers/kav4mailservers.conf' doesn't exist pkg_delete: file '//etc/kav/5.5/kav4mailservers/templates/notify_error_recipient' doesn't exist pkg_delete: file '//etc/kav/5.5/kav4mailservers/templates/notify_error_admin' doesn't exist pkg_delete: file '//etc/kav/5.5/kav4mailservers/templates/notify_suspicious_sender' doesn't exist pkg_delete: file '//etc/kav/5.5/kav4mailservers/templates/notify_suspicious_admin' doesn't exist pkg_delete: file '//etc/kav/5.5/kav4mailservers/templates/notify_corrupted_admin' doesn't exist pkg_delete: file '//etc/kav/5.5/kav4mailservers/templates/notify_filtered_sender' doesn't exist pkg_delete: file '//etc/kav/5.5/kav4mailservers/templates/notify_infected_admin' doesn't exist pkg_delete: file '//etc/kav/5.5/kav4mailservers/templates/notify_corrupted_sender' doesn't exist ... pkg_delete: file '//etc/kav/5.5/kav4mailservers/templates/notify_filtered_admin' doesn't exist pkg_delete: file '//etc/kav/5.5/kav4mailservers/templates/notify_main' doesn't exist pkg_delete: file '//etc/kav/5.5/kav4mailservers/templates/notify_infected_sender' doesn't exist pkg_delete: file '//etc/kav/5.5/kav4mailservers/templates/notify_suspicious_recipient' doesn't exist pkg_delete: file '///etc/kav/5.5/kav4mailservers/templates' doesn't exist pkg_delete: unable to completely remove directory '///etc/kav/5.5/kav4mailservers/templates' pkg_delete: file '///etc/kav/5.5/kav4mailservers' doesn't exist pkg_delete: unable to completely remove directory '///etc/kav/5.5/kav4mailservers' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) |
#pkg_add kav4mailservers-freebsd-5.x-5.5.33.tgz
Installing license files. License file (a file with .key extension) is your personal license key. You need to install it to use the application. To install it right now, just enter the path to the location of your license file (enter an empty string to continue without key file installation): /root/ 03B66929.key rejected - not a valid Kaspersky Lab license file. None of the Kaspersky Lab license files found is valid for this product. Please enter another path to the location of your license file (enter an empty string to continue without key file installation): ^CInterrupted. |
#pkg_add kav4mailservers-freebsd-5.x-5.5.33.tgz
Installing license files. License file (a file with .key extension) is your personal license key. You need to install it to use the application. To install it right now, just enter the path to the location of your license file (enter an empty string to continue without key file installation): /root/ 03B66929.key rejected - not a valid Kaspersky Lab license file. None of the Kaspersky Lab license files found is valid for this product. Please enter another path to the location of your license file (enter an empty string to continue without key file installation): ^CInterrupted. |
#pkg_add kav4mailservers-freebsd-5.x-5.5.33.tgz
Installing license files. License file (a file with .key extension) is your personal license key. You need to install it to use the application. To install it right now, just enter the path to the location of your license file (enter an empty string to continue without key file installation): /root/ 03B66929.key rejected - not a valid Kaspersky Lab license file. None of the Kaspersky Lab license files found is valid for this product. Please enter another path to the location of your license file (enter an empty string to continue without key file installation): ^CInterrupted. |
#pkg_add kav4mailservers-freebsd-5.x-5.5.33.tgz
Installing license files. License file (a file with .key extension) is your personal license key. You need to install it to use the application. To install it right now, just enter the path to the location of your license file (enter an empty string to continue without key file installation): /root/ 03B66929.key rejected - not a valid Kaspersky Lab license file. None of the Kaspersky Lab license files found is valid for this product. Please enter another path to the location of your license file (enter an empty string to continue without key file installation): ^CInterrupted. |
#pkg_add kav4mailservers-freebsd-5.x-5.5.33.tgz
Installing license files. License file (a file with .key extension) is your personal license key. You need to install it to use the application. To install it right now, just enter the path to the location of your license file (enter an empty string to continue without key file installation): /root/ 03B66929.key rejected - not a valid Kaspersky Lab license file. None of the Kaspersky Lab license files found is valid for this product. Please enter another path to the location of your license file (enter an empty string to continue without key file installation): ^CInterrupted. |
#pkg_delete kav4mailservers-freebsd-5.x-5.5.33
pkg_delete: file '//var/db/kav/5.5/kav4mailservers/bases/updcfg.xml' doesn't exist pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) |
#pkg_delete kav4mailservers-freebsd-5.x-5.5.33
pkg_delete: file '//var/db/kav/5.5/kav4mailservers/bases/updcfg.xml' doesn't exist pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) |
#pkg_delete kav4mailservers-freebsd-5.x-5.5.33
pkg_delete: file '//var/db/kav/5.5/kav4mailservers/bases/updcfg.xml' doesn't exist pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) |
#pkg_delete kav4mailservers-freebsd-5.x-5.5.33
pkg_delete: file '//var/db/kav/5.5/kav4mailservers/bases/updcfg.xml' doesn't exist pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) |
#pkg_delete kav4mailservers-freebsd-5.x-5.5.33
pkg_delete: file '//var/db/kav/5.5/kav4mailservers/bases/updcfg.xml' doesn't exist pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) |
#rm -rf /etc/kav/
|
#date
Wed May 28 22:34:49 UTC 2008 |
#date
Wed May 28 22:34:49 UTC 2008 |
#date
Wed May 28 22:34:49 UTC 2008 |
#date
Wed May 28 22:34:49 UTC 2008 |
#date
Wed May 28 22:34:49 UTC 2008 |
#tzsetup
|
#tzsetup
|
#tzsetup
|
#tzsetup
|
#tzsetup
|
#date
Wed May 28 22:34:57 UTC 2008 |
#ntpdate ntp.psn.ru
28 May 22:34:45 ntpdate[70192]: step time server 194.149.67.130 offset -26.480557 sec |
#ntpdate ntp.psn.ru
28 May 22:34:45 ntpdate[70192]: step time server 194.149.67.130 offset -26.480557 sec |
#ntpdate ntp.psn.ru
28 May 22:34:45 ntpdate[70192]: step time server 194.149.67.130 offset -26.480557 sec |
#ntpdate ntp.psn.ru
28 May 22:34:45 ntpdate[70192]: step time server 194.149.67.130 offset -26.480557 sec |
# This is the right place to customize your installation of SpamAssassin. # # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be # tweaked. # # Only a small subset of options are listed below # ########################################################################### # Add *****SPAM***** to the Subject header of spam e-mails # # rewrite_header Subject *****SPAM***** # Save spam messages as a message/rfc822 MIME attachment instead of # modifying the original message (0: off, 2: use text/plain instead) # # report_safe 1 # Set which networks or hosts are considered 'trusted' by your mail # server (i.e. not spammers) # # trusted_networks 212.17.35. # Set file-locking method (flock is not safe over NFS, but is faster) # # lock_method flock # Set the threshold at which a message is considered spam (default: 5.0) # required_score 5.0 # Use Bayesian classifier (default: 1) # use_bayes 1 # Bayesian classifier auto-learning (default: 1) # bayes_auto_learn 1 # Set headers which may provide inappropriate cues to the Bayesian # classifier # # bayes_ignore_header X-Bogosity # bayes_ignore_header X-Spam-Flag # bayes_ignore_header X-Spam-Status skip_rbl_checks 0 use_razor2 1 use_pyzor 1 blacklist_from ya@mail.ru ok_languages en ru ok_locales en ru
Время первой команды журнала | 01:11:50 2008- 5-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 01:34:57 2008- 5-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 7.92 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.39 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 4.37 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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