Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

  1. make sure James is listening on the right port
    1. Code Block
      telnet {the value you used for serverName} 8025 [or 25 if you've set it to that]
      
    2. you should see a status message from the server indicating the server name and the MTA. The server name should match what you put in for serverId (plus a domain), and should be followed by something like
      Code Block
      (James SMTP Server 2.1.3) ready {date and time}
      
  2. Set up a site for testing the mail archive tool
    1. Create a new site that includes the mailarchive tool.
    2. Open the mailarchive tool in the new site. You should see the value of serverName as configured in sakai.properties.
    3. Change the options for the mailarchive tool to accept mail from anyone (this makes it easier to test things).
    4. Enroll a user in the test site with an email address you can monitor. Once this is done, you should get a copy of your test messages.
  3. Test James from the command line using telnet
    1. Connect to James using the port you set up above and a command like the following:
      Code Block
      telnet {your hostname, or localhost} 8025
      
    2. Now type:
      Code Block
      EHLO {your service name, ala sakai.your.institution)
      
    3. You should see a response like:
      Code Block
      250 {serverID.domain} Hello {serverName} (localhost [127.0.0.1])
      
    4. Now type:
      Code Block
      MAIL FROM:<{your.email@your.institution}>
      
      and hit enter.
    5. You should see a receipt like:
      Code Block
      250 Sender <{your.email@your.institution}> OK
      
    6. Now type:
      Code Block
      RCPT TO:<{the email address you entered for the mailarchive tool in your site}>
      
      and hit enter.
    7. You should see a receipt like:
      Code Block
      250 Recipient <{email address for the mailarchive tool in your site} OK
      
    8. Now type:
      Code Block
      DATA
      
      and hit enter.
    9. Now type:
      Code Block
      Subject: test...
      
      (or something like that) and hit enter twice.
    10. Now type the body of your message as in:
      Code Block
      This is a message I am using to test James.
      
      When you're done entering the body of the message, hit enter twice.
    11. Now hit enter, enter a single period, then hit enter.
    12. You should see a receipt like:
      Code Block
      250 Message received
      
    13. Now type:
      Code Block
      QUIT
      
      and hit enter.
    14. Check the mailarchive tool to see if your message made it in.
    15. If that doesn't work, go back and check your settings. The log files logs/catalina.out and sakai/logs/james-DATE may help figure out what's wrong.
  4. If you have a separate mail transport agent (i.e. sendmail or postfix), try the same steps as above, but with the port for the MTA (25) instead of James.
  5. Check to see that you've received a copy of the messages. If you haven't, check the logs and look for details in the returned message that will eventually be sent to the MAIL FROM: address you entered.

...