The spoolmanager log would be more useful for you. You can see which
matchers and mailets were invoked.
--- Noel
-----Original Message-----
From: Test [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 23:35
To: Noel J. Bergman; James Users List
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Only allow email from certain domain
If i look at the James.Mailet.log file, I can see that somebody has
successfully sent email from my server (see snippet below). Why is it so?
Shouldnt the entry in my config.xml file where I specify
RemoteAddrNotInNetwork only allow sending from the ip addresses i specified?
<mailet match="RemoteAddrNotInNetwork=127.0.0.1, 192.55.198.110,
172.17.65.9, 172.17.124.132" class="ToProcessor">
<processor>spam</processor>
</mailet>
I'm obviously missing something totally here ....
-----
1032767539304 [INFO ] (James.Mailet): RemoteDelivery: Remotely delivering
mail Mail1032767539132-440-!908967811
1032767539304 [INFO ] (James.Mailet): RemoteDelivery: sending mail to
[[EMAIL PROTECTED]] on host corp.webtv.net
1032767539320 [INFO ] (James.Mailet): ToProcessor: Sending mail
org.apache.james.core.MailImpl@116cae to transport
1032767539398 [INFO ] (James.Mailet): RemoteDelivery: Remote delivery
thread (0) will process mail
Mail1032767539132-440-!908967811-to-corp.webtv.net
1032767539414 [INFO ] (James.Mailet): RemoteDelivery: attempting to
deliver Mail1032767539132-440-!908967811-to-corp.webtv.net
1032767539586 [INFO ] (James.Mailet): RemoteDelivery: attempting delivery
of Mail1032767539132-440-!908967811-to-corp.webtv.net to host
mailb.microsoft.com. to [[EMAIL PROTECTED]]
1032767541523 [INFO ] (James.Mailet): RemoteDelivery: mail
(Mail1032767539132-440-!908967811-to-corp.webtv.net) sent successfully to
mailb.microsoft.com.
-----
----- Original Message -----
From: "Noel J. Bergman" <[EMAIL PROTECTED]>
To: "James Users List" <[EMAIL PROTECTED]>; "Test"
<[EMAIL PROTECTED]>
Sent: Tuesday, September 24, 2002 12:13 PM
Subject: RE: Only allow email from certain domain
> Do you have the spam processor configured to forward spam to the
postmaster?
>
> Completely as an aside, according to the SMTP RFC, the postmaster account
is
> supposed to accept everything sent to it. You aren't supposed to apply
> anti-spam filters to e-mail sent to postmaster.
>
> MAIL FROM: [EMAIL PROTECTED]
> RCPT TO: [EMAIL PROTECTED]
>
> appears to be aol performing an Open Relay Test against your server. If
you
> check your log, you should see if that was processed through the spam
> processor. What you DON'T want is for that to get to RemoteDelivery at
the
> end of the transport processor.
>
> --- Noel
>
> -----Original Message-----
> From: Test [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 18:45
> To: Noel J. Bergman; James Users List
> Subject: Re: Only allow email from certain domain
>
>
> Thanks Noel,
>
> I have added to that tag only the IP addresses of the machines which are
> allowed to send mail from James, but still find messages like the one
below
> delivered to my postmaster account. Have I stopped myself from being an
> open relay now I receive these bounce messages or is something still not
> right?
>
> -----
> We were unable to deliver the attached message because of an error in the
> mail server.
>
> Message details:
> Subject: ORT 203.19.232.133 7
> Sent date: Mon Sep 23 18:15:18 EST 2002
> MAIL FROM: [EMAIL PROTECTED]
> RCPT TO: [EMAIL PROTECTED]
> From: [EMAIL PROTECTED]
> Size (in bytes): 0
> -----
>
> ----- Original Message -----
> From: "Noel J. Bergman" <[EMAIL PROTECTED]>
> To: "James Users List" <[EMAIL PROTECTED]>; "Test"
> <[EMAIL PROTECTED]>
> Sent: Tuesday, September 24, 2002 6:38 AM
> Subject: RE: Only allow email from certain domain
>
>
> > Anthony,
> >
> > The default configuration for James is to accept e-mail only for local
> > domains domains (defined in the servernames tag), and to relay only for
> > e-mail sent by local users (defined by the RemoteAddrNotInNetwork tag).
> In
> > the stock configuration, RemoteAddrNotInNetwork only allows e-mail sent
> from
> > localhost to leave the machine.
> >
> > --- Noel
> >
> > -----Original Message-----
> > From: Test [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, September 23, 2002 2:44
> > To: [EMAIL PROTECTED]
> > Subject: Only allow email from certain domain
> >
> >
> > Hi,
> >
> > Apologies if this topic has already been discussed, i have scoured the
> > archives but couldn't find a solution.
> >
> > I am hoping for some advice on how to restrict James to only allow mail
to
> > be sent to a certain domain (eg only send to <username>@mydomain.com).
> All
> > mail to other domains would be marked as spam and blocked.
> >
> > Ideas?
> >
> > Thanks
> > Anthony
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>