My question is probably somewhat off topic as it doesn't deal specifically with the vageries of perl syntax or anything of that nature. It does however relate to my love of perl and my obsession to use it to do everything I can possibly do. So heres my question:

Is there any mail server (SMTP) that allows me interface directly with it and even replace parts of it, using perl? An example of what I'm looking for is the apache server, which handles regular files just fine but then you can add mod_perl and rewrite portions of it in perl to do magic and still keep the highly optimzed/bugfree/etc portion doing everything it was designed for and does best. The reason I'm asking this is I'm working on some webhosting issues that involve multiple email accounts for one user and stuff like that. I'm sure theres possibly a way to do what I want natively in the server, such as sendmail.. but that would require learning the sendmail syntax and the sheer idea is enough to make me break down and gibber. But I don't wish to reinvent the wheel by writing my own SMTP server in perl or anything like that. So I'm attempting to leverage two things namely my knowledge of perl and the functionality of a good SMTP server.

In reply to Sendmail + perl? by BUU

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.