#musicbrainz

/

      • yalaforge
        hey, the quick search ist online. Thanks djce!
      • oops
      • ruaok
        djce is update happy...
      • djce
        ok, hope it works ;-) Dinner time.
      • djce is away: fooooooood
      • eikeon has quit
      • eikeon
        eikeon (~eikeon@jungle.ne.client2.attbi.com) has joined #musicbrainz
      • djce is back (gone 01:23:17)
      • ruaok
        ahhh, just the person I needed to talk to.
      • Scott's email verification bounces because of:
      • (reason: 550 rejected: there is no valid sender in any header line (envelope sender is <noreply@musicbrainz.org>))
      • djce
        ok....
      • ruaok
        RFC 822 specifies that a Sender: line is not needed unless its different from the From line.
      • Its discouraged if its the same as the from line.
      • But Scott's mail system rquires it.
      • djce
        so is Scott's mail system incorrect when it says that the noreply address is invalid?
      • ruaok
        From what I am reading, yes.
      • djce
        When a mail is sent out from Zim to Scott, does his mail server connect back to Zim to check up on the sender address?
      • yalaforge
        ruaok: RFC 822 is obsolete. Perhaps there are some changes in 2822?
      • ruaok
        Ah. THanks for the clue by four.
      • mailbox of the agent responsible for the actual transmission of the
      • message. For example, if a secretary were to send a message for
      • another person, the mailbox of the secretary would appear in the
      • "Sender:" field and the mailbox of the actual author would appear in
      • the "From:" field. If the originator of the message can be indicated
      • by a single mailbox and the author and transmitter are identical, the
      • "Sender:" field SHOULD NOT be used. Otherwise, both fields SHOULD
      • appear.
      • Seems like Scoot's mailer should not bounce mail based on that criteria.
      • What is even more strange is that the mail I sent from Evolution to scott does not have a sender line and it gets delievered ok.
      • djce: I don't know.
      • I doubt it.
      • djce
        The error message it gives is a bit odd.
      • ruaok
        Indeed,
      • djce
        It claims there is no valid sender "in any header line", which presumably means "From", "Sender", "Reply-To" etc.
      • ruaok
        I'm wondering if I am improperly formatting something and that everyone but Scott's mailer is flexible in accepting it.
      • djce
        then it cites the envelope sender - which is of course completely different.
      • Where can I find scott's address?
      • ruaok
        on sec.
      • djce
        It must be in my mail somewhere, but I can't see it yet.
      • ok thanks
      • ruaok
        Does the order of From and To make a difference?
      • OHHH. I think I get it.
      • djce
        No. What do you "get"?
      • ruaok
        If To: line reads:
      • To: ScottM87 <scott@smartblob.com>;
      • ScottM87 is a moderator name, not a mailbox nam,e
      • I wonder if we used:
      • If that would work?
      • djce
        Actually I was thinking it probably doesn't like the non-existent "From" address at "users.musicbrainz.org".
      • ruaok
        Hmmm. That makes more sense.
      • djce
        Maybe we should say "From: foo@users.mb.org"; and "Sender: webserver@mb.org";
      • ruaok
        Hmmm. Worth a try.
      • Lemme tinker.
      • djce
        in fact, I can pretty much guarantee that's it.
      • Because "users.musicbrainz.org" probably doesn't have any DNS MX records
      • therefore anything at that domain is trivially invalid.
      • ruaok
        I believe we have a blanket MX record that should cover that.
      • Regardless that it is good thing to try.
      • yalaforge
        I checked the sources of exim 3.36 (the one that smartblob.com uses). It seems the option headers_sender_verify is on
      • ruaok
        ok, I've fixed it and I'm about to send him a verification mail by hand. Lets see if it comes back.
      • djce
        Good research yalaforge. Looks like it should be easy to fix now we understand it.
      • ruaok
        djce: can you do me a favor and check out my utf-8 encoding on test.mb.org and verify your email again?
      • yalaforge: you too, please?
      • yalaforge
        ok
      • ruaok
        The mail went out and no bounces so far.
      • djce
        you want me to check your code, ruaok?
      • ruaok
        sure.
      • Lemme check it in.
      • But I was more concerned about the headers.
      • yalaforge
        mail is here
      • ruaok
        yeay!
      • yalaforge
        The "Mime-Version: 1.0" is missing, AFAICS
      • djce
        You should remove the encode("utf-8",...) bit. All our internal data is already utf8-encoded.
      • ruaok
        damn. You're fast.
      • So encode_qp is all we need then?
      • djce
        Yes. And not even that in the "confirmation" email, since there is nothing to encode.
      • ruaok
        MIME::QuotedPrint is that standard perl?
      • djce
        i.e. remove the Content-Transfer-Encoding from SendVerificationEmail
      • perl 5.8.0 standard, I think yes.
      • yalaforge
        ruaok: is ruaok.net your domain? I don't get it via whois.
      • ruaok
        yes. I let it lapse. I'm too poor to affort too many domains.
      • djce
        (oh, I see, you're encoding it all at the end. Oh, leave it in then).
      • In SendVerificationEmail the utf-8/QP encoding is ok, but over the top, since the text of the message is guaranteed to be all standard US-ASCII stuff anyway.
      • ruaok
        Moderator names could have UTF-8 chars in them.
      • djce
        yes, indeed.
      • ruaok
        Do I need to add the Mime-Version: 1.0 header?
      • yalaforge
        yes.
      • wait a minute, please
      • djce
        I think so. I always forget it, but it should be added.
      • ruaok: missing utf8/qp encoding here: "If you would like to send mail to moderator $from,"
      • ruaok
        ok got it.
      • ok, mime version is in there, server restarted.
      • Do you guys want to try it one more time?
      • yalaforge
        sure
      • ruaok
        djce: is it safe to update UserStuff.pm on the main server once we're happy here?
      • djce
        Yes, as long as the changes are small and isolated. Best to do a "cvs diff -r HEAD" on zim to check.
      • ruaok
        My changes are, I was wondering if there was something else.
      • djce
        is your stuff fully committed now?
      • ruaok
        djce: Do you know if MIME::QuotedPrint is standard perl? I wanna add it to the proper section in INSTAL
      • yalaforge
        RFC-2045 states: "Messages composed in accordance with this document MUST include such a header field, with the following verbatim text: MIME-Version: 1.0" See section 4.
      • djce
        MIME::QuotedPrint is part of "G/GA/GAAS/MIME-Base64-2.20.tar.gz" - not vanilla Perl 5.8.0, but usually one of the first add-ons people install :-) Best to list it in the INSTALL file, it can't hurt.
      • btw there is a really nice, slick, much more Perl-y way of doing all that e-mail generation stuff. I'll see if I can refer to an example some time to remember the slick way to do it.
      • ruaok
        let me commit the next version now.
      • djce
        I'll send you a mail with some examples.
      • yalaforge
        ruaok: The MessageId is still '@cranky.ruaok.net';. I'd change that to mb.org. The rest is ok.
      • djce
        yes, the Message-ID is generated by sendmail on each server, not by the MusicBrainz code.
      • i.e. That will be automatically correct when it goes live.
      • ruaok
        yeah, people won't be using it on this machine much.
      • yalaforge
        ah, ok
      • ruaok
        My spam filter gives it a -.3 rating.
      • yalaforge
        Does the code handle moderator names with non-ascii characters?
      • ruaok
        Nice.
      • Yes.
      • yalaforge
        cool
      • then I'd go to bed if there's nothing more to test ;-)
      • ruaok
        unless you want to test the main server when I make it go live in about 2 minutes. :-)
      • any objections djce?
      • yalaforge
        ok
      • djce
        sorry, was away then... wait a mo.
      • lemme check the diffs
      • only UserStuff.pm, yes?
      • ruaok
        yes
      • use Encoding; is still in there and is not needed anymore.
      • djce
        Is "webserver@mb.org"; a valid address?
      • ruaok
        It will be when I do the update.
      • djce
        looks good to me.
      • ruaok
        it is now.
      • ok
      • ok, what is the preferred way of restarting the server to pick up this new module?
      • apachectl restart?
      • on apache 1?
      • djce
        cvs update cgi-bin/UserStuff.pm ; touch /usr/local/perl58/reload_modules
      • no restart required.
      • ruaok
        really? wow.
      • so then it should be live now.
      • djce
        cool.
      • How do you tell? :-)
      • send each other a mail I suppose.
      • yalaforge
        works. I got the mail
      • ruaok
        looks good to me.
      • thanks for testing.
      • yalaforge
        np. Good night
      • djce
        night!
      • yalaforge has left the channel
      • Rob, you should get a mail from me with a few foreign characters in it.
      • ruaok
        Yup, and the URL at the bottom is no bueno.