Sorry, my bad. Instead of simply writing about "smtp server logic", I should have been more explicit.

As far as I understand it, the smtp protocol was designed with that sort of connection problems in mind. If mails cannot be delivered instantly they stay in the queue and are sent when the remote mail server is available again. At least to me that seems a convenient solution for the connection problem.

My idea was to install an additional smtp server locally and relay the mail to the remote smtp server, that finally ends up in the IMAP server your are trying to access to that local smtp server. If accessing that mail via IMAP is desired an additional IMAP server would be necessary.

Probably to much effort if there are only a handful of mailboxes, I see that. It must have been the term "connection problem" that triggered me ;-)


In reply to Re^3: Handling reconnection with Mail::IMAPClient by rizzo
in thread Handling reconnection with Mail::IMAPClient by Discipulus

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.