james-server-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Me Self <wmso...@gmail.com>
Subject How to relay smtp from localhost?
Date Wed, 24 Mar 2010 10:23:57 GMT
Im new to smtp and Im trying to figure out how to make James 2.3.2 forward
smtp from localhost to addresses across the net.

I created a testuser that I use as "mail from" but I get relay denied so
far:

220 myserver1 SMTP Server (JAMES SMTP Server 2.3.2) ready Wed, 24 Mar 2010
11:01:06 +0100 (CET)
ehlo localhost
250-myserver1 Hello localhost (0:0:0:0:0:0:0:1 [0:0:0:0:0:0:0:1])
250-PIPELINING
250 ENHANCEDSTATUSCODES
mail from: <testuser>
250 2.1.0 Sender <testuser@localhost> OK
rcpt to: <x@gmail.com>
550 5.7.1 Requested action not taken: relaying denied

The smtp log says:

24/03/10 10:54:48 INFO  smtpserver: Connection from 0:0:0:0:0:0:0:1
(0:0:0:0:0:0:0:1)
24/03/10 10:55:13 ERROR smtpserver: Rejected message - 0:0:0:0:0:0:0:1 not
authorized to relay to gmail.com [to:x@gmail.com <to%3Ax@gmail.com>]
[from:testuser@localhost]

Is this James or gmail thats rejecting the mail?

I modified config.xml to allow more addresses but to no avail:

<authorizedAddresses>127.0.0.0/8, 192.168.*, localhost</authorizedAddresses>

 <mailet match="RemoteAddrNotInNetwork=127.0.0.1, 192.168.*, localhost"
class="ToProcessor">
            <processor> relay-denied </processor>
            <notice>550 - Requested action not taken: relaying
denied</notice>
         </mailet>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message