Hello Monk!

After researching the same I came to decision, that it is more convenient to use MailSendmail: it uses the system command "sendmail" and just puts the mail into local MTA queue. The last is responsible for actual settings, mail re-transmission on temporal network failures etc.

In Debian and many other linux distros there is Exim and other MTAs, which almost "just work" out of the box. So, now it is sysdadmin responsibility to setup MTA, not my as developer.

Here is my setting for that

log4perl.appender.Email=Log::Dispatch::Email::MailSendmail log4perl.appender.Email.to=a@b.com log4perl.appender.Email.from=c@d.com log4perl.appender.Email.min_level=warn log4perl.appender.Email.layout=Log::Log4perl::Layout::PatternLayout log4perl.appender.Email.layout.ConversionPattern=[%r::%p/%P] %c{1} (%L +) :: %m%n log4perl.appender.Email.buffered = 0

In reply to Re: Log4perl Email appender problem by basiliscos
in thread Log4perl Email appender problem by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.