Subject: Netmail 2

From: [email-masked] (Gustavo Glusman)
Date: Fri, 19 Nov 1993 05:27:21 -0800

>From my mail of 4 days ago:

>I have a little problem with sending mail from the MOO to the net.
>Every time $network:raw_send is called, it returns:
>Mail sending failed: 553 Local configuration error, hostname not recognized as
>local
>But... the mail is actually sent. So the MOO thinks it failed, but the mail is
>on its way.

I had a problem. Now I solved it, but I'm left with a puzzle.
I noticed that the mail sent on player creation failed, and the mail
forwarded (netforward option) both half-failed as described above.
But when I used $note:mailme, it worked OK. So $network had to be
customized correctly, right?

I took a look at $note:mailme. The only think I noticed that might be
relevant was that it did a suspend(0) immediately before $network:sendmail.
So I tried to stick a suspend(0) before :sendmail in the other verbs that
call :sendmail.
This didn't work, either.

What works now is: I put the call to :raw_sendmail inside a fork (0);
endfork, in :sendmail.

Why does this work?

(BTW, thanks to Larry and Peter for the comments.)

---

From: Larry Masinter <[email-masked]>
Date: Tue, 23 Nov 1993 20:02:24 -0800

>>>>> On Fri, 19 Nov 1993 05:27:21 -0800, [email-masked] (Gustavo Glusman) said:

> Why does this work?

When you put the call to :raw_sendmail inside a fork(0); endfork, you
are basically ignoring ALL error returns.

$network:sendmail and $network:raw_sendmail are documented as:

"Returns 0 if successful, or else error condition or string saying why not."

(I've had to resort to this convention in a couple of places.)

If you put the :raw_sendmail inside a fork, though, you're returning
0 immediately, without waiting to see if you can actually open the
connection to the maildrop, send the mail, etc.

---

From: [email-masked] (Jonathan Bradshaw)
Date: Wed, 24 Nov 1993 07:15:50 -0800

A small hack to fix the problem is NOT to send your hostname when doing
a 'HELO' command. In my case, mine would be 'HELO nova.decio.nd.edu', by
editing the :raw_Sendmail and removing the hostname and just sending
'HELO' the problem goes away.

-- 
 Jonathan Bradshaw | Preferred E-Mail is: [email-masked] | Ham N9OXE
 WNDU-AM/FM/TV South Bend IN | Opinions stated are mine and not of my employer
 PGP Key is available from keyservers or mail me using the subject  'send key'
 "If any girl rejects you, don't you doubt it's part of the .plan" - D. Gibson