/[cvs]/joko/doc/SampleTasks/joko_2003-03.twingle
ViewVC logotype

Diff of /joko/doc/SampleTasks/joko_2003-03.twingle

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.135 by joko, Sun Mar 23 19:04:20 2003 UTC revision 1.138 by joko, Sun Mar 23 21:34:21 2003 UTC
# Line 2263  o connections to the cvs-daemon seem not Line 2263  o connections to the cvs-daemon seem not
2263    
2264  o write monitor for output of 'mailq'!!! (grep the numbers!)  o write monitor for output of 'mailq'!!! (grep the numbers!)
2265    
2266    i found while reviewing Mails returned from the 'Mail Delivery Subsystem':
2267      i example error-message response if (e.g.) 'recieveMail|dispatchmail' fails....
2268        The original message was received at Tue, 18 Mar 2003 20:45:04 +0100
2269        from [213.133.118.34]
2270        
2271           ----- The following addresses had permanent fatal errors -----
2272        |~/bin/mail/recieveMail
2273            (reason: 255)
2274            (expanded from: jonen_mail)
2275        
2276           ----- Transcript of session follows -----
2277        syntax error at /etc/mail/smrsh/recieveMail line 125, near ") {"
2278        Execution of /etc/mail/smrsh/recieveMail aborted due to compilation errors.
2279        554 5.3.0 unknown mailer error 255
2280        o scan for this! (global/default milter.filter? -> "syntax error in line xyz")
2281      i another one:
2282        The original message was received at Mon, 3 Mar 2003 16:51:28 +0100
2283        from [213.133.118.34]
2284        
2285           ----- The following addresses had permanent fatal errors -----
2286        |~/bin/mail/recieveMail
2287            (reason: 2)
2288            (expanded from: jonen_mail)
2289        
2290           ----- Transcript of session follows -----
2291        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.
2292        BEGIN failed--compilation aborted at /usr/share/perl5/Mail/Audit.pm line 6.
2293        Compilation failed in require at /etc/mail/smrsh/recieveMail line 57.
2294        BEGIN failed--compilation aborted at /etc/mail/smrsh/recieveMail line 57.
2295        554 5.3.0 unknown mailer error 2
2296        o scan for this! (global/default milter.filter? -> "module not found: "{modulename}" - try to install it? [Y/n] ")
2297    
2298    o dispatchmail-errors!!!
2299      #> su joko_mail
2300      #> cd ~
2301      #> perl .dispatchmailrc
2302        Scalar found where operator expected at .dispatchmailrc line 231, near "m/ilo\.de/i $self"
2303        syntax error at .dispatchmailrc line 231, near "if $to "
2304        Execution of .dispatchmailrc aborted due to compilation errors.
2305      #> perl .dispatchmailrc
2306      #>
2307      means: {ok}
2308    
2309    o dispatchmail-errors!!!
2310      #> su {anybody}
2311      #> dispatchmail
2312        Global symbol "$self" requires explicit package name at /data/libs/nfo/perl/libs/Mail/Audit/Dispatch.pm line 193.
2313        Global symbol "$self" requires explicit package name at /data/libs/nfo/perl/libs/Mail/Audit/Dispatch.pm line 194.
2314        Compilation failed in require at /usr/local/bin/dispatchmail line 37.
2315        BEGIN failed--compilation aborted at /usr/local/bin/dispatchmail line 37.
2316    
2317    x added more verboseness to dispatchmail if rules-file has syntax-errors (hard to debug - sorry...)
2318      #> su joko_mail
2319      #> cd ~
2320      #> echo test | mail -s test joko
2321      #> tail -f Mail/.dispatchmail.log
2322        ----------------------------------------  TRACE  ----------
2323        From:    Mail Delivery Subsystem <MAILER-DAEMON>
2324        To:      postmaster
2325        Subject: Postmaster notify: see transcript for details
2326        ----------------------------------------  TRACE  ----------
2327        RULES:  Loading from "/home/joko/virtual/joko_mail/.dispatchmailrc".
2328        ERROR: ERROR: Delivery failed, '/home/joko/virtual/joko_mail/.dispatchmailrc' had syntax errors:
2329        syntax error at (eval 6) line 1, near "/home/joko"
2330      
2331        Forwarding delivery to next handler in queue (probably /var/spool/mail).
2332      #> tail -f Mail/.dispatchmail.log
2333        ----------------------------------------  TRACE  ----------
2334        From:    joko_mail@netfrag.org
2335        To:      joko@quepasa.netfrag.org
2336        Subject: test
2337        ----------------------------------------  TRACE  ----------
2338        RULES:  Loading from "/home/joko/virtual/joko_mail/.dispatchmailrc".
2339        RULES:  Running Perl sub "rules::dispatch".
2340        ACCEPT: /home/joko/virtual/joko_mail/Mail/SORTED/me2myself
2341    
2342    i old code from /home/service/virtual/gateway/.dispatchmailrc
2343        if ($to =~ /links-computing/) {
2344      print "COPY", "\n";
2345          #$self->copy('Newsgate', 'alt.test');
2346          $self->copy('Newsgate', 'nfo.links.computing');
2347          #my $prg = $0;
2348          #my $prg = '/data/opt/dispatchmail/bin/dispatchmail';
2349          #my $prg = '/etc/mail/smrsh/dispatchmail';
2350          #my $pipeTo = $prg . ' --mode=mail2news --thread=alt.test --base=/home/collector';
2351          #$self->report("PIPE: " . $pipeTo);
2352          #$incoming->pipe($pipeTo);
2353        }
2354    
2355    o monitor:
2356      o /home/service/virtual/gateway/.mail-delivery_errors.log
2357      o /home/service/joko_mail/.mail-delivery_errors.log
2358      o /home/service/joko_mail/Mail/.mail-delivery.log
2359    

Legend:
Removed from v.1.135  
changed lines
  Added in v.1.138

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed