Results 1 to 8 of 8

Thread: NMS Formmail close sendmail pipe failed?

  1. #1
    Join Date
    Aug 2009
    Posts
    6

    Question NMS Formmail close sendmail pipe failed?

    I'm having an issue where when I change the address_style in my NMS formmail, I get a close sendmail pipe failed error. Typically, one would think: Okay, my path is wrong, but as you'll see below, it's not. Also, it works if address_style is set to zero, so the program is working at times. It also seems that because of this, all my e-mails (When address_style=0) are sent from something like [username]@box350.bluehost.com.

    Here is all my code. The asterisks are of course real data in my files.
    Code:
    <form method="post" action="/cgi-bin/mymail.pl" onsubmit="report();return send404(this);">
    <div>
    <input type="hidden" name="realname" value="*****" />
    <input type="hidden" name="email" value="*****" />
    <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,REMOTE_USER,HTTP_USER_AGENT" />
    <input type="hidden" name="subject" value="Webpage Error" />
    <input type="hidden" name="recipient" value="2" />
    <input type="hidden" name="redirect" value="*****" />
    <input type="hidden" name="comments" id="comments" value="" />
    <input type="submit" value="Send 404 Error" />
    </div>
    </form>

    Here's the configurable part of the Perl file.

    Code:
    BEGIN
    {
      $DEBUGGING         = 1;
      $emulate_matts_code= 0;
      $secure            = 1;
      $allow_empty_ref   = 1;
      $max_recipients    = 5;
      $mailprog          = '/usr/sbin/sendmail -oi -t';
      $postmaster        = '';
      @referers          = qw();
      @allow_mail_to     = qw(*****);
      @recipients        = ();
      %recipient_alias   = (
        '1',*****',
        '2','*****'
      );
      @valid_ENV         = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
      $locale            = '';
      $charset           = 'iso-8859-1';
      $date_fmt          = '%A, %B %d, %Y at %H:%M:%S %Z';
      $style             = '/css/nms.css';
      $no_content        = 0;
      $double_spacing    = 1;
      $wrap_text         = 0;
      $wrap_style        = 1;
      $address_style     = 0;
      $send_confirmation_mail = 0; #This is what I can't change without getting an error.
      $confirmation_text = <<'END_OF_CONFIRMATION';
    From: you@your.com
    Subject: form submission
     
    Thank you for your form submission.
     
    END_OF_CONFIRMATION
    This is an extremely aberrant issue, and I've gotten no support elsewhere. Your insight and ideas will be much appreciated.

    Thanks!

  2. #2
    Join Date
    Aug 2009
    Posts
    6

    Question

    I seemed to have narrowed down the error, or actually fixed it. Now I'd like to know why this is causing the error.

    It seems that my e-mail, error@[secondarydomain].com was the issue. That was set in the From address. No matter what it is, if it has the secondary domain as the domain it's coming from, it causes the issue. If I change it to something like yahoo, then the issue disappears. Why would this happen? The page isn't even from that domain, it's from a different one.

    Appreciate the insight.

  3. #3
    Join Date
    Apr 2008
    Location
    Chasing the Holy Grail - Pacific Northwest
    Posts
    1,312

    Default

    Have you actually created the email address in the cPanel Email setup?
    In the Hyperion universe, a farcaster is an instantaneous transportation device.
    Experience: The thing you get just after you need it.

  4. #4
    Join Date
    Aug 2009
    Posts
    6

    Default

    The original, yes. But if that was the issue, then setting it to @yahoo wouldn't do anything anyways. Besides, it's the To address that matters, the from address can be anything. Or, so I thought.

  5. #5
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    4,951

    Default

    The from addrerss MUST exist either as an email account or a forwarder if it is a domain hosted with BlueHost - if not then the default accountname@box999.bluehost.com gets substituted so as to ensure that the from address exists.

  6. #6
    Join Date
    Aug 2009
    Posts
    6

    Default

    That makes sense, however, the original one IS really there on my host. But that doesn't stop the error if I send anything from @mydomain.com. I had created it as a test, and it's still there.

  7. #7
    Join Date
    Apr 2008
    Location
    Chasing the Holy Grail - Pacific Northwest
    Posts
    1,312

    Default

    I would suggest trying to create yet another email account, ensuring that it is for the proper domain, and test again with that.
    In the Hyperion universe, a farcaster is an instantaneous transportation device.
    Experience: The thing you get just after you need it.

  8. #8
    Join Date
    Aug 2009
    Posts
    6

    Default

    I tried that, and it seemed to work partially. It only works if the e-mail address is actually forwarding. (Before I'd just discarded it)
    I'm sure there's a security reason behind that, would anybody know it?

Tags for this Thread

Posting Permissions

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