/l3/users/clint/postfix/freebsd6.clinika.local/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 |
|
#ls /usr/local/etc/rc.d/postfix
/usr/local/etc/rc.d/postfix |
#vim /usr/local/etc/rc.d/postfix
|
#:q!
|
#pwd
/usr/ports/mail/postfix |
#cd -
/usr/ports/mail/postfix |
#pwd
/usr/ports/mail/postfix |
#ls
Makefile files pkg-install pkg-plist distinfo pkg-descr pkg-message work |
#/usr/local/etc/rc.d/postfix.sh
bash: /usr/local/etc/rc.d/postfix.sh: No such file or directory |
#ls
Makefile files pkg-install pkg-plist distinfo pkg-descr pkg-message work |
#pwd
/usr/ports/mail/postfix |
#cd /usr/local/etc/postfix/
|
#ls
LICENSE generic postfix-files TLS_LICENSE header_checks postfix-script access main.cf relocated aliases main.cf.default transport bounce.cf.default makedefs.out virtual canonical master.cf dist post-install |
#vim post-install
|
#config_directory" || {
|
#ls
LICENSE generic postfix-files TLS_LICENSE header_checks postfix-script access main.cf relocated aliases main.cf.default transport bounce.cf.default makedefs.out virtual canonical master.cf dist post-install |
#vim access
|
#vim access
|
#ACCESS(5)
LICENSE generic postfix-files TLS_LICENSE header_checks postfix-script access main.cf relocated aliases main.cf.default transport bounce.cf.default makedefs.out virtual canonical master.cf dist post-install |
#vim main.cf
--- /tmp/l3-saved-16414.10045.30312 Wed May 28 19:01:22 2008 +++ main.cf Wed May 28 19:09:56 2008 @@ -74,13 +74,14 @@ # #myhostname = host.domain.tld #myhostname = virtual.domain.tld +myhostname = freebsd6.clinika.local # The mydomain parameter specifies the local internet domain name. # The default is to use $myhostname minus the first component. # $mydomain is used as a default value for many other configuration # parameters. # -#mydomain = domain.tld +#mydomain = clinika.local # SENDING MAIL # @@ -96,7 +97,7 @@ # to recipient addresses that have no @domain part. # #myorigin = $myhostname -#myorigin = $mydomain +myorigin = $mydomain # RECEIVING MAIL @@ -112,7 +113,7 @@ # #inet_interfaces = all #inet_interfaces = $myhostname -#inet_interfaces = $myhostname, localhost +inet_interfaces = $myhostname, localhost # The proxy_interfaces parameter specifies the network interface # addresses that this mail system receives mail on by way of a @@ -390,7 +391,7 @@ # #alias_database = dbm:/etc/aliases #alias_database = dbm:/etc/mail/aliases -#alias_database = hash:/etc/aliases +alias_database = hash:/etc/aliases #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases # ADDRESS EXTENSIONS (e.g., user+foo) @@ -419,7 +420,7 @@ # system type. # #mail_spool_directory = /var/mail -#mail_spool_directory = /var/spool/mail +mail_spool_directory = /var/spool/mail # The mailbox_command parameter specifies the optional external # command to use instead of mailbox delivery. The command is run as @@ -542,7 +543,7 @@ # RFC requirement. Postfix itself does not care. # #smtpd_banner = $myhostname ESMTP $mail_name -#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) +smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) # PARALLEL DELIVERY TO THE SAME DESTINATION # |
#vim main.cf
--- /tmp/l3-saved-16414.10045.30312 Wed May 28 19:01:22 2008 +++ main.cf Wed May 28 19:09:56 2008 @@ -74,13 +74,14 @@ # #myhostname = host.domain.tld #myhostname = virtual.domain.tld +myhostname = freebsd6.clinika.local # The mydomain parameter specifies the local internet domain name. # The default is to use $myhostname minus the first component. # $mydomain is used as a default value for many other configuration # parameters. # -#mydomain = domain.tld +#mydomain = clinika.local # SENDING MAIL # @@ -96,7 +97,7 @@ # to recipient addresses that have no @domain part. # #myorigin = $myhostname -#myorigin = $mydomain +myorigin = $mydomain # RECEIVING MAIL @@ -112,7 +113,7 @@ # #inet_interfaces = all #inet_interfaces = $myhostname -#inet_interfaces = $myhostname, localhost +inet_interfaces = $myhostname, localhost # The proxy_interfaces parameter specifies the network interface # addresses that this mail system receives mail on by way of a @@ -390,7 +391,7 @@ # #alias_database = dbm:/etc/aliases #alias_database = dbm:/etc/mail/aliases -#alias_database = hash:/etc/aliases +alias_database = hash:/etc/aliases #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases # ADDRESS EXTENSIONS (e.g., user+foo) @@ -419,7 +420,7 @@ # system type. # #mail_spool_directory = /var/mail -#mail_spool_directory = /var/spool/mail +mail_spool_directory = /var/spool/mail # The mailbox_command parameter specifies the optional external # command to use instead of mailbox delivery. The command is run as @@ -542,7 +543,7 @@ # RFC requirement. Postfix itself does not care. # #smtpd_banner = $myhostname ESMTP $mail_name -#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) +smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) # PARALLEL DELIVERY TO THE SAME DESTINATION # |
#vim main.cf
--- /tmp/l3-saved-16414.10045.30312 Wed May 28 19:01:22 2008 +++ main.cf Wed May 28 19:09:56 2008 @@ -74,13 +74,14 @@ # #myhostname = host.domain.tld #myhostname = virtual.domain.tld +myhostname = freebsd6.clinika.local # The mydomain parameter specifies the local internet domain name. # The default is to use $myhostname minus the first component. # $mydomain is used as a default value for many other configuration # parameters. # -#mydomain = domain.tld +#mydomain = clinika.local # SENDING MAIL # @@ -96,7 +97,7 @@ # to recipient addresses that have no @domain part. # #myorigin = $myhostname -#myorigin = $mydomain +myorigin = $mydomain # RECEIVING MAIL @@ -112,7 +113,7 @@ # #inet_interfaces = all #inet_interfaces = $myhostname -#inet_interfaces = $myhostname, localhost +inet_interfaces = $myhostname, localhost # The proxy_interfaces parameter specifies the network interface # addresses that this mail system receives mail on by way of a @@ -390,7 +391,7 @@ # #alias_database = dbm:/etc/aliases #alias_database = dbm:/etc/mail/aliases -#alias_database = hash:/etc/aliases +alias_database = hash:/etc/aliases #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases # ADDRESS EXTENSIONS (e.g., user+foo) @@ -419,7 +420,7 @@ # system type. # #mail_spool_directory = /var/mail -#mail_spool_directory = /var/spool/mail +mail_spool_directory = /var/spool/mail # The mailbox_command parameter specifies the optional external # command to use instead of mailbox delivery. The command is run as @@ -542,7 +543,7 @@ # RFC requirement. Postfix itself does not care. # #smtpd_banner = $myhostname ESMTP $mail_name -#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) +smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) # PARALLEL DELIVERY TO THE SAME DESTINATION # |
#vim main.cf
--- /tmp/l3-saved-16414.10045.30312 Wed May 28 19:01:22 2008 +++ main.cf Wed May 28 19:09:56 2008 @@ -74,13 +74,14 @@ # #myhostname = host.domain.tld #myhostname = virtual.domain.tld +myhostname = freebsd6.clinika.local # The mydomain parameter specifies the local internet domain name. # The default is to use $myhostname minus the first component. # $mydomain is used as a default value for many other configuration # parameters. # -#mydomain = domain.tld +#mydomain = clinika.local # SENDING MAIL # @@ -96,7 +97,7 @@ # to recipient addresses that have no @domain part. # #myorigin = $myhostname -#myorigin = $mydomain +myorigin = $mydomain # RECEIVING MAIL @@ -112,7 +113,7 @@ # #inet_interfaces = all #inet_interfaces = $myhostname -#inet_interfaces = $myhostname, localhost +inet_interfaces = $myhostname, localhost # The proxy_interfaces parameter specifies the network interface # addresses that this mail system receives mail on by way of a @@ -390,7 +391,7 @@ # #alias_database = dbm:/etc/aliases #alias_database = dbm:/etc/mail/aliases -#alias_database = hash:/etc/aliases +alias_database = hash:/etc/aliases #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases # ADDRESS EXTENSIONS (e.g., user+foo) @@ -419,7 +420,7 @@ # system type. # #mail_spool_directory = /var/mail -#mail_spool_directory = /var/spool/mail +mail_spool_directory = /var/spool/mail # The mailbox_command parameter specifies the optional external # command to use instead of mailbox delivery. The command is run as @@ -542,7 +543,7 @@ # RFC requirement. Postfix itself does not care. # #smtpd_banner = $myhostname ESMTP $mail_name -#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) +smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) # PARALLEL DELIVERY TO THE SAME DESTINATION # |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#egrep -v "^#|^\ *$" main.cf
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = freebsd6.clinika.local myorigin = $mydomain inet_interfaces = $myhostname, localhost unknown_local_recipient_reject_code = 550 mynetworks_style = host ... PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = no manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no |
#/usr/local/etc/rc.d/postfix restart
postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system |
#/usr/local/etc/rc.d/postfix restart
postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system |
#/usr/local/etc/rc.d/postfix restart
postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system |
#/usr/local/etc/rc.d/postfix restart
postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system |
#telnet freebsd6.clinika.local 25
Trying 192.168.7.250... Connected to freebsd6.clinika.local. Escape character is '^]'. ^] telnet> q Connection closed. |
#telnet freebsd6.clinika.local 25
Trying 192.168.7.250... Connected to freebsd6.clinika.local. Escape character is '^]'. ^] telnet> q Connection closed. |
#telnet freebsd6.clinika.local 25
Trying 192.168.7.250... Connected to freebsd6.clinika.local. Escape character is '^]'. ^] telnet> q Connection closed. |
#telnet freebsd6.clinika.local 25
Trying 192.168.7.250... Connected to freebsd6.clinika.local. Escape character is '^]'. ^] telnet> q Connection closed. |
#/usr/local/etc/rc.d/postfix restart
postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system |
#/usr/local/etc/rc.d/postfix restart
postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system |
#/usr/local/etc/rc.d/postfix restart
postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system |
#/usr/local/etc/rc.d/postfix restart
postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system |
#less /var/log//maillog
|
#less /var/log//maillog
|
#less /var/log//maillog
|
#less /var/log//maillog
|
#vim /etc/aliases
|
#vim /etc/aliases
|
#vim /etc/aliases
|
#vim /etc/aliases
|
#/usr/local/etc/rc.d/postfix restart
postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system |
#/usr/local/etc/rc.d/postfix restart
postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system |
#/usr/local/etc/rc.d/postfix restart
postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system |
#/usr/local/etc/rc.d/postfix restart
postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system |
#less /var/log//maillog
|
#less /var/log//maillog
|
#less /var/log//maillog
|
#less /var/log//maillog
|
#telnet freebsd6.clinika.local 25
Trying 192.168.7.250... Connected to freebsd6.clinika.local. Escape character is '^]'. 220 freebsd6.clinika.local ESMTP Postfix (2.5.1) HELO freebsd6 250 freebsd6.clinika.local MAIL FROM:<bill.gates@microsoft.com> 250 2.1.0 Ok RCPT TO:<>^[[D 501 5.1.3 Bad recipient address syntax RCPT TO:<root@clinika.local> 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> test from telnet . 250 2.0.0 Ok: queued as D1BCD1702C ^]q telnet> q Connection closed. |
#mail
No mail for root |
#less /var/log/maillog
|
#telnet freebsd6.clinika.local 25
Trying 192.168.7.250... Connected to freebsd6.clinika.local. Escape character is '^]'. 220 freebsd6.clinika.local ESMTP Postfix (2.5.1) HELO freebsd6 250 freebsd6.clinika.local ^]q telnet> q Connection closed. |
#telnet freebsd6.clinika.local 25
Trying 192.168.7.250... Connected to freebsd6.clinika.local. Escape character is '^]'. 220 freebsd6.clinika.local ESMTP Postfix (2.5.1) HELO zlo 250 freebsd6.clinika.local MAIL FROM:<root@clinika.local>< 501 5.1.7 Bad sender address syntax MAIL FROM:<root@clinika.local> 250 2.1.0 Ok RCPT TO:<root@clinika.local> 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> test from telnet . 250 2.0.0 Ok: queued as 3321D1702C ^]q telnet> q Connection closed. |
#mail
No mail for root |
#less /var/log/maillog
|
#telnet freebsd6.clinika.local 25
Trying 192.168.7.250... Connected to freebsd6.clinika.local. Escape character is '^]'. 220 freebsd6.clinika.local ESMTP Postfix (2.5.1) HELO zlo 250 freebsd6.clinika.local P,P$P(P P^PP^Z MAIL FROM:<root@clinika.local> ^]q telnet> q Connection closed. |
#telnet freebsd6.clinika.local 25
Trying 192.168.7.250... Connected to freebsd6.clinika.local. Escape character is '^]'. 220 freebsd6.clinika.local ESMTP Postfix (2.5.1) HELO freebsd6 250 freebsd6.clinika.local MAIL FROM:<user@clinika.local> 250 2.1.0 Ok RCPT TO:<root@clinika.local> 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> test . 250 2.0.0 Ok: queued as 3D4C71702C ^]q telnet> q Connection closed. |
#less /var/log/maillog
|
#less /var/log/maillog
|
#less /var/log/maillog
|
#LANG=C
|
#less /var/log/maillog
|
#cd /usr/local/etc/postfix/
|
#ls
LICENSE canonical main.cf.default postfix-script TLS_LICENSE dist makedefs.out relocated access generic master.cf transport aliases header_checks post-install virtual bounce.cf.default main.cf postfix-files |
#ls -l
total 230 -rw-r--r-- 1 root wheel 11942 May 28 18:14 LICENSE -rw-r--r-- 1 root wheel 1629 May 28 18:14 TLS_LICENSE -rw-r--r-- 1 root wheel 18337 May 28 18:14 access -rw-r--r-- 1 root wheel 8829 May 28 18:14 aliases -rw-r--r-- 1 root wheel 3548 May 28 18:14 bounce.cf.default -rw-r--r-- 1 root wheel 11721 May 28 18:14 canonical drwxr-xr-x 2 root wheel 512 May 28 18:15 dist -rw-r--r-- 1 root wheel 9984 May 28 18:14 generic -rw-r--r-- 1 root wheel 17794 May 28 18:14 header_checks -rw-r--r-- 1 root wheel 26060 May 28 19:09 main.cf -rw-r--r-- 1 root wheel 21422 May 28 18:14 main.cf.default -rw-r--r-- 1 root wheel 545 May 28 18:14 makedefs.out -rw-r--r-- 1 root wheel 5093 May 28 18:14 master.cf -rwxr-xr-x 1 root wheel 22743 May 28 18:14 post-install -rw-r--r-- 1 root wheel 17890 May 28 18:17 postfix-files -rwxr-xr-x 1 root wheel 6949 May 28 18:14 postfix-script -rw-r--r-- 1 root wheel 6836 May 28 18:14 relocated -rw-r--r-- 1 root wheel 12439 May 28 18:14 transport -rw-r--r-- 1 root wheel 12564 May 28 18:14 virtual |
#vim master.cf
|
#less /var/log/maillog
|
#mail -s test user@clinika.local
df . EOT |
#mail -u user
Mail version 8.1 6/6/93. Type ? for help. "/var/mail/user": 0 messages & q |
#less /var/log/maillog
|
#less /var/log/maillog
|
#vim ma
|
#vim ma
|
#vim master.cf
|
#vim master.cf
|
#vim master.cf
|
#vim master.cf
|
#:q!
|
#:q!
|
#:q!
|
Время первой команды журнала | 21:54:40 2008- 5-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 22:35:19 2008- 5-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.68 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.48 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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