/l3/users/clint/nt-lNet/linux4.linux.nt/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 |
|
#mail
Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/root": 1 message 1 new >N 1 user@localhost.lo Thu Sep 21 14:56 16/637 te & Message 1: From user@localhost.localdomain Thu Sep 21 14:56:55 2006 Date: Thu, 21 Sep 2006 14:56:55 +0300 From: user <user@localhost.localdomain> To: root@localhost.localdomain Subject: te te. & r To: root@localhost.localdomain user@localhost.localdomain Subject: Re: te lkwfjelj . Cc: & q New mail has arrived. Saved 1 message in /root/mbox |
$mutt
To: user@yuriksat.linux.nt 3 N + Sep 21 Mail Delivery S ( 51) Returned mail: see transcript for details Cc: Bcc: Subject: test Reply-To: Fcc: ~/sent Mix: <no chain defined> Security: Ðе пÑименÑÑÑ -- ÐÐ»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ð*-¾Ð¾Ð±Ñ/var/mail/user [Msgs:3 New:1 4,2K]---(threads/date) (all) ÐÑÑавлено: 3, Ñдалено: 0. |
$mutt
>>> MAIL From:<user@localhost.localdomain> SIZE=703 AUTH=<> <<< 553 5.1.2 <user@localhost.localdomain>... Unrecognized host name +localhost.localdomain N +- 4/4: Mail Delivery Subsys Returned mail: see transcript for de -- (38%) Оставлено: 4, удалено: 0. |
#hostname
yellow.sergey.unix.nt |
#vi /etc/hosts
|
#mail user@lav.unix.nt
Sep 21 14:40:49 linux4 sendmail[12432]: k8LBenF0012432: to=user@server2.lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30053, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBengH012435 Message accepted for delivery) Sep 21 14:40:50 linux4 sm-mta[12438]: k8LBengH012435: to=<user@server2.lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120360, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 14:40:50 linux4 sm-mta[12438]: k8LBengH012435: k8LBeogH012438: DSN: Data format error Sep 21 14:40:50 linux4 sm-mta[12438]: k8LBeogH012438: to=<user@yellow.sergey.linux.nt>, delay=00:00:00, mailer=local, pri=30000, dsn=4.4.3, stat=queued Sep 21 14:42:47 linux4 sendmail[12462]: k8LBglEd012462: from=user, size=291, class=0, nrcpts=1, msgid=<20060921114227.GA12445@localhost.localdomain>, relay=user@localhost Sep 21 14:42:57 linux4 sm-mta[12473]: k8LBgl2Z012473: from=<user@yellow.sergey.linux.nt>, size=495, class=0, nrcpts=1, msgid=<20060921114227.GA12445@localhost.localdomain>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 14:42:57 linux4 sendmail[12462]: k8LBglEd012462: to=user@server2.lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:10, xdelay=00:00:10, mailer=relay, pri=30291, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBgl2Z012473 Message accepted for delivery) Sep 21 14:42:58 linux4 sm-mta[12476]: k8LBgl2Z012473: to=<user@server2.lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120495, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 14:42:58 linux4 sm-mta[12476]: k8LBgl2Z012473: k8LBgw2Z012476: DSN: Data format error Sep 21 14:42:58 linux4 sm-mta[12476]: k8LBgw2Z012476: to=<user@yellow.sergey.linux.nt>, delay=00:00:00, mailer=local, pri=30000, dsn=4.4.3, stat=queued ... Sep 21 15:09:42 linux4 sm-mta[13510]: k8LC9g9Z013510: from=<root@yellow.sergey.unix.nt>, size=344, class=0, nrcpts=2, msgid=<200609211209.k8LC9gOR013507@yellow.sergey.unix.nt>, proto=ESMTP, daemon=MSP-v4, relay=smmsp@localhost [127.0.0.1] Sep 21 15:09:42 linux4 sendmail[13507]: k8LC9gOR013507: to=user@yellow.sergey.unix.nt,user@lav.unix.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60069, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LC9g9Z013510 Message accepted for delivery) Sep 21 15:09:43 linux4 sm-mta[13518]: k8LC9g9Z013510: to=<user@yellow.sergey.unix.nt>, ctladdr=<root@yellow.sergey.unix.nt> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=local, pri=60550, dsn=2.0.0, stat=Sent Sep 21 15:09:46 linux4 sm-mta[13518]: k8LC9g9Z013510: to=<user@lav.unix.nt>, ctladdr=<root@yellow.sergey.unix.nt> (0/0), delay=00:00:04, xdelay=00:00:03, mailer=esmtp, pri=60550, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 15:09:46 linux4 sm-mta[13518]: k8LC9g9Z013510: k8LC9k9Z013518: DSN: Data format error Sep 21 15:09:46 linux4 sm-mta[13518]: k8LC9k9Z013518: to=<root@yellow.sergey.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent Subject: t weqr . Cc: user@yellow.sergey.unix.nt |
$mutt
2 T Sep 21 root ( 1) Re: te 3 + Sep 21 Mail Delivery S ( 51) Returned mail: see transcript for details 3 + Sep 21 Mail Delivery S ( 51) Returned mail: see transcript for details 5 + Sep 21 Mail Delivery S ( 51) Returned mail: see transcript for details 6 + Sep 21 User User ( 1) wefgt 7 C Sep 21 root ( 1) t Оставлено: 7, удалено: 0. |
#telnet 192.168.15.3 25
Trying 192.168.15.3... Connected to 192.168.15.3. Escape character is '^]'. 220 debian.debian.linux.nt ESMTP Sendmail 8.13.8/8.13.8/Debian-2; Thu, 21 Sep 2006 16:01:32 +0300; (No UCE/UBE) logging access from: yellow.sergey.unix.nt(OK)-root@yellow.sergey.unix.nt [192.168.15.4] ^] telnet> q Connection closed. |
$vi .mutrc
1,3c1,2 < set realname="Natashechka" < my_hdr From: Natashechka <user@nata.nata.linux.nt> < my_hdr Replay-to: Natashechka <user@nata.nata.linux.nt> --- > set realname="SERGEY" > my_hdr From: SERGEY <user@yellow.sergey.unix.nt> |
$mutt
Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) N +- 8/8: Mail Delivery Subsys Returned mail: see transcript for de -- (end) Последняя строка сообщения уже на экране. Оставлено: 8, удалено: 0. |
$mutt
2 DT Sep 21 root ( 1) Re: te 3 D+ Sep 21 Mail Delivery S ( 51) Returned mail: see transcript for details 4 D+ Sep 21 Mail Delivery S ( 51) Returned mail: see transcript for details 5 D+ Sep 21 Mail Delivery S ( 51) Returned mail: see transcript for details 6 D+ Sep 21 User User ( 1) wefgt 7 DC Sep 21 root ( 1) t 7 DC Sep 21 root ( 1) t 8 + Sep 21 Mail Delivery S ( 51) Returned mail: see transcript for details -*-Mutt: /var/mail/user [Msgs:8 Del:8 13K]---(threads/date)-------------(all)--- Оставлено: 0, удалено: 8. |
#mail
Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/root": 2 messages 2 new >N 1 root@localhost.lo Thu Sep 21 14:57 17/684 Re: te N 2 MAILER-DAEMON@loc Thu Sep 21 15:09 64/2484 Returned mail: see transcript for details & Message 1: From root@localhost.localdomain Thu Sep 21 14:57:08 2006 Date: Thu, 21 Sep 2006 14:57:08 +0300 From: root <root@localhost.localdomain> To: root@localhost.localdomain, user@localhost.localdomain Subject: Re: te In-Reply-To: <200609211156.k8LButOX013130@linux4.linux.nt> lkwfjelj & q Saved 1 message in /root/mbox Held 1 message in /var/mail/root |
#mail
Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/root": 1 message 1 unread >U 1 MAILER-DAEMON@loc Thu Sep 21 15:09 65/2494 Returned mail: see transcript for details & & q Saved 1 message in /root/mboxlocaldomain Thu Sep 21 15:09:46 2006 Date: Thu, 21 Sep 2006 15:09:46 +0300 From: Mail Delivery Subsystem <MAILER-DAEMON@localhost.localdomain> To: <root@localhost.localdomain> MIME-Version: 1.0 ... This is a MIME-encapsulated message --k8LC9k9Z013518.1158840586/yellow.sergey.unix.nt The original message was received at Thu, 21 Sep 2006 15:09:42 +0300 from smmsp@localhost [127.0.0.1] ----- The following addresses had permanent fatal errors ----- <user@lav.unix.nt> (reason: 553 5.1.2 <root@localhost.localdomain>... Unrecognized host name localhost.localdomain) ----- Transcript of session follows ----- ... while talking to server2.lav.unix.nt.: >>> MAIL From:<root@localhost.localdomain> SIZE=550 AUTH=<> |
#mail
![]() No mail for root |
#mail user@lav.unix.nt
Sep 21 14:40:49 linux4 sendmail[12432]: k8LBenF0012432: to=user@server2.lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30053, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBengH012435 Message accepted for delivery) Sep 21 14:40:50 linux4 sm-mta[12438]: k8LBengH012435: to=<user@server2.lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120360, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 14:40:50 linux4 sm-mta[12438]: k8LBengH012435: k8LBeogH012438: DSN: Data format error Sep 21 14:40:50 linux4 sm-mta[12438]: k8LBeogH012438: to=<user@yellow.sergey.linux.nt>, delay=00:00:00, mailer=local, pri=30000, dsn=4.4.3, stat=queued Sep 21 14:42:47 linux4 sendmail[12462]: k8LBglEd012462: from=user, size=291, class=0, nrcpts=1, msgid=<20060921114227.GA12445@localhost.localdomain>, relay=user@localhost Sep 21 14:42:57 linux4 sm-mta[12473]: k8LBgl2Z012473: from=<user@yellow.sergey.linux.nt>, size=495, class=0, nrcpts=1, msgid=<20060921114227.GA12445@localhost.localdomain>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 14:42:57 linux4 sendmail[12462]: k8LBglEd012462: to=user@server2.lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:10, xdelay=00:00:10, mailer=relay, pri=30291, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBgl2Z012473 Message accepted for delivery) Sep 21 14:42:58 linux4 sm-mta[12476]: k8LBgl2Z012473: to=<user@server2.lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120495, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 14:42:58 linux4 sm-mta[12476]: k8LBgl2Z012473: k8LBgw2Z012476: DSN: Data format error Sep 21 14:42:58 linux4 sm-mta[12476]: k8LBgw2Z012476: to=<user@yellow.sergey.linux.nt>, delay=00:00:00, mailer=local, pri=30000, dsn=4.4.3, stat=queued ... Sep 21 15:13:03 linux4 sendmail[13617]: k8LCD33R013617: from=root, size=41, class=0, nrcpts=1, msgid=<200609211213.k8LCD33R013617@yellow.sergey.unix.nt>, relay=root@localhost Sep 21 15:13:03 linux4 sm-mta[13620]: k8LCD3M1013620: from=<root@yellow.sergey.unix.nt>, size=337, class=0, nrcpts=1, msgid=<200609211213.k8LCD33R013617@yellow.sergey.unix.nt>, proto=ESMTP, daemon=MSP-v4, relay=smmsp@localhost [127.0.0.1] Sep 21 15:13:03 linux4 sendmail[13617]: k8LCD33R013617: to=user@lav.unix.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30041, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LCD3M1013620 Message accepted for delivery) Sep 21 15:13:04 linux4 sm-mta[13623]: k8LCD3M1013620: to=<user@lav.unix.nt>, ctladdr=<root@yellow.sergey.unix.nt> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120337, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 15:13:04 linux4 sm-mta[13623]: k8LCD3M1013620: k8LCD4M1013623: DSN: Data format error Sep 21 15:13:04 linux4 sm-mta[13623]: k8LCD4M1013623: to=<root@yellow.sergey.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent Subject: rerr qwre . Cc: |
#dig @127.0.0.1 lav.unix.nt mx
; <<>> DiG 9.2.4 <<>> @127.0.0.1 lav.unix.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61597 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;lav.unix.nt. IN MX ;; ANSWER SECTION: lav.unix.nt. 10373 IN MX 10 server2.lav.unix.nt. ;; AUTHORITY SECTION: lav.unix.nt. 10373 IN NS server2.lav.unix.nt. ;; ADDITIONAL SECTION: server2.lav.unix.nt. 10373 IN A 192.168.15.2 ;; Query time: 18 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 21 15:13:31 2006 ;; MSG SIZE rcvd: 83 |
#dig @127.0.0.1 sergey.unix.nt mx
; <<>> DiG 9.2.4 <<>> @127.0.0.1 sergey.unix.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45799 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;sergey.unix.nt. IN MX ;; ANSWER SECTION: sergey.unix.nt. 86400 IN MX 1 yellow.sergey.unix.nt. ;; AUTHORITY SECTION: sergey.unix.nt. 86400 IN NS yellow.sergey.unix.nt. ;; ADDITIONAL SECTION: yellow.sergey.unix.nt. 86400 IN A 192.168.15.4 ;; Query time: 18 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 21 15:14:00 2006 ;; MSG SIZE rcvd: 85 |
#mutt
Оставлено: 1, удалено: 0. |
#mutt
1 + Sep 21 Mail Delivery S ( 47) Returned mail: see transcript for details ---Mutt: /var/mail/root [Msgs:1 2,5K]---(threads/date)-----------------------------------------------------------------------------------------------------------(all)--- Почтовый ящик не изменился. |
#mutt
D+- 1/1: Mail Delivery Subsys Returned mail: see transcript for details Оставлено: 0, удалено: 1. |
#mutt
---Mutt: /var/mail/root [Msgs:0]---(threads/date)----------------------------------------------------------------------------------------------------------------(all)--- Почтовый ящик не изменился. |
#dig debian.unix.nt mx
; <<>> DiG 9.2.4 <<>> debian.unix.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 25353 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;debian.unix.nt. IN MX ;; AUTHORITY SECTION: . 10781 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2006092001 1800 900 604800 86400 ;; Query time: 17 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 21 15:21:24 2006 ;; MSG SIZE rcvd: 107 |
$mutt
+localhost.localdomain N +- 1/1: Mail Delivery Subsys Returned mail: see transcript for de -- (38%) Оставлено: 1, удалено: 0. |
$mutt
1 + Sep 21 Mail Delivery S ( 51) Returned mail: see transcript for details ---Mutt: /var/mail/user [Msgs:1 2,6K]---(threads/date)------------------(all)--- Почтовый ящик не изменился. |
$telnet 192.168.15.2 25
Trying 192.168.15.2... Connected to 192.168.15.2. Escape character is '^]'. 220 ;; ESMTP connection timed out; no servers could be reached Sendmail 8.13.8/8.13.8/Debian-2; Thu, 21 Sep 2006 15:15:22 +0300; (No UCE/UBE) logging access from: yellow.sergey.unix.nt(OK)-user@yellow.sergey.unix.nt [192.168.15.4] ^] telnet> й ?Invalid command telnet> ^]q ?Invalid command telnet> q Connection closed. |
$mutt
1 + Sep 21 Mail Delivery S ( 51) Returned mail: see transcript for details ---Mutt: /var/mail/user [Msgs:1 2,6K]---(threads/date)------------------(all)--- Почтовый ящик не изменился. |
$telnet 192.168.15.2 25
Trying 192.168.15.2... Connected to 192.168.15.2. Escape character is '^]'. 220 ;; ESMTP connection timed out; no servers could be reached Sendmail 8.13.8/8.13.8/Debian-2; Thu, 21 Sep 2006 15:19:18 +0300; (No UCE/UBE) logging access from: yellow.sergey.unix.nt(OK)-user@yellow.sergey.unix.nt [192.168.15.4] ^] telnet> q Connection closed. |
$mail user@debian.unix.nt
Sep 21 14:40:49 linux4 sendmail[12432]: k8LBenF0012432: to=user@server2.lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30053, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBengH012435 Message accepted for delivery) Sep 21 14:40:50 linux4 sm-mta[12438]: k8LBengH012435: to=<user@server2.lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120360, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 14:40:50 linux4 sm-mta[12438]: k8LBengH012435: k8LBeogH012438: DSN: Data format error Sep 21 14:40:50 linux4 sm-mta[12438]: k8LBeogH012438: to=<user@yellow.sergey.linux.nt>, delay=00:00:00, mailer=local, pri=30000, dsn=4.4.3, stat=queued Sep 21 14:42:47 linux4 sendmail[12462]: k8LBglEd012462: from=user, size=291, class=0, nrcpts=1, msgid=<20060921114227.GA12445@localhost.localdomain>, relay=user@localhost Sep 21 14:42:57 linux4 sm-mta[12473]: k8LBgl2Z012473: from=<user@yellow.sergey.linux.nt>, size=495, class=0, nrcpts=1, msgid=<20060921114227.GA12445@localhost.localdomain>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 14:42:57 linux4 sendmail[12462]: k8LBglEd012462: to=user@server2.lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:10, xdelay=00:00:10, mailer=relay, pri=30291, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBgl2Z012473 Message accepted for delivery) Sep 21 14:42:58 linux4 sm-mta[12476]: k8LBgl2Z012473: to=<user@server2.lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120495, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 14:42:58 linux4 sm-mta[12476]: k8LBgl2Z012473: k8LBgw2Z012476: DSN: Data format error Sep 21 14:42:58 linux4 sm-mta[12476]: k8LBgw2Z012476: to=<user@yellow.sergey.linux.nt>, delay=00:00:00, mailer=local, pri=30000, dsn=4.4.3, stat=queued ... Sep 21 15:21:05 linux4 sendmail[13847]: k8LCL0WT013847: from=user, size=53, class=0, nrcpts=1, msgid=<200609211221.k8LCL0WT013847@yellow.sergey.unix.nt>, relay=user@localhost Sep 21 15:21:05 linux4 sm-mta[13850]: k8LCL5WX013850: from=<user@yellow.sergey.unix.nt>, size=352, class=0, nrcpts=1, msgid=<200609211221.k8LCL0WT013847@yellow.sergey.unix.nt>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 15:21:05 linux4 sendmail[13847]: k8LCL0WT013847: to=user@debian.unix.nt, ctladdr=user (1000/1000), delay=00:00:05, xdelay=00:00:00, mailer=relay, pri=30053, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LCL5WX013850 Message accepted for delivery) Sep 21 15:21:05 linux4 sm-mta[13853]: k8LCL5WX013850: to=<user@debian.unix.nt>, ctladdr=<user@yellow.sergey.unix.nt> (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120352, relay=debian.unix.nt, dsn=5.1.2, stat=Host unknown (Name server: debian.unix.nt: host not found) Sep 21 15:21:05 linux4 sm-mta[13853]: k8LCL5WX013850: k8LCL5WX013853: DSN: Host unknown (Name server: debian.unix.nt: host not found) Sep 21 15:21:05 linux4 sm-mta[13853]: k8LCL5WX013853: to=<user@yellow.sergey.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent Subject: test lwjrkwkljhn . . Cc: |
$mail user@debian.linux.nt
Sep 21 14:40:49 linux4 sendmail[12432]: k8LBenF0012432: to=user@server2.lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30053, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBengH012435 Message accepted for delivery) Sep 21 14:40:50 linux4 sm-mta[12438]: k8LBengH012435: to=<user@server2.lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120360, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 14:40:50 linux4 sm-mta[12438]: k8LBengH012435: k8LBeogH012438: DSN: Data format error Sep 21 14:40:50 linux4 sm-mta[12438]: k8LBeogH012438: to=<user@yellow.sergey.linux.nt>, delay=00:00:00, mailer=local, pri=30000, dsn=4.4.3, stat=queued Sep 21 14:42:47 linux4 sendmail[12462]: k8LBglEd012462: from=user, size=291, class=0, nrcpts=1, msgid=<20060921114227.GA12445@localhost.localdomain>, relay=user@localhost Sep 21 14:42:57 linux4 sm-mta[12473]: k8LBgl2Z012473: from=<user@yellow.sergey.linux.nt>, size=495, class=0, nrcpts=1, msgid=<20060921114227.GA12445@localhost.localdomain>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 14:42:57 linux4 sendmail[12462]: k8LBglEd012462: to=user@server2.lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:10, xdelay=00:00:10, mailer=relay, pri=30291, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBgl2Z012473 Message accepted for delivery) Sep 21 14:42:58 linux4 sm-mta[12476]: k8LBgl2Z012473: to=<user@server2.lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120495, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 14:42:58 linux4 sm-mta[12476]: k8LBgl2Z012473: k8LBgw2Z012476: DSN: Data format error Sep 21 14:42:58 linux4 sm-mta[12476]: k8LBgw2Z012476: to=<user@yellow.sergey.linux.nt>, delay=00:00:00, mailer=local, pri=30000, dsn=4.4.3, stat=queued ... Sep 21 15:21:05 linux4 sm-mta[13853]: k8LCL5WX013850: k8LCL5WX013853: DSN: Host unknown (Name server: debian.unix.nt: host not found) Sep 21 15:21:05 linux4 sm-mta[13853]: k8LCL5WX013853: to=<user@yellow.sergey.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent Sep 21 15:21:47 linux4 sendmail[13883]: k8LCLl5T013883: from=user, size=42, class=0, nrcpts=1, msgid=<200609211221.k8LCLl5T013883@yellow.sergey.unix.nt>, relay=user@localhost Sep 21 15:21:47 linux4 sm-mta[13886]: k8LCLlSF013886: from=<user@yellow.sergey.unix.nt>, size=342, class=0, nrcpts=1, msgid=<200609211221.k8LCLl5T013883@yellow.sergey.unix.nt>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 15:21:47 linux4 sendmail[13883]: k8LCLl5T013883: to=user@debian.linux.nt, ctladdr=user (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30042, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LCLlSF013886 Message accepted for delivery) Sep 21 15:21:48 linux4 sm-mta[13889]: k8LCLlSF013886: to=<user@debian.linux.nt>, ctladdr=<user@yellow.sergey.unix.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120342, relay=debian.debian.linux.nt. [192.168.15.3], dsn=2.0.0, stat=Sent (k8LCLnuK010508 Message accepted for delivery) Subject: te hkl . Cc: |
#dig debian.linux.nt mx
; <<>> DiG 9.2.4 <<>> debian.linux.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52060 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;debian.linux.nt. IN MX ;; ANSWER SECTION: debian.linux.nt. 10359 IN MX 1 debian.debian.linux.nt. ;; AUTHORITY SECTION: debian.linux.nt. 10359 IN NS debian.debian.linux.nt. ;; ADDITIONAL SECTION: debian.debian.linux.nt. 10359 IN A 192.168.15.3 ;; Query time: 20 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 21 15:21:34 2006 ;; MSG SIZE rcvd: 86 |
#vi sendmail.mc
|
$mail user@debian.linux.nt
Sep 21 14:53:30 linux4 sm-mta[12620]: k8LBrUkG012620: from=<user@yellow.sergey.linux.nt>, size=684, class=0, nrcpts=1, msgid=<20060921115329.GD12515@localhost.localdomain>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 14:53:30 linux4 sendmail[12617]: k8LBrTRG012617: to=user@server2.lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30480, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBrUkG012620 Message accepted for delivery) Sep 21 14:53:31 linux4 sm-mta[12623]: k8LBrUkG012620: to=<user@server2.lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120684, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 14:53:31 linux4 sm-mta[12623]: k8LBrUkG012620: k8LBrVkG012623: DSN: Data format error Sep 21 14:53:31 linux4 sm-mta[12623]: k8LBrVkG012623: to=<user@yellow.sergey.linux.nt>, delay=00:00:00, mailer=local, pri=30000, dsn=4.4.3, stat=queued Sep 21 14:54:02 linux4 sendmail[12643]: k8LBs211012643: from=user, size=43, class=0, nrcpts=1, msgid=<200609211154.k8LBs211012643@yellow.sergey.linux.nt>, relay=user@localhost Sep 21 14:54:02 linux4 sm-mta[12646]: k8LBs2K7012646: from=<user@yellow.sergey.linux.nt>, size=342, class=0, nrcpts=1, msgid=<200609211154.k8LBs211012643@yellow.sergey.linux.nt>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 14:54:03 linux4 sendmail[12643]: k8LBs211012643: to=user@lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30043, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBs2K7012646 Message accepted for delivery) Sep 21 14:54:04 linux4 sm-mta[12649]: k8LBs2K7012646: to=<user@lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=120342, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 14:54:04 linux4 sm-mta[12649]: k8LBs2K7012646: k8LBs4K7012649: DSN: Data format error ... Sep 21 15:22:57 linux4 sendmail[13911]: k8LCMuEt013911: to=user@yuriksat.linux.nt,user@debian.linux.nt, ctladdr=user (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=60079, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LCMuvH013914 Message accepted for delivery) Sep 21 15:22:58 linux4 sm-mta[13917]: k8LCMuvH013914: to=<user@debian.linux.nt>, ctladdr=<user@yellow.sergey.unix.nt> (1000/1000), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=150354, relay=debian.debian.linux.nt. [192.168.15.3], dsn=2.0.0, stat=Sent (k8LCMxfq010623 Message accepted for delivery) Sep 21 15:22:59 linux4 sm-mta[13917]: k8LCMuvH013914: to=<user@yuriksat.linux.nt>, ctladdr=<user@yellow.sergey.unix.nt> (1000/1000), delay=00:00:03, xdelay=00:00:01, mailer=esmtp, pri=150354, relay=yuriksat.yuriksat.linux.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 15:22:59 linux4 sm-mta[13917]: k8LCMuvH013914: k8LCMxvH013917: DSN: Data format error Sep 21 15:22:59 linux4 sm-mta[13917]: k8LCMxvH013917: to=<user@yellow.sergey.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent Subject: test klwqhrkwtbn . Cc: user@yuriksat.linux.nt You have new mail in /var/mail/user |
$mail
Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/user": 3 messages 2 new 1 MAILER-DAEMON@loc Thu Sep 21 15:15 70/2659 Returned mail: see transcri >N 2 MAILER-DAEMON@loc Thu Sep 21 15:21 61/2277 Returned mail: see transcri N 3 MAILER-DAEMON@loc Thu Sep 21 15:22 64/2504 Returned mail: see transcri & & At EOFAILER-DAEMON@localhost.localdomain Thu Sep 21 15:22:59 2006 & qe: Thu, 21 Sep 2006 15:22:59 +0300 Saved 2 messages in /home/user/mboxER-DAEMON@localhost.localdomain> ... Auto-Submitted: auto-generated (failure) This is a MIME-encapsulated message --k8LCMxvH013917.1158841379/yellow.sergey.unix.nt The original message was received at Thu, 21 Sep 2006 15:22:56 +0300 from user@localhost [127.0.0.1] ----- The following addresses had permanent fatal errors ----- <user@yuriksat.linux.nt> (reason: 553 5.1.2 <user@localhost.localdomain>... Unrecognized host name lo calhost.localdomain) ----- Transcript of session follows ----- |
$mutt
+localhost.localdomain D+- 1/1: Mail Delivery Subsys Returned mail: see transcript for de -- (38%) Оставлено: 0, удалено: 1. |
$mutt
N +- 1/1: root Оставлено: 1, удалено: 0. |
$telnet 192.168.15.2 25
Trying 192.168.15.2... Connected to 192.168.15.2. Escape character is '^]'. 220 yuriksat.yuriksat.linux.nt ESMTP Sendmail 8.13.8/8.13.8/Debian-2; Thu, 21 Sep 2006 15:24:28 +0300; (No UCE/UBE) logging access from: yellow.sergey.unix.nt(OK)-user@yellow.sergey.unix.nt [192.168.15.4] ^] telnet> q Connection closed. |
$mutt
2 N Sep 21 Mail Delivery S ( 53) Returned mail: see transcript for details 2 N Sep 21 Mail Delivery S ( 53) Returned mail: see transcript for details 4 r Sep 21 User User ( 1) fwwfd 4 r Sep 21 User User ( 1) fwwfd 5 N Sep 21 Mail Delivery S ( 53) Returned mail: see transcript for details N - 6/6: User User Оставлено: 6, удалено: 0. |
#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` ** ** |
#mail
Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/root": 13 messages 13 new >N 1 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 2 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 3 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 4 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 5 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 6 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 7 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 8 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 9 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 10 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 11 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 12 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2310 Postmaster notify: see transcript for details N 13 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2310 Postmaster notify: see transcript for details & q Held 13 messages in /var/mail/root |
#mutt
O - 13/13: Mail Delivery Subsys Postmaster notify: see transcript for details 13 Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details Оставлено: 13, удалено: 0. |
#mutt
2 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 3 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 4 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 5 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 6 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 7 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 8 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 9 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 10 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 11 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 12 D Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 12 D Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 13 Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 8 O Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 9 O Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 10 O Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 11 O Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 12 Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details -*-Mutt: /var/mail/root [Msgs:13 Old:11 Del:13 29K]---(threads/date)---------------------------------------------------------------------------------------------(all)--- Оставлено: 0, удалено: 13. |
#make
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` ** ** |
#make
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` ** ** |
#/etc/init.d/sendmail restart
Sep 21 14:53:30 linux4 sendmail[12617]: k8LBrTRG012617: from=user, size=480, class=0, nrcpts=1, msgid=<20060921115329.GD12515@localhost.localdomain>, relay=user@localhost Sep 21 14:53:30 linux4 sm-mta[12620]: k8LBrUkG012620: from=<user@yellow.sergey.linux.nt>, size=684, class=0, nrcpts=1, msgid=<20060921115329.GD12515@localhost.localdomain>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 14:53:30 linux4 sendmail[12617]: k8LBrTRG012617: to=user@server2.lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30480, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBrUkG012620 Message accepted for delivery) Sep 21 14:53:31 linux4 sm-mta[12623]: k8LBrUkG012620: to=<user@server2.lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120684, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 14:53:31 linux4 sm-mta[12623]: k8LBrUkG012620: k8LBrVkG012623: DSN: Data format error Sep 21 14:53:31 linux4 sm-mta[12623]: k8LBrVkG012623: to=<user@yellow.sergey.linux.nt>, delay=00:00:00, mailer=local, pri=30000, dsn=4.4.3, stat=queued Sep 21 14:54:02 linux4 sendmail[12643]: k8LBs211012643: from=user, size=43, class=0, nrcpts=1, msgid=<200609211154.k8LBs211012643@yellow.sergey.linux.nt>, relay=user@localhost Sep 21 14:54:02 linux4 sm-mta[12646]: k8LBs2K7012646: from=<user@yellow.sergey.linux.nt>, size=342, class=0, nrcpts=1, msgid=<200609211154.k8LBs211012643@yellow.sergey.linux.nt>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 14:54:03 linux4 sendmail[12643]: k8LBs211012643: to=user@lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30043, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBs2K7012646 Message accepted for delivery) Sep 21 14:54:04 linux4 sm-mta[12649]: k8LBs2K7012646: to=<user@lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=120342, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error ... Sep 21 15:22:56 linux4 sm-mta[13914]: k8LCMuvH013914: from=<user@yellow.sergey.unix.nt>, size=354, class=0, nrcpts=2, msgid=<200609211222.k8LCMuEt013911@yellow.sergey.unix.nt>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 15:22:57 linux4 sendmail[13911]: k8LCMuEt013911: to=user@yuriksat.linux.nt,user@debian.linux.nt, ctladdr=user (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=60079, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LCMuvH013914 Message accepted for delivery) Sep 21 15:22:58 linux4 sm-mta[13917]: k8LCMuvH013914: to=<user@debian.linux.nt>, ctladdr=<user@yellow.sergey.unix.nt> (1000/1000), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=150354, relay=debian.debian.linux.nt. [192.168.15.3], dsn=2.0.0, stat=Sent (k8LCMxfq010623 Message accepted for delivery) Sep 21 15:22:59 linux4 sm-mta[13917]: k8LCMuvH013914: to=<user@yuriksat.linux.nt>, ctladdr=<user@yellow.sergey.unix.nt> (1000/1000), delay=00:00:03, xdelay=00:00:01, mailer=esmtp, pri=150354, relay=yuriksat.yuriksat.linux.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 15:22:59 linux4 sm-mta[13917]: k8LCMuvH013914: k8LCMxvH013917: DSN: Data format error Sep 21 15:22:59 linux4 sm-mta[13917]: k8LCMxvH013917: to=<user@yellow.sergey.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent Sep 21 15:24:17 linux4 sm-mta[13952]: k8LCOGMB013952: from=<root@localhost.localdomain>, size=545, class=0, nrcpts=1, msgid=<200609211224.k8LCOIDF010722@debian.debian.linux.nt>, proto=ESMTP, daemon=MTA-v4, relay=root@debian.debian.linux.nt [192.168.15.3] Sep 21 15:24:17 linux4 sm-mta[13953]: k8LCOGMB013952: to=<user@sergey.unix.nt>, ctladdr=<root@localhost.localdomain> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30787, dsn=2.0.0, stat=Sent Sep 21 15:27:11 linux4 sm-mta[14215]: starting daemon (8.13.8): SMTP+queueing@00:10:00 Restarting Transport Agent: sendmail. |
#mutt
Оставлено: 1, удалено: 0. |
#dig lav.unix.nt mx
; <<>> DiG 9.2.4 <<>> lav.unix.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13835 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;lav.unix.nt. IN MX ;; ANSWER SECTION: lav.unix.nt. 9221 IN MX 10 server2.lav.unix.nt. ;; AUTHORITY SECTION: lav.unix.nt. 9221 IN NS server2.lav.unix.nt. ;; ADDITIONAL SECTION: server2.lav.unix.nt. 9221 IN A 192.168.15.2 ;; Query time: 18 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 21 15:32:43 2006 ;; MSG SIZE rcvd: 83 |
#rndc flush
|
#dig lav.unix.nt mx
; <<>> DiG 9.2.4 <<>> lav.unix.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50676 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;lav.unix.nt. IN MX ;; ANSWER SECTION: lav.unix.nt. 9210 IN MX 10 server2.lav.unix.nt. ;; AUTHORITY SECTION: lav.unix.nt. 9210 IN NS server2.lav.unix.nt. ;; ADDITIONAL SECTION: server2.lav.unix.nt. 9210 IN A 192.168.15.2 ;; Query time: 20 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 21 15:32:55 2006 ;; MSG SIZE rcvd: 83 |
#rndc flush
|
#rndc flush
|
#rndc flush
|
#dig lav.unix.nt mx
; <<>> DiG 9.2.4 <<>> lav.unix.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5068 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;lav.unix.nt. IN MX ;; ANSWER SECTION: lav.unix.nt. 10800 IN MX 10 server2.lav.unix.nt. ;; AUTHORITY SECTION: lav.unix.nt. 10800 IN NS server2.lav.unix.nt. ;; ADDITIONAL SECTION: server2.lav.unix.nt. 10800 IN A 192.168.15.21 ;; Query time: 23 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 21 15:33:32 2006 ;; MSG SIZE rcvd: 83 |
#ls /home
linux-2.6.15.2.tar.bz2 linux-2.6.16.13.tar.bz2 linux-2.6.16-xen3.0.2-hg9629.patch.gz linux-source-2.6.16.tar.bz2 lost+found user xen-unstable-src.tgz You have new mail in /var/mail/root |
#tar xvjfC /home/linux-2.6.16.13.tar.bz2 /usr/src
linux-2.6.16.13/Documentation/video4linux/README.saa7134 linux-2.6.16.13/Documentation/video4linux/Zoran linux-2.6.16.13/Documentation/video4linux/bttv/ linux-2.6.16.13/Documentation/video4linux/bttv/CONTRIBUTORS linux-2.6.16.13/Documentation/video4linux/bttv/Cards linux-2.6.16.13/Documentation/video4linux/bttv/ICs linux-2.6.16.13/Documentation/video4linux/bttv/Insmod-options linux-2.6.16.13/Documentation/video4linux/bttv/MAKEDEV linux-2.6.16.13/Documentation/video4linux/bttv/Modprobe.conf linux-2.6.16.13/Documentation/video4linux/bttv/Modules.conf ... linux-2.6.16.13/arch/alpha/kernel/sys_titan.c linux-2.6.16.13/arch/alpha/kernel/sys_wildfire.c linux-2.6.16.13/arch/alpha/kernel/systbls.S linux-2.6.16.13/arch/alpha/kernel/time.c linux-2.6.16.13/arch/alpha/kernel/traps.c linux-2.6.16.13/arch/alpha/kernel/vmlinux.lds.S linux-2.6.16.13/arch/alpha/lib/ linux-2.6.16.13/arch/alpha/lib/Makefile linux-2.6.16.13/arch/alpha/lib/callback_srm.S linux-2.6.16.13/arch/alpha/lib/checksum.c |
#cd linux-2.6.1
![]() linux-2.6.15.2 linux-2.6.15.2.tar.bz2 linux-2.6.16.13 |
#cd linux-2.6.16.13/
|
#cd..
![]() bash: cd..: command not found |
#cd ..
|
#ls
linux-2.6.15.2 linux-2.6.15.2.tar.bz2 linux-2.6.16.13 xen-unstable |
#cd -
/usr/src/linux-2.6.16.13 |
#make menuconfig
x x x x Loadable module support ---> x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x Processor type and features ---> x x Power management options (ACPI, APM) ---> x x Bus options (PCI, PCMCIA, EISA, MCA, ISA) ---> x x Executable file formats ---> x x Networking ---> x x Device Drivers ---> x x ... x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x |
#make && make modules_install && make install
![]() CC [M] fs/reiserfs/hashes.o CC [M] fs/reiserfs/tail_conversion.o CC [M] fs/reiserfs/journal.o CC [M] fs/reiserfs/resize.o CC [M] fs/reiserfs/item_ops.o CC [M] fs/reiserfs/ioctl.o CC [M] fs/reiserfs/procfs.o LD [M] fs/reiserfs/reiserfs.o LD fs/romfs/built-in.o CC [M] fs/romfs/inode.o ... CC [M] fs/xfs/linux-2.6/xfs_aops.o CC [M] fs/xfs/linux-2.6/xfs_buf.o CC [M] fs/xfs/linux-2.6/xfs_file.o CC [M] fs/xfs/linux-2.6/xfs_fs_subr.o CC [M] fs/xfs/linux-2.6/xfs_globals.o CC [M] fs/xfs/linux-2.6/xfs_ioctl.o CC [M] fs/xfs/linux-2.6/xfs_iops.o make[2]: *** [fs/xfs/linux-2.6/xfs_iops.o] Interrupt make[1]: *** [fs/xfs] Interrupt make: *** [fs] Interrupt |
#make clean
CLEAN /usr/src/linux-2.6.16.13 CLEAN arch/i386/kernel CLEAN init CLEAN kernel CLEAN usr CLEAN .tmp_versions |
#cp ../.config .
|
#ls .config
.config |
#reboot
|
$su -
Password: l3-agent is already running: pid=5208; pidfile=/root/.lilalo/l3-agent.pid |
$mutt
2 OD Sep 21 Mail Delivery S ( 53) Returned mail: see transcript for details 3 rD Sep 21 root ( 1) yuriksat 4 rD Sep 21 User User ( 1) fwwfd 5 OD Sep 21 Mail Delivery S ( 53) Returned mail: see transcript for details 6 D Sep 21 User User ( 1) Re: test 7 D Sep 21 root ( 8) 8 D Sep 21 Mail Delivery S ( 53) Returned mail: see transcript for details 9 rD Sep 21 User User ( 2) 1234 1234 -- (all) Del:9 13K]---(threads/date) Оставлено: 0, удалено: 9. |
$su -
Password: |
#sendmail -bt
WARNING: local host name (;; connection timed out; no servers could be reached) is not qualified; see cf/README: WHO AM I? ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > interrupt > interrupt > /q Unknown "/" command /q > q No address! > quit No address! |
#sendmail -bv user@server2.lav.unix.nt
user@server2.lav.unix.nt... deliverable: mailer esmtp, host server2.lav.unix.nt., user user@server2.lav.unix.nt |
#sendmail -bv user@lav.unix.nt
user@lav.unix.nt... deliverable: mailer esmtp, host lav.unix.nt., user user@lav.unix.nt |
#tail -f /var/log/mail.log
![]() Sep 21 16:09:31 linux4 sendmail[5313]: gethostbyaddr(192.168.15.45) failed: 1 Sep 21 16:09:31 linux4 sendmail[5313]: gethostbyaddr(10.0.17.1) failed: 1 Sep 21 16:11:08 linux4 sm-mta[5321]: k8LDB7TC005321: from=<user@server2.lav.unix.nt>, size=724, class=0, nrcpts=1, msgid=<20060921131204.GA8513@server2.lav.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=fbsd1.linux.nt [192.168.15.21] Sep 21 16:11:08 linux4 sm-mta[5322]: k8LDB7TC005321: to=<user@sergey.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30962, dsn=2.0.0, stat=Sent Sep 21 16:11:32 linux4 sendmail[5334]: k8LDBWSS005334: from=user, size=503, class=0, nrcpts=1, msgid=<20060921131132.GA5324@localhost.localdomain>, relay=user@localhost Sep 21 16:11:32 linux4 sm-mta[5337]: k8LDBWYl005337: from=<user@linux4.linux.nt>, size=693, class=0, nrcpts=1, msgid=<20060921131132.GA5324@localhost.localdomain>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 16:11:32 linux4 sendmail[5334]: k8LDBWSS005334: to=user@server2.lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30503, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LDBWYl005337 Message accepted for delivery) Sep 21 16:11:32 linux4 sm-mta[5346]: k8LDBWYl005337: to=<user@server2.lav.unix.nt>, ctladdr=<user@linux4.linux.nt> (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120693, relay=server2.lav.unix.nt. [192.168.15.21], dsn=5.0.0, stat=Service unavailable Sep 21 16:11:32 linux4 sm-mta[5346]: k8LDBWYl005337: k8LDBWYl005346: DSN: Service unavailable Sep 21 16:11:32 linux4 sm-mta[5346]: k8LDBWYl005346: to=<user@linux4.linux.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent |
#cat /etc/mail/local-host-names
localhost linux4.linux.nt sergey.unix.nt yellow.sergey.unix.nt |
#sendmail -d0.1 -bt < /dev/null
Version 8.13.8 Compiled with: DNSMAP LDAPMAP LDAP_REFERRALS LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS NISPLUS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS USERDB USE_LDAP_INIT XDEBUG ============ SYSTEM IDENTITY (after readcf) ============ (short domain name) $w = linux4 (canonical domain name) $j = ;; connection timed out; no servers could be reached (subdomain name) $m = linux.nt (node name) $k = linux4.linux.nt ======================================================== WARNING: local host name (;; connection timed out; no servers could be reached) is not qualified; see cf/README: WHO AM I? ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> |
$su -
Password: l3-agent is already running: pid=5208; pidfile=/root/.lilalo/l3-agent.pid |
#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: sendmail. |
#vi sendmail.mc
|
#netstat -lnp | grep :110
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 4080/popa3d |
#cd /usr/src/linux-2.6.16.13/
|
$ssh root@192.168.15.2
Password: Last login: Thu Sep 21 17:02:46 2006 from 192.168.15.254 Linux linux2.linux.nt 2.4.27-speakup #1 Thu Aug 19 21:46:14 CEST 2004 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have new mail. l3-agent is already running: pid=2027; pidfile=/root/.lilalo/l3-agent.pid |
#make && make modules_install && make install
CC [M] drivers/char/drm/mga_irq.o CC [M] drivers/char/drm/r128_drv.o CC [M] drivers/char/drm/r128_cce.o CC [M] drivers/char/drm/r128_state.o CC [M] drivers/char/drm/r128_irq.o CC [M] drivers/char/drm/radeon_drv.o CC [M] drivers/char/drm/radeon_cp.o CC [M] drivers/char/drm/radeon_state.o CC [M] drivers/char/drm/radeon_mem.o CC [M] drivers/char/drm/radeon_irq.o ... drivers/char/stallion.c:1190: warning: `restore_flags' is deprecated (declared at include/linux/interrupt.h:84) drivers/char/stallion.c: In function `stl_getportstats': drivers/char/stallion.c:2899: warning: `save_flags' is deprecated (declared at include/linux/interrupt.h:79) drivers/char/stallion.c:2900: warning: `cli' is deprecated (declared at include/linux/interrupt.h:71) drivers/char/stallion.c:2914: warning: `restore_flags' is deprecated (declared at include/linux/interrupt.h:84) drivers/char/stallion.c: In function `stl_cd1400setport': drivers/char/stallion.c:3448: warning: `save_flags' is deprecated (declared at include/linux/interrupt.h:79) drivers/char/stallion.c:3449: warning: `cli' is deprecated (declared at include/linux/interrupt.h:71) drivers/char/stallion.c:3486: warning: `restore_flags' is deprecated (declared at include/linux/interrupt.h:84) drivers/char/stallion.c: In function `stl_cd1400setsignals': |
#sendmail -d0.1 -bt < /dev/null
Version 8.13.8 Compiled with: DNSMAP LDAPMAP LDAP_REFERRALS LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS NISPLUS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS USERDB USE_LDAP_INIT XDEBUG ============ SYSTEM IDENTITY (after readcf) ============ (short domain name) $w = linux4 (canonical domain name) $j = $w.$m (subdomain name) $m = linux.nt (node name) $k = linux4.linux.nt ======================================================== ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> |
#ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:60:08:20:7B:0B inet addr:192.168.15.45 Bcast:192.168.15.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:16 Base address:0xc400 |
#ifconfig eth1 192.168.16.1
|
#iptables -t nat -A POSTROUTING -j MASQUERADE
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:76:A1:EF:BB inet addr:192.168.15.4 Bcast:192.168.15.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:39288 errors:0 dropped:0 overruns:0 frame:0 TX packets:43595 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4460332 (4.2 MiB) TX bytes:21699249 (20.6 MiB) Interrupt:17 Base address:0xc000 eth1 Link encap:Ethernet HWaddr 00:60:08:20:7B:0B inet addr:192.168.16.1 Bcast:192.168.16.255 Mask:255.255.255.0 ... inet addr:10.0.17.1 Bcast:10.255.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:16 Base address:0xc400 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2805 errors:0 dropped:0 overruns:0 frame:0 TX packets:2805 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:12551774 (11.9 MiB) TX bytes:12551774 (11.9 MiB) |
localhost linux4.linux.nt sergey.unix.nt yellow.sergey.unix.nt
Время первой команды журнала | 14:56:42 2006- 9-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:54:46 2006- 9-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 4.95 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.97 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.86 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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