...
- make sure James is listening on the right port
Code Block telnet {the value you used for serverName} 8025 [or 25 if you've set it to that]
- 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}
- Set up a site for testing the mail archive tool
- Create a new site that includes the mailarchive tool.
- Open the mailarchive tool in the new site. You should see the value of serverName as configured in sakai.properties.
- Change the options for the mailarchive tool to accept mail from anyone (this makes it easier to test things).
- 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.
- Test James from the command line using telnet
- Connect to James using the port you set up above and a command like the following:
Code Block telnet {your hostname, or localhost} 8025
- Now type:
Code Block EHLO {your service name, ala sakai.your.institution)
- You should see a response like:
Code Block 250 {serverID.domain} Hello {serverName} (localhost [127.0.0.1])
- Now type:
and hit enter.Code Block MAIL FROM:<{your.email@your.institution}>
- You should see a receipt like:
Code Block 250 Sender <{your.email@your.institution}> OK
- Now type:
and hit enter.Code Block RCPT TO:<{the email address you entered for the mailarchive tool in your site}>
- You should see a receipt like:
Code Block 250 Recipient <{email address for the mailarchive tool in your site} OK
- Now type:
and hit enter.Code Block DATA
- Now type:
(or something like that) and hit enter twice.Code Block Subject: test...
- Now type the body of your message as in:
When you're done entering the body of the message, hit enter twice.Code Block This is a message I am using to test James.
- Now hit enter, enter a single period, then hit enter.
- You should see a receipt like:
Code Block 250 Message received
- Now type:
and hit enter.Code Block QUIT
- Check the mailarchive tool to see if your message made it in.
- 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.
- Connect to James using the port you set up above and a command like the following:
- 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.
- 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.
...