/l3/users/eb/2009/linux13/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 :45 :46 :47 :48 :49 :50 :51 :52 :53 :54 :55 :56 :57 :58 :59 :60 :61 :62 :63 :64 :65 :66 :67 :68 :69 :70 :71 :72 :73 :74 :75 :76 |
|
#/etc/
Display all 102 possibilities? (y or n) alternatives/ dhcp3/ kbd/ opt/ rmt apache2/ dictionaries-common/ kde3/ pam.d/ security/ apm/ dm/ kernel/ pango/ service/ apparmor.d/ dpkg/ ldap/ perl/ sgml/ approx/ emacs/ ld.so.conf.d/ pm/ skel/ apt/ exim4/ libpaper.d/ PolicyKit/ ssh/ bash_completion.d/ fonts/ lilalo/ ppp/ ssl/ bind/ gamin/ logcheck/ pulse/ sv/ ca-certificates/ gconf/ logrotate.d/ purple/ sysctl.d/ ... ConsoleKit/ groff/ mail/ rc0.d/ udev/ console-setup/ grub.d/ mdadm/ rc1.d/ ufw/ cron.d/ gtk-2.0/ menu/ rc2.d/ vga/ cron.daily/ hal/ menu-methods/ rc3.d/ vim/ cron.hourly/ htdig/ modprobe.d/ rc4.d/ X11/ cron.monthly/ iceweasel/ monit/ rc5.d/ xdg/ cron.weekly/ init.d/ mysql/ rc6.d/ xml/ dbus-1/ initramfs-tools/ network/ rc.local default/ iproute2/ openoffice/ rcS.d/ defoma/ john/ openvpn/ resolvconf/ |
#/etc/
Display all 102 possibilities? (y or n) alternatives/ dhcp3/ kbd/ opt/ rmt apache2/ dictionaries-common/ kde3/ pam.d/ security/ apm/ dm/ kernel/ pango/ service/ apparmor.d/ dpkg/ ldap/ perl/ sgml/ approx/ emacs/ ld.so.conf.d/ pm/ skel/ apt/ exim4/ libpaper.d/ PolicyKit/ ssh/ bash_completion.d/ fonts/ lilalo/ ppp/ ssl/ bind/ gamin/ logcheck/ pulse/ sv/ ca-certificates/ gconf/ logrotate.d/ purple/ sysctl.d/ ... ConsoleKit/ groff/ mail/ rc0.d/ udev/ console-setup/ grub.d/ mdadm/ rc1.d/ ufw/ cron.d/ gtk-2.0/ menu/ rc2.d/ vga/ cron.daily/ hal/ menu-methods/ rc3.d/ vim/ cron.hourly/ htdig/ modprobe.d/ rc4.d/ X11/ cron.monthly/ iceweasel/ monit/ rc5.d/ xdg/ cron.weekly/ init.d/ mysql/ rc6.d/ xml/ dbus-1/ initramfs-tools/ network/ rc.local default/ iproute2/ openoffice/ rcS.d/ defoma/ john/ openvpn/ resolvconf/ |
#netstat -lnp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN 7304/sendmail: MTA: tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 3554/inetd tcp 0 0 0.0.0.0:9999 0.0.0.0:* LISTEN 3554/inetd tcp 0 0 192.168.15.13:53 0.0.0.0:* LISTEN 3241/named tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3263/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 7304/sendmail: MTA: tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 3241/named tcp6 0 0 :::80 :::* LISTEN 3774/apache2 ... unix 2 [ ACC ] STREAM LISTENING 11364 3726/X /tmp/.X11-unix/X0 unix 2 [ ACC ] STREAM LISTENING 12628 3945/gnome-keyring- /tmp/keyring-JHVURj/socket unix 2 [ ACC ] STREAM LISTENING 12712 3990/ssh-agent /tmp/ssh-djFTUz3948/agent.3948 unix 2 [ ACC ] STREAM LISTENING 12768 3948/x-session-mana /tmp/.ICE-unix/3948 unix 2 [ ACC ] STREAM LISTENING 13206 4049/gconfd-2 /tmp/orbit-user/linc-fd1-0-5695eb60b6ba0 unix 2 [ ACC ] STREAM LISTENING 13223 4045/firefox-bin /tmp/orbit-user/linc-fcd-0-511dec63c7304 unix 2 [ ACC ] STREAM LISTENING 13779 4011/pidgin /tmp/orbit-user/linc-fab-0-674ec004a76c unix 2 [ ACC ] STREAM LISTENING 16024 4656/ssh-agent /tmp/ssh-HEJsxD4655/agent.4655 unix 2 [ ACC ] STREAM LISTENING 10486 3547/lpd /dev/printer unix 2 [ ACC ] STREAM LISTENING 12767 3948/x-session-mana @/tmp/.ICE-unix/3948 |
#netstat -lnp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN 7304/sendmail: MTA: tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 3554/inetd tcp 0 0 0.0.0.0:9999 0.0.0.0:* LISTEN 3554/inetd tcp 0 0 192.168.15.13:53 0.0.0.0:* LISTEN 3241/named tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3263/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 7304/sendmail: MTA: tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 3241/named tcp6 0 0 :::80 :::* LISTEN 3774/apache2 ... unix 2 [ ACC ] STREAM LISTENING 11364 3726/X /tmp/.X11-unix/X0 unix 2 [ ACC ] STREAM LISTENING 12628 3945/gnome-keyring- /tmp/keyring-JHVURj/socket unix 2 [ ACC ] STREAM LISTENING 12712 3990/ssh-agent /tmp/ssh-djFTUz3948/agent.3948 unix 2 [ ACC ] STREAM LISTENING 12768 3948/x-session-mana /tmp/.ICE-unix/3948 unix 2 [ ACC ] STREAM LISTENING 13206 4049/gconfd-2 /tmp/orbit-user/linc-fd1-0-5695eb60b6ba0 unix 2 [ ACC ] STREAM LISTENING 13223 4045/firefox-bin /tmp/orbit-user/linc-fcd-0-511dec63c7304 unix 2 [ ACC ] STREAM LISTENING 13779 4011/pidgin /tmp/orbit-user/linc-fab-0-674ec004a76c unix 2 [ ACC ] STREAM LISTENING 16024 4656/ssh-agent /tmp/ssh-HEJsxD4655/agent.4655 unix 2 [ ACC ] STREAM LISTENING 10486 3547/lpd /dev/printer unix 2 [ ACC ] STREAM LISTENING 12767 3948/x-session-mana @/tmp/.ICE-unix/3948 |
#netstat -n
unix 3 [ ] STREAM CONNECTED 19238 unix 3 [ ] STREAM CONNECTED 19236 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 19235 unix 3 [ ] STREAM CONNECTED 19227 @/tmp/dbus-GLd1GhdMqX unix 3 [ ] STREAM CONNECTED 19226 unix 3 [ ] STREAM CONNECTED 19225 @/tmp/dbus-GLd1GhdMqX unix 3 [ ] STREAM CONNECTED 19224 unix 3 [ ] STREAM CONNECTED 16565 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 16564 unix 3 [ ] STREAM CONNECTED 16487 /var/run/dbus/system_bus_socket ... unix 3 [ ] STREAM CONNECTED 10583 @/var/run/hald/dbus-2KpkIc80LF unix 3 [ ] STREAM CONNECTED 10581 unix 3 [ ] STREAM CONNECTED 10547 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 10546 unix 3 [ ] STREAM CONNECTED 10472 /dev/log unix 3 [ ] STREAM CONNECTED 10471 unix 3 [ ] STREAM CONNECTED 10158 /dev/log unix 3 [ ] STREAM CONNECTED 10157 unix 3 [ ] STREAM CONNECTED 10134 unix 3 [ ] STREAM CONNECTED 10133 |
#netstat -n
unix 3 [ ] STREAM CONNECTED 19238 unix 3 [ ] STREAM CONNECTED 19236 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 19235 unix 3 [ ] STREAM CONNECTED 19227 @/tmp/dbus-GLd1GhdMqX unix 3 [ ] STREAM CONNECTED 19226 unix 3 [ ] STREAM CONNECTED 19225 @/tmp/dbus-GLd1GhdMqX unix 3 [ ] STREAM CONNECTED 19224 unix 3 [ ] STREAM CONNECTED 16565 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 16564 unix 3 [ ] STREAM CONNECTED 16487 /var/run/dbus/system_bus_socket ... unix 3 [ ] STREAM CONNECTED 10583 @/var/run/hald/dbus-2KpkIc80LF unix 3 [ ] STREAM CONNECTED 10581 unix 3 [ ] STREAM CONNECTED 10547 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 10546 unix 3 [ ] STREAM CONNECTED 10472 /dev/log unix 3 [ ] STREAM CONNECTED 10471 unix 3 [ ] STREAM CONNECTED 10158 /dev/log unix 3 [ ] STREAM CONNECTED 10157 unix 3 [ ] STREAM CONNECTED 10134 unix 3 [ ] STREAM CONNECTED 10133 |
#ls
access aliases.db m4 sendmail.cf service.switch submit.mc access.db databases Makefile sendmail.cf.errors service.switch-nodns tls address.resolve helpfile peers sendmail.conf smrsh trusted-users aliases local-host-names sasl sendmail.mc submit.cf |
#ls
access aliases.db m4 sendmail.cf service.switch submit.mc access.db databases Makefile sendmail.cf.errors service.switch-nodns tls address.resolve helpfile peers sendmail.conf smrsh trusted-users aliases local-host-names sasl sendmail.mc submit.cf |
#cat sendmail.cf
### <$4> -- passthru (additional data passed unchanged through) ###################################################################### SE R<$*> <$*> <$- $-> <$*> $: <$(access $4:$1 $: ? $)> <$1> <$2> <$3 $4> <$5> R<?> <$+> <$*> <+ $-> <$*> $: <$(access $1 $: ? $)> <$1> <$2> <+ $3> <$4> R<?> <$+> <$*> <$- $-> <$*> $@ <$2> <$5> R<$+ <TMPF>> <$*> <$- $-> <$*> $@ <<TMPF>> <$5> R<$+> <$*> <$- $-> <$*> $@ <$1> <$5> ###################################################################### ### U: LookUpUser -- search for an entry in access database ... ### Parameters: ### ${verify} $| (MAIL|STARTTLS) ###################################################################### Stls_client R$* $: $(macro {TLS_Name} $@ $&{server_name} $) $1 R$* $| $* $: $1 $| $>D <$&{client_name}> <?> <! "TLS_Clt"> <> R$* $| <?>$* $: $1 $| $>A <$&{client_addr}> <?> <! "TLS_Clt"> <> R$* $| <?>$* $: $1 $| <$(access "TLS_Clt": $: ? $)> R$* $| <$* <TMPF>> $#error $@ 4.3.0 $: "451 Temporary system failure. Please try again later." R$* $@ $>"TLS_connection" $1 |
#cat sendmail.cf
### <$4> -- passthru (additional data passed unchanged through) ###################################################################### SE R<$*> <$*> <$- $-> <$*> $: <$(access $4:$1 $: ? $)> <$1> <$2> <$3 $4> <$5> R<?> <$+> <$*> <+ $-> <$*> $: <$(access $1 $: ? $)> <$1> <$2> <+ $3> <$4> R<?> <$+> <$*> <$- $-> <$*> $@ <$2> <$5> R<$+ <TMPF>> <$*> <$- $-> <$*> $@ <<TMPF>> <$5> R<$+> <$*> <$- $-> <$*> $@ <$1> <$5> ###################################################################### ### U: LookUpUser -- search for an entry in access database ... ### Parameters: ### ${verify} $| (MAIL|STARTTLS) ###################################################################### Stls_client R$* $: $(macro {TLS_Name} $@ $&{server_name} $) $1 R$* $| $* $: $1 $| $>D <$&{client_name}> <?> <! "TLS_Clt"> <> R$* $| <?>$* $: $1 $| $>A <$&{client_addr}> <?> <! "TLS_Clt"> <> R$* $| <?>$* $: $1 $| <$(access "TLS_Clt": $: ? $)> R$* $| <$* <TMPF>> $#error $@ 4.3.0 $: "451 Temporary system failure. Please try again later." R$* $@ $>"TLS_connection" $1 |
#ls
access aliases.db m4 sendmail.cf service.switch submit.mc access.db databases Makefile sendmail.cf.errors service.switch-nodns tls address.resolve helpfile peers sendmail.conf smrsh trusted-users aliases local-host-names sasl sendmail.mc submit.cf |
#ls
access aliases.db m4 sendmail.cf service.switch submit.mc access.db databases Makefile sendmail.cf.errors service.switch-nodns tls address.resolve helpfile peers sendmail.conf smrsh trusted-users aliases local-host-names sasl sendmail.mc submit.cf |
#cat sendmail.conf
# and available for the `mailstats` command to display. There will # be a (minor) performance hit, as this file will be updated for each # item coming into, or out of, sendmail. The file is fixed in size, # and small, so there's no need to rotate it. # MSP_MAILSTATS="${DAEMON_MAILSTATS}"; # #------------------------------------------------------------------------------ # Miscellaneous Confguration # ... # Deprecated variables (kept for reference) # DAEMON_STATS="${DAEMON_MAILSTATS}"; MSP_STATS="${MSP_MAILSTATS}"; # #------------------------------------------------------------------------------ # Unknown variables (kept for reference) # #------------------------------------------------------------------------------ # |
#cat sendmail.conf
# and available for the `mailstats` command to display. There will # be a (minor) performance hit, as this file will be updated for each # item coming into, or out of, sendmail. The file is fixed in size, # and small, so there's no need to rotate it. # MSP_MAILSTATS="${DAEMON_MAILSTATS}"; # #------------------------------------------------------------------------------ # Miscellaneous Confguration # ... # Deprecated variables (kept for reference) # DAEMON_STATS="${DAEMON_MAILSTATS}"; MSP_STATS="${MSP_MAILSTATS}"; # #------------------------------------------------------------------------------ # Unknown variables (kept for reference) # #------------------------------------------------------------------------------ # |
#ls
access aliases.db m4 sendmail.cf service.switch submit.mc access.db databases Makefile sendmail.cf.errors service.switch-nodns tls address.resolve helpfile peers sendmail.conf smrsh trusted-users aliases local-host-names sasl sendmail.mc submit.cf |
#ls
access aliases.db m4 sendmail.cf service.switch submit.mc access.db databases Makefile sendmail.cf.errors service.switch-nodns tls address.resolve helpfile peers sendmail.conf smrsh trusted-users aliases local-host-names sasl sendmail.mc submit.cf |
#ls -l
total 232 -rw------- 1 root root 4261 2009-06-04 17:57 access -rw-r----- 1 smmta smmsp 12288 2009-06-04 17:57 access.db -rw-r--r-- 1 root root 281 2009-03-01 20:52 address.resolve lrwxrwxrwx 1 root smmsp 10 2009-06-04 17:57 aliases -> ../aliases -rw-r----- 1 smmta smmsp 12288 2009-06-04 17:58 aliases.db -rw-r--r-- 1 root root 3216 2009-06-04 17:57 databases -rw-r--r-- 1 root root 5657 2009-03-02 00:49 helpfile -rw-r--r-- 1 root smmsp 18 2009-06-04 17:57 local-host-names drwxr-sr-x 2 smmta smmsp 4096 2009-06-04 17:56 m4 ... -rw-r--r-- 1 root smmsp 269 2009-06-04 17:57 sendmail.cf.errors -rw-r--r-- 1 root root 12236 2009-06-04 17:57 sendmail.conf -rw-r--r-- 1 root smmsp 4215 2009-06-04 17:56 sendmail.mc -rw-r--r-- 1 root root 149 2009-03-01 20:52 service.switch -rw-r--r-- 1 root root 180 2009-03-01 20:52 service.switch-nodns drwxr-sr-x 2 smmta smmsp 4096 2009-06-04 17:56 smrsh -rw-r--r-- 1 root smmsp 43980 2009-06-04 17:57 submit.cf -rw-r--r-- 1 root smmsp 2374 2009-06-04 17:56 submit.mc drwxr-xr-x 2 smmta smmsp 4096 2009-06-04 17:57 tls -rw-r--r-- 1 root smmsp 0 2009-06-04 17:57 trusted-users |
#ls -l
total 232 -rw------- 1 root root 4261 2009-06-04 17:57 access -rw-r----- 1 smmta smmsp 12288 2009-06-04 17:57 access.db -rw-r--r-- 1 root root 281 2009-03-01 20:52 address.resolve lrwxrwxrwx 1 root smmsp 10 2009-06-04 17:57 aliases -> ../aliases -rw-r----- 1 smmta smmsp 12288 2009-06-04 17:58 aliases.db -rw-r--r-- 1 root root 3216 2009-06-04 17:57 databases -rw-r--r-- 1 root root 5657 2009-03-02 00:49 helpfile -rw-r--r-- 1 root smmsp 18 2009-06-04 17:57 local-host-names drwxr-sr-x 2 smmta smmsp 4096 2009-06-04 17:56 m4 ... -rw-r--r-- 1 root smmsp 269 2009-06-04 17:57 sendmail.cf.errors -rw-r--r-- 1 root root 12236 2009-06-04 17:57 sendmail.conf -rw-r--r-- 1 root smmsp 4215 2009-06-04 17:56 sendmail.mc -rw-r--r-- 1 root root 149 2009-03-01 20:52 service.switch -rw-r--r-- 1 root root 180 2009-03-01 20:52 service.switch-nodns drwxr-sr-x 2 smmta smmsp 4096 2009-06-04 17:56 smrsh -rw-r--r-- 1 root smmsp 43980 2009-06-04 17:57 submit.cf -rw-r--r-- 1 root smmsp 2374 2009-06-04 17:56 submit.mc drwxr-xr-x 2 smmta smmsp 4096 2009-06-04 17:57 tls -rw-r--r-- 1 root smmsp 0 2009-06-04 17:57 trusted-users |
#cat sendmail.mc
divert(-1)dnl #----------------------------------------------------------------------------- # $Sendmail: debproto.mc,v 8.14.3 2009-03-01 18:51:56 cowboy Exp $ # # Copyright (c) 1998-2009 Richard Nelson. All Rights Reserved. # # cf/debian/sendmail.mc. Generated from sendmail.mc.in by configure. # # sendmail.mc prototype config file for building Sendmail 8.14.3 # ... dnl # dnl # Default Mailer setup MAILER_DEFINITIONS MAILER(`local')dnl MAILER(`smtp')dnl dnl # Masquerading options FEATURE(`always_add_domain')dnl MASQUERADE_AS(`linux13.unix.nt')dnl FEATURE(`allmasquerade')dnl FEATURE(`masquerade_envelope')dnl |
#cat sendmail.mc
divert(-1)dnl #----------------------------------------------------------------------------- # $Sendmail: debproto.mc,v 8.14.3 2009-03-01 18:51:56 cowboy Exp $ # # Copyright (c) 1998-2009 Richard Nelson. All Rights Reserved. # # cf/debian/sendmail.mc. Generated from sendmail.mc.in by configure. # # sendmail.mc prototype config file for building Sendmail 8.14.3 # ... dnl # dnl # Default Mailer setup MAILER_DEFINITIONS MAILER(`local')dnl MAILER(`smtp')dnl dnl # Masquerading options FEATURE(`always_add_domain')dnl MASQUERADE_AS(`linux13.unix.nt')dnl FEATURE(`allmasquerade')dnl FEATURE(`masquerade_envelope')dnl |
#vim sendmail.mc
--- /tmp/l3-saved-4857.18740.1354 2009-06-04 18:07:15.000000000 +0300 +++ sendmail.mc 2009-06-04 18:08:29.000000000 +0300 @@ -98,12 +98,13 @@ include(`/etc/mail/m4/provider.m4')dnl dnl # dnl # Default Mailer setup -MAILER_DEFINITIONS -MAILER(`local')dnl -MAILER(`smtp')dnl dnl # Masquerading options FEATURE(`always_add_domain')dnl MASQUERADE_AS(`linux13.unix.nt')dnl FEATURE(`allmasquerade')dnl FEATURE(`masquerade_envelope')dnl +MAILER_DEFINITIONS +MAILER(`local')dnl +MAILER(`smtp')dnl + |
#/etc/init.d/send
sendmail sendsigs |
#/etc/init.d/send
sendmail sendsigs |
#ьфлу
bash: ьфлу: command not found |