You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Jim Smith <li...@ponder-stibbons.nildram.co.uk> on 2006/01/08 12:28:00 UTC

Forwarding and relay-denied.

I am trying to forward mail for a particular user to a remote address.

I have added this mailet

<mailet match="RecipientIs=joe@mydomain.co.uk" class="Forward" >
   <forwardto>joe.blogs@isp.com</forwardto>
</mailet>

When I send mail to joe@mydomain.co.uk, I get this

We were unable to deliver the attached message because of an error in 
the mail server.

Error message below:
550 - Requested action not taken: relaying denied

Message details:
   Subject: test 11b
   Sent date: Sun Jan 08 11:15:11 GMT 2006
   MAIL FROM: jim@mydomain.co.uk
   RCPT TO: joe.bloggs@isp.com
   From: Jim Tester <ji...@mydomain.co.uk>
   To: joe@mydomain.co.uk
   Size (in bytes): 27

I am testing this by sending mail using an external isps smtp. James 
receives the mail from the external isp using fetchmail. The forward 
mailet is apparently working but the outgoing mail is being stopped 
later.

I can send mail through james directly to joe.bloggs@isp.com (the 
11:18:22 timed messages below)

Mailet log looks like this

08/01/06 11:15:32 INFO  James.Mailet: RemoteAddrNotInNetwork: Authorized 
addresses: [127.0.0.1/255.255.255.255, 192.168.1.100/255.255.255.255]
08/01/06 11:15:32 INFO  James.Mailet: RemoteDelivery: maxRetries is 
larger than total number of attempts specified. Increasing last 
delayTime with 19 attempts
08/01/06 11:15:32 INFO  James.Mailet: RemoteDelivery: Delay of 21600000 
msecs is now attempted: 20 times
08/01/06 11:18:22 INFO  James.Mailet: RemoteDelivery: Attempting 
delivery of Mail1136719101746-0-to-isp.com to host mailin.isp.com. at 
195.188.53.99 to addresses [joe.bloggs@isp.com]
08/01/06 11:18:22 INFO  James.Mailet: RemoteDelivery: Mail 
(Mail1136719101746-0-to-isp.com) sent successfully to mailin.isp.com. at 
195.188.53.99
08/01/06 11:18:59 INFO  James.Mailet: ToRepository: Storing mail 
Mail1136719138988-1-!228188 in file://jbs/var/mail/relay-denied/

smtpserver log looks like this

08/01/06 11:15:32 INFO  smtpserver: SMTP Service uses default thread 
group.
08/01/06 11:15:32 INFO  smtpserver: SMTP Service is running on: 
thoth.mydomain.co.uk
08/01/06 11:15:32 INFO  smtpserver: SMTP Service handler hello name is: 
thoth.mydomain.co.uk
08/01/06 11:15:32 INFO  smtpserver: SMTP Service handler connection 
timeout is: 360000
08/01/06 11:15:32 INFO  smtpserver: SMTP Service connection backlog is: 
5
08/01/06 11:15:32 INFO  smtpserver: SMTP Service will allow a maximum of 
30 connections.
08/01/06 11:15:32 INFO  smtpserver: This SMTP server does not require 
authentication.
08/01/06 11:15:32 INFO  smtpserver: Authorized addresses: 
[127.0.0.0/255.0.0.0, 192.168.1.100/255.255.255.255]
08/01/06 11:15:32 INFO  smtpserver: No maximum message size is enforced 
for this server.
08/01/06 11:15:32 INFO  smtpserver: The idle timeout will be reset every 
20480 bytes.
08/01/06 11:15:32 INFO  smtpserver: SMTP Service started plain:25
08/01/06 11:18:21 INFO  smtpserver: Connection from mypc.mydomain.co.uk 
(192.168.1.100)
08/01/06 11:18:21 INFO  smtpserver: Successfully spooled mail 
Mail1136719101746-0 from jim@mydomain.co.uk for [joe.bloggs@isp.com]
08/01/06 11:18:58 INFO  smtpserver: Connection from mypc.mydomain.co.uk 
(192.168.1.100)
08/01/06 11:18:58 INFO  smtpserver: Successfully spooled mail 
Mail1136719138988-1 from jim@mydomain.co.uk for [joe@mydomain.co.uk]


The relay-denied directory contains nothing despite what the log 
messages say.
-- 
Jim Smith
I'm afraid you've mistaken me for someone who gives a damn.

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org