Professional Web Applications Themes

perl script generates sendmail NOQUEUE: connect from rootlocalhost - PERL Miscellaneous

Hello, I have numerous administrative scripts that contain the following chucnk of perl: # Mail Procedure # &send_mail; sub send_mail { open(MAIL,"|$MAIL -s \"$SUBJECT\" admin.report\multiverse.org"); # Test output for string # if($output eq "") { print MAIL "Good news. None of the eth devices are in PROMISC mode. Take no action. \n\n"; } else { print MAIL "Bad news. There is an eth device in PROMISC mode. Take immeadiate actio n.\n\n"; } close(MAIL); } When this script is run it generates the following output in /var/log/maillog: Jul 3 04:26:45 prod sendmail[8843]: NOQUEUE: connect from rootlocalhost Jul 3 04:26:45 prod sendmail[8843]: ...

  1. #1

    Default perl script generates sendmail NOQUEUE: connect from rootlocalhost

    Hello,

    I have numerous administrative scripts that contain the following
    chucnk of perl:


    # Mail Procedure
    #
    &send_mail;

    sub send_mail
    {
    open(MAIL,"|$MAIL -s \"$SUBJECT\" admin.report\multiverse.org");

    # Test output for string
    #
    if($output eq "")
    {
    print MAIL "Good news. None of the eth devices are in PROMISC
    mode. Take no action.
    \n\n";
    }
    else
    {
    print MAIL "Bad news. There is an eth device in PROMISC mode.
    Take immeadiate actio
    n.\n\n";
    }

    close(MAIL);
    }


    When this script is run it generates the following output in
    /var/log/maillog:

    Jul 3 04:26:45 prod sendmail[8843]: NOQUEUE: connect from
    rootlocalhost
    Jul 3 04:26:45 prod sendmail[8843]: h63BQjj08843: from=root,
    size=150, class=0, nrcpts=1,
    msgid=<200307031126.h63BQjj08843www.domain.com>, relay=rootlocalhost
    Jul 3 04:26:45 prod sendmail[8846]: h63BQjj08843:
    to=admin.reportdomain.com, ctladdr=root (0/0), delay=00:00:00,
    xdelay=00:00:00, mailer=local, pri=30150, dsn=2.0.0, stat=Sent
    Jul 3 04:26:45 prod sendmail[8846]: h63BQjj08843: done;
    delay=00:00:00, ntries=1

    My research indicates that when a client doesn't close a connection
    properly with Sendmail it throws the NOQUEUE line into the logs.
    <eyeroll>I guess Outlook is a big offender </eyeroll>.

    My understanding of the situation is that this is more of a report
    message than an error message. But one thread suggested that there
    might be network issues. Since these scripts run via crontab, my
    assumption is that I have written my script poorly and that the script
    is disconnecting unceremoniously or the mail client needs to be passed
    something or sendmail needs to be passed a parameter that better
    terminates the transaction. BTW, this is on Redhat 7.3 and I'm using
    the version of mail installed by default and $MAIL='mail'

    I'd like to eliminate this report message, but have a feeling the
    NOQUEUE message is inconsequential. When I reduce the logging level,
    the message stops being recorded. Should I ignore this and get on
    with my life or what?

    Also, if you see any other clueless newbie nonsense ocurring in the
    above script, please let me know.

    Thanks,
    Jerry Cornelius
    Jhary-a-Conel Guest

  2. Moderated Post

    Default Re: perl script generates sendmail NOQUEUE: connect from rootlocalhost

    Removed by Administrator
    Greg Bacon Guest
    Moderated Post

  3. #3

    Default Re: perl script generates sendmail NOQUEUE: connect from rootlocalhost

    In article <d6888173.0307030358.585caf3cposting.google.com >
    [email]multiversehotmail.com[/email] (Jhary-a-Conel) writes:
    >When this script is run it generates the following output in
    >/var/log/maillog:
    >
    >Jul 3 04:26:45 prod sendmail[8843]: NOQUEUE: connect from
    >rootlocalhost
    >Jul 3 04:26:45 prod sendmail[8843]: h63BQjj08843: from=root,
    >size=150, class=0, nrcpts=1,
    >msgid=<200307031126.h63BQjj08843www.domain.com >, relay=rootlocalhost
    >Jul 3 04:26:45 prod sendmail[8846]: h63BQjj08843:
    >to=admin.reportdomain.com, ctladdr=root (0/0), delay=00:00:00,
    >xdelay=00:00:00, mailer=local, pri=30150, dsn=2.0.0, stat=Sent
    >Jul 3 04:26:45 prod sendmail[8846]: h63BQjj08843: done;
    >delay=00:00:00, ntries=1
    >
    >My research indicates that when a client doesn't close a connection
    >properly with Sendmail it throws the NOQUEUE line into the logs.
    You need to redo your research then - the FAQ says:

    Note 1: The significant part of the message isn't the NOQUEUE, but
    the "Null connection from ...". In particular, NOQUEUE isn't an error
    indication, but just a "place-holder" when no queue ID has been
    assigned, typically because message collection hasn't started
    (yet). It can occur in other messages too, and there too the
    significant part is what comes after the NOQUEUE.
    >I'd like to eliminate this report message, but have a feeling the
    >NOQUEUE message is inconsequential. When I reduce the logging level,
    >the message stops being recorded. Should I ignore this and get on
    >with my life or what?
    Right, the message does not occur at the standard/default LogLevel 9:

    if (LogLevel > 9)
    {
    /* log connection information */
    sm_syslog(LOG_INFO, NULL, "connect from %s", authinfo);
    }

    By raising the LogLevel from the default, you get more logging
    (surprise:-), some of it more or less of a debugging nature - so you're
    just getting what you asked for...

    --Per Hedeland
    [email]perhedeland.org[/email]
    Per Hedeland Guest

Similar Threads

  1. problem to connect on localhost
    By ma1234se in forum Macromedia Flash Flashcom
    Replies: 2
    Last Post: October 31st, 09:01 PM
  2. Replies: 3
    Last Post: November 20th, 09:55 AM
  3. Cannot connect to http://localhost:631
    By J. Zidar in forum Debian
    Replies: 1
    Last Post: July 27th, 09:30 AM
  4. Replies: 3
    Last Post: July 22nd, 09:39 PM
  5. Mail::Sendmail cannot connect to localhost but the mail command can
    By Andres Monroy-Hernandez in forum PERL Miscellaneous
    Replies: 1
    Last Post: June 27th, 11:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139