--- joko/doc/SampleTasks/joko_2003-03.twingle 2003/03/23 18:37:04 1.134 +++ joko/doc/SampleTasks/joko_2003-03.twingle 2003/03/23 21:34:21 1.138 @@ -10,7 +10,7 @@ @sequence meta @document-history @cvs-info - $Id: joko_2003-03.twingle,v 1.134 2003/03/23 18:37:04 joko Exp $ + $Id: joko_2003-03.twingle,v 1.138 2003/03/23 21:34:21 joko Exp $ Revision 1.93 2003/03/14 14:55:57 joko @@ -2149,6 +2149,15 @@ Mar 23 18:28:54 quepasa kernel: BLOCKED TCP PACKET: IN= OUT=eth0 SRC=213.133.118.36 DST=212.72.64.178 LEN=40 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=TCP SPT=113 DPT=37568 WINDOW=0 RES=0x00 ACK RST URGP=0 i quepasa: no space left on device!!! + #> df + Filesystem 1K-blocks Used Available Use% Mounted on + /dev/ubd/0 1007896 854608 102088 90% / + /dev/ubd/2 2015824 620952 1292472 100% /data + #> rm -r /home/service/virtual/pdumpfs/var/data/2003/03 + #> df + Filesystem 1K-blocks Used Available Use% Mounted on + /dev/ubd/0 1007896 854608 102088 90% / + /dev/ubd/2 2015824 620952 1292472 33% /data #> tail -f /var/log/news/news.err Mar 15 18:54:18 quepasa nnrpd[27242]: pd9e7778d.dip.t-dialin.net cant read Connection reset by peer Mar 17 03:17:00 quepasa innd: SERVER cant write nfo/support/93 No space left on device @@ -2237,4 +2246,114 @@ (bestmx map: lookup (h1.service.netfrag.org.): deferred) Total requests: 179 + [...] + #> tail -f /var/log/syslog + Mar 23 19:37:14 quepasa sm-mta[5174]: h2MBqP7v002446: to=, delay=1+06:00:01, xdelay=00:00:17, mailer=esmtp, pri=12092012, relay=h1.service.netfrag.org. [213.133.118.34], dsn=2.0.0, stat=Sent (h2NIavM03315 Message accepted for delivery) + Mar 23 19:37:16 quepasa sm-mta[4020]: h2MBfm7w002405: to=, delay=1+06:09:51, xdelay=00:00:08, mailer=esmtp, pri=12182012, relay=h1.service.netfrag.org. [213.133.118.34], dsn=2.0.0, stat=Sent (h2NIb8i03354 Message accepted for delivery) + Mar 23 19:37:17 quepasa sm-mta[5174]: h2MBfm7v002405: to=, delay=1+06:11:15, xdelay=00:00:00, mailer=esmtp, pri=12182016, relay=h1.service.netfrag.org. [213.133.118.34], dsn=5.1.1, stat=User unknown + Mar 23 19:37:17 quepasa sm-mta[5174]: h2MBfm7v002405: h2NIVdml005174: return to sender: User unknown + #> mailq + [...] + MTA Queue status... + [...] + Total requests: 83 + #> tail -f /var/log/syslog + +o connections to the cvs-daemon seem not to be recorded in syslog!? + +o write monitor for output of 'mailq'!!! (grep the numbers!) + +i found while reviewing Mails returned from the 'Mail Delivery Subsystem': + i example error-message response if (e.g.) 'recieveMail|dispatchmail' fails.... + The original message was received at Tue, 18 Mar 2003 20:45:04 +0100 + from [213.133.118.34] + + ----- The following addresses had permanent fatal errors ----- + |~/bin/mail/recieveMail + (reason: 255) + (expanded from: jonen_mail) + + ----- Transcript of session follows ----- + syntax error at /etc/mail/smrsh/recieveMail line 125, near ") {" + Execution of /etc/mail/smrsh/recieveMail aborted due to compilation errors. + 554 5.3.0 unknown mailer error 255 + o scan for this! (global/default milter.filter? -> "syntax error in line xyz") + i another one: + The original message was received at Mon, 3 Mar 2003 16:51:28 +0100 + from [213.133.118.34] + + ----- The following addresses had permanent fatal errors ----- + |~/bin/mail/recieveMail + (reason: 2) + (expanded from: jonen_mail) + + ----- Transcript of session follows ----- + Can't locate Sys/Hostname.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at /usr/share/perl5/Mail/Audit.pm line 6. + BEGIN failed--compilation aborted at /usr/share/perl5/Mail/Audit.pm line 6. + Compilation failed in require at /etc/mail/smrsh/recieveMail line 57. + BEGIN failed--compilation aborted at /etc/mail/smrsh/recieveMail line 57. + 554 5.3.0 unknown mailer error 2 + o scan for this! (global/default milter.filter? -> "module not found: "{modulename}" - try to install it? [Y/n] ") + +o dispatchmail-errors!!! + #> su joko_mail + #> cd ~ + #> perl .dispatchmailrc + Scalar found where operator expected at .dispatchmailrc line 231, near "m/ilo\.de/i $self" + syntax error at .dispatchmailrc line 231, near "if $to " + Execution of .dispatchmailrc aborted due to compilation errors. + #> perl .dispatchmailrc + #> + means: {ok} + +o dispatchmail-errors!!! + #> su {anybody} + #> dispatchmail + Global symbol "$self" requires explicit package name at /data/libs/nfo/perl/libs/Mail/Audit/Dispatch.pm line 193. + Global symbol "$self" requires explicit package name at /data/libs/nfo/perl/libs/Mail/Audit/Dispatch.pm line 194. + Compilation failed in require at /usr/local/bin/dispatchmail line 37. + BEGIN failed--compilation aborted at /usr/local/bin/dispatchmail line 37. + +x added more verboseness to dispatchmail if rules-file has syntax-errors (hard to debug - sorry...) + #> su joko_mail + #> cd ~ + #> echo test | mail -s test joko + #> tail -f Mail/.dispatchmail.log + ---------------------------------------- TRACE ---------- + From: Mail Delivery Subsystem + To: postmaster + Subject: Postmaster notify: see transcript for details + ---------------------------------------- TRACE ---------- + RULES: Loading from "/home/joko/virtual/joko_mail/.dispatchmailrc". + ERROR: ERROR: Delivery failed, '/home/joko/virtual/joko_mail/.dispatchmailrc' had syntax errors: + syntax error at (eval 6) line 1, near "/home/joko" + + Forwarding delivery to next handler in queue (probably /var/spool/mail). + #> tail -f Mail/.dispatchmail.log + ---------------------------------------- TRACE ---------- + From: joko_mail@netfrag.org + To: joko@quepasa.netfrag.org + Subject: test + ---------------------------------------- TRACE ---------- + RULES: Loading from "/home/joko/virtual/joko_mail/.dispatchmailrc". + RULES: Running Perl sub "rules::dispatch". + ACCEPT: /home/joko/virtual/joko_mail/Mail/SORTED/me2myself + +i old code from /home/service/virtual/gateway/.dispatchmailrc + if ($to =~ /links-computing/) { + print "COPY", "\n"; + #$self->copy('Newsgate', 'alt.test'); + $self->copy('Newsgate', 'nfo.links.computing'); + #my $prg = $0; + #my $prg = '/data/opt/dispatchmail/bin/dispatchmail'; + #my $prg = '/etc/mail/smrsh/dispatchmail'; + #my $pipeTo = $prg . ' --mode=mail2news --thread=alt.test --base=/home/collector'; + #$self->report("PIPE: " . $pipeTo); + #$incoming->pipe($pipeTo); + } + +o monitor: + o /home/service/virtual/gateway/.mail-delivery_errors.log + o /home/service/joko_mail/.mail-delivery_errors.log + o /home/service/joko_mail/Mail/.mail-delivery.log