Re: smtp proxy to external smtp server

[email protected] (Mike Korizek)
Newsgroups perl.qpsmtpd
Message-ID <[email protected]>
On 05/20/2011 02:56 PM, Jared Johnson wrote:
> We do the sort of signing that is a huge doozy, and Matt is right, it's a
> doozy :)  There are a couple of ways we've accomplished re-writing the
> body from a MIME::Entity.  Honestly it seems a bit non-standard to me
Why do you think this is non-standard? From a conceptual perspective or
just from a tooling view?
If conceptually, which other approach would you recommend?

> use File::Temp qw(tempfile);
> ( $txn->{_body_file}, my $filename ) = tempfile( DIR => $self->temp_dir() );
> $txn->body_fh->print("\n");
> $mime_entity->print_body( $txn->body_fh );
> $txn->{_body_size} = (stat($txn->{_body_file}))[7];
> $txn->{_body_start} = 0;
I did some preliminary tests and it works.
That also means there is no API or any other way to put an email into
the queue, isn't it?
Well, can I use this approach in a productive environment or could there
be any side effects?

Thanks for your support on this.
Mike
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.