mailscanner & zmailer
Mariano Absatz
mailscanner at lists.com.ar
Tue Mar 11 21:04:17 GMT 2003
Alright, alright,
you scared me enough...
I browsed the code and it has its things... even the comments in Sendmail.pm
are not quite accurate... there are functions documented that don't exist
anymore and other (public) not documented... Some of the "documented public"
functions are not used outside Sendmail.pm... well.
What I'll try to do is to create a zmq2smq and a smq2zmq to translate the
queue file formats...
Thankfully, I have good documentation on both queue formats (bat book chap 23
and http://zmailer.org/zman/zapp-filefmts.html).
Since I couldn't easily find the queue format of Exim, I'll go for the
sendmail translator.
I won't have any locking problems with zmailer since its one-file approach
gives me always a finished unlocked file and I can do likewise when I hand it
to zmailer.
I'll use flock file locking so I emulate sendmail and don't step over
mailscanner.
Regards,
Mariano.
El 8 Mar 2003 a las 12:17, Nick Phillips escribió:
> On Fri, Mar 07, 2003 at 06:52:13PM -0300, Mariano Absatz wrote:
>
> > Monday morning I'll start working hard on this, hopefully even coding.
> >
> > What I'd like to know in order to further understand the sources is what
> > files you modified to make the sendmail->exim port.
> >
> > For what I can see:
> > Sendmail.pm => Exim.pm
> > SMDiskStore.pm => EximDiskStore.pm
> >
> > Are there other things you had to modify?
>
> Well, yes, because initially it wasn't designed to be used with different
> MTAs. And now it's somewhat more generalised and abstracted, so it should
> be fairly easy to port to another MTA with a 2-queuefile system.
>
> However, there are some areas in which the object-isation didn't go the
> whole hog in the move from v3 to v4, and these need to be fixed to
> completely abstract the queue-handling stuff out from the main code
> before it will reasonably be feasible to support single-queuefile mailers.
>
> > I don't see any pod in the files... do you have any docs on the functions in
> > mailscanner?
>
> Not really; there are comments at the top of the Exim/Sendmail-specific files
> to tell you what's needed.
>
> There will need to be some fairly significant rearrangement before we can
> handle MTAs with single queue-files, though. Or to do it nicely, at least.
>
> This is the main thing that stopped me doing Postfix a few months ago.
>
> I've given Julian a bunch of pointers to the things that need to be jiggled
> with to put this right, but I don't know how he's getting on yet.
>
> Keep talking when you get into looking at it. Probably the best thing to do
> initially (and what I did before) was to just come up with a file or three
> that replace the current mailscanner stuff to make it work, and then to
> integrate the necessary changes back into the main code when it's clear
> what's needed. And we'll try to get the changes made to support it.
>
>
> Cheers,
--
Mariano Absatz
El Baby
----------------------------------------------------------
I.R.S.: We've got what it takes to take what you've got!
More information about the MailScanner
mailing list