Dear Wiki user, You have subscribed to a wiki page or wiki category on "James Wiki" for change notification.
The following page has been changed by Mike Farace: http://wiki.apache.org/james/JamesQuickstart ------------------------------------------------------------------------------ }}} JAMES does not print errors by default when a user is invalid, it puts the message into james-2.2.0/apps/james/var/mail/address-error + - 1. To relay email for your local subnet only, without authentication, make the following changes, you need to edit {{{apps/james/SAR-INF/config.xml}}}. Look for the following default line <authorizedAddresses>127.0.0.0/8</authorizedAddresses>. Change this to contain your internal network: {{{ + 1. To relay email for your local subnet only, without authentication, make the following changes, you need to edit {{{apps/james/SAR-INF/config.xml}}}. Look for the following default line <authorizedAddresses>127.0.0.0/8</authorizedAddresses>. Change this to contain your internal network: {{{ <authorizedAddresses>192.168.1.0/24, 127.0.0.0/8</authorizedAddresses> or <authorizedAddresses>192.168.1.0/255.255.255.0, 127.0.0.0/8</authorizedAddresses> }}} Either of the above will allow the internal network of 192.1681.0 with a subnet mask of 255.255.255.0 to relay mail through JAMES without autentication. + 1. To test if you can now send email to the internet via JAMES, telnet to the JAMES server on port 25, and do a manual email test: {{{ - 1. To relay email for your local subnet only, without authentication, make the following changes, you need to edit {{{apps/james/SAR-INF/config.xml}}}. Look for the following default line <authorizedAddresses>127.0.0.0/8</authorizedAddresses>. Change this to contain your internal network: {{{ - <authorizedAddresses>192.168.1.0/24, 127.0.0.0/8</authorizedAddresses> - or - <authorizedAddresses>192.168.1.0/255.255.255.0, 127.0.0.0/8</authorizedAddresses> - }}} Either of the above will allow the internal network of 192.1681.0 with a subnet mask of 255.255.255.0 to relay mail through JAMES without autentication. - - 1. To test if you can now send email to the internet via JAMES, telnet to the JAMES server on port 25, and do a manual email test: - - > '''telnet james-server 25''' + # telnet james-server 25 Trying 192.168.1.45... Connected to james-server. Escape character is '^]'. 220 james-server SMTP Server (JAMES SMTP Server 2.3.1) ready Mon, 17 Sep 2007 21:31:00 -0700 (PDT) - '''ehlo foo.com''' + ehlo foo.com 250-mailmaster Hello foo.com ( [192.168.1.10]) 250-PIPELINING 250 ENHANCEDSTATUSCODES - '''mail from:<[EMAIL PROTECTED]>''' + mail from:<[EMAIL PROTECTED]> 250 2.1.0 Sender <[EMAIL PROTECTED]> OK - '''rcpt to:<[EMAIL PROTECTED]>''' + rcpt to:<[EMAIL PROTECTED]> 250 2.1.5 Recipient <[EMAIL PROTECTED]> OK - '''data''' + data 354 Ok Send data ending with <CRLF>.<CRLF> - '''subject: test to some-user via JAMES''' + subject: test to some-user via JAMES - '''This is a test from [EMAIL PROTECTED] via james to the internet. ''' + This is a test from [EMAIL PROTECTED] via james to the internet. - '''.''' <---- Period (.) on a line by itself is the end of message indicator + . <---- Period (.) on a line by itself is the end of message indicator 250 2.6.0 Message received - ^] <--- '''CNTL-]''' to quit from the telnet session + ^] <--- CNTL-] to quit from the telnet session - telnet> '''quit''' + telnet> quit - + }}} '''TOWRITE:''' How to test James is working for you. (use an external mail account to send a message to and from. need to create a local account too, maybe add a local IP address to use as the sender).