Re: sendmail verbose output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > > > > My set up is
> > > > > Debian - Etch / php5.2.08/apache2/squirrelmail1.5.1/plugins installed - calendar, squirrelspell, 'html_mail, spam_buttons.
> > > > > For composing and sending mails through squirrelmail we use exim4 with additional -v argument for verbose output.
> > > > > Some of our users want Delivery  Receipt, which is not working in squirrelmail 1.5.1
> > > >
> > > > Please do not use 1.5.1.  It possibly contains a number of gaping
> > > > security exploits and is very old code.  If you want to use
> > > > development code, please get a 1.5.2 snapshot.  Delivery receipts are
> > > > handled by the MTA, not SquirrelMail, however (SM only sends the
> > > > request), so you might be barking up the wrong tree unless you can
> > > > clarify yourself.
> > > >
> > > > >, so I am thinking of  redirecting the verbose output  from exim to a
> > > > file (that with contain all the helo ehelo etc) and  provide that as
> > > > delivery receipt.
> > > > > So appreciate if any one can point to the right place to look for redirecting the verbose output from exim while sending mails.
> > > >
> > > > Dunno, maybe someone else can answer this part.
> > > >
> > > Thanks for the prompt reply.
> > > Yes we will be moving to 1.5.2 version of squirrelmail but not right away.
> > >
> > > I know delivery receipts are handled by the MTA, however I just want to redirect the output produced by exim when squirrelmail calls exim for delivering the messages.
> > > Squirrelmail opens a stream(popen) and writes the headers, message etc. to that stream, I want to redirect the  output of that stream to a file, which possibly should contain the handshake and other info by exim.
> > > Hope I am a little clear about want I want to achieve.
> >
> > Easiest way to do this is in PHP.  Everywhere SM pushes something to
> > the pipe (probably just in the function writeToStream() in
> > class/deliver/Deliver.class.php), just push the same thing to a file.
> >
> >     function writeToStream($stream, $data) {
> >         fputs($stream, $data);
> >     }
> >
> > Becomes:
> >
> >     function writeToStream($stream, $data) {
> >         fputs($stream, $data);
> > $FILE = fopen('/tmp/squirrelmail_delivery.log', 'a');
> > fputs($FILE, $data);
> > fclose($FILE);
> >     }
> >
> > However, this only gives you a copy of the message stream, which I
> > would think you can get elsewhere.  I'm not sure what you intend to
> > get out of this.  If you need the SMTP conversation, you might be able
> > to do the same in class/deliver/Deliver_SMTP.class.php..... but again,
> > I don't see the usefulness of it.
>
> Hi,
> Yes i need to put the smtp conversation to a file for each user who wants the delivery receipt, since most of the mailservers do not allow any receipts to be sent.
> I am using sendmail (exim) for sending the message that that does not call the class Deliver_SMTP.class.php (as far as I can understan) it calls Deliver_Sendmail.class.php.
> So is there a way to output the smtp conversation to a file

SMTP is not sendmail.  If SM uses sendmail to talk to the MTA, there
is *no* SMTP conversation.  Any SMTP connections thereafter are
between your MTA and the outside world and are not under the purview
of SM.

>, while using exim and Deliver_Sendmail.class.php.
> I see that when exim is called with -v (verbose) option it writes the smtp conversation to /etc/apache2/error.log file.
> Appreciate any help in this regards.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux