--- joko/doc/SampleTasks/joko_2003-03.twingle 2003/03/23 20:34:50 1.136 +++ joko/doc/SampleTasks/joko_2003-03.twingle 2003/03/23 22:04:22 1.139 @@ -10,7 +10,7 @@ @sequence meta @document-history @cvs-info - $Id: joko_2003-03.twingle,v 1.136 2003/03/23 20:34:50 joko Exp $ + $Id: joko_2003-03.twingle,v 1.139 2003/03/23 22:04:22 joko Exp $ Revision 1.93 2003/03/14 14:55:57 joko @@ -2295,3 +2295,92 @@ 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 + +i quepasa.netfrag.org + #> userdel newscollector + #> echo test | mail -s test test@netfrag.org + i further dispatchmail testing.... + #> cd /data/opt/tools/dispatchmail/bin-tests + #> ./build_dispatch test + Can't locate object method "id" via package "Mail::Audit" at /data/libs/nfo/perl/libs/Mail/Audit/Dispatch.pm line 220, line 16. + #> ./build_dispatch test + Use of uninitialized value in scalar chomp at /data/libs/nfo/perl/libs/org/netfrag/shortcuts.pm line 73, line 16. + #> ./build_dispatch test + #> + means: {ok} + +i quepasa.netfrag.org - mail2news gateway test routine + #> echo test | mail -s test test + #> tail -f /var/log/syslog + Mar 23 23:02:18 quepasa nnrpd[7784]: quepasa.netfrag.org connect + Mar 23 23:02:18 quepasa nnrpd[7784]: quepasa.netfrag.org perl filtering enabled + Mar 23 23:02:18 quepasa nnrpd[7784]: quepasa.netfrag.org user collector + Mar 23 23:02:18 quepasa innd: localhost connected 15 + Mar 23 23:02:18 quepasa innd: localhost:15 closed seconds 0 accepted 1 refused 0 rejected 0 + Mar 23 23:02:18 quepasa nnrpd[7784]: quepasa.netfrag.org post ok <200303232202.h2NM2EZl007775@quepasa.netfrag.org> + Mar 23 23:02:18 quepasa nnrpd[7784]: quepasa.netfrag.org exit articles 0 groups 0 + Mar 23 23:02:18 quepasa nnrpd[7784]: quepasa.netfrag.org posts received 1 rejected 0 + Mar 23 23:02:18 quepasa nnrpd[7784]: quepasa.netfrag.org times user 0.000 system 0.019 elapsed 0.182 + Mar 23 23:02:18 quepasa sm-mta[7780]: h2NM2EQZ007776: to=|/data/opt/dispatchmail/bin/dispatchmail, ctladdr= (1014/1014), delay=00:00:04, xdelay=00:00:03, mailer=prog, pri=30682, dsn=2.0.0, stat=Sent +