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.