Re: Sendmail Options?

From: Gary Mayor (gary_at_tgpmakers.com)
Date: 05/30/04

  • Next message: Michele Dondi: "Re: Two quick questions about Perl6"
    Date: Sun, 30 May 2004 11:13:18 +0000 (UTC)
    
    

    Walter Roberson wrote:
    > In article <c9c953$99v$1@sparta.btinternet.com>,
    > Gary Mayor <gary@tgpmakers.com> wrote:
    > :I'm having a problem with sendmail not always sending emails. When
    > :someone registers I want sendmail to send a registration email to the
    > :user but this only works 50% of the time. So the only thing I can think
    > :of is my sendmail options. Here's the line I use to send emails,
    >
    > :my $sendmail = "/usr/sbin/sendmail -oi -t";
    >
    > :Is there anything wrong with that line. What other options can I use on
    > :there to hopefully improve the reliability of email sending.
    >
    > This isn't a sendmail newsgroup.
    >
    > sendmail -oi -t is pretty traditional for sending out email when
    > the destination is to be read from the message itself. The -oi option
    > tells it to ignore input lines that contain a single period ('dot'),
    > which would otherwise indicate end-of-file.
    >
    > You haven't given us any information about what happens the other 50%
    > of the time when you try to send out email. Does it just disappear?
    > Does it get stuck in the queue? Does it go to the wrong recipient?
    >
    >
    > I think we can get a clue from the one line of code that you included.
    > You used double-quotes for the string even though no variables were
    > being interpolated and no escape sequences were being used. You could
    > instead have used:
    >
    > my $sendmail = '/usr/sbin/sendmail -oi -t';
    >
    > This gives us the hint that you probably aren't being careful about
    > interpolation, and gives us the hint that you probably don't have
    > taint checking turned on. You might not even be using strictures --
    > do you have use strict; and use warnings; turned on?
    >

    Hi,
    The emails just disappear looked in the logs and there's nothing giving
    a clue, just says sent.

    Nope no tainting, strict or warnings turned on will do so now.

    Thanks


  • Next message: Michele Dondi: "Re: Two quick questions about Perl6"

    Relevant Pages