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 Jean Luc Guislain <jl...@gmail.com> on 2010/08/25 20:28:19 UTC

How to poll a pop gmail account with james' fetchmail

I would like to know if somebody has a working

james-fetchmail.xml

file to poll a pop gmail account.

Rgs,
JL

Re: How to poll a pop gmail account with james' fetchmail

Posted by Jean Luc Guislain <jl...@gmail.com>.
Hi Eric!

Now that my James server is working fine on ifm.ath.cx with TLS and polling
my 2 external mails (gmail.com and operamail.com accounts), I am ready for
the next step: getting rid of the spam (operamail sends me a lot of it!)

The question is:

How can I use Spamassassin with James?

A daemonized Spamassassin and Vipul's Razor are installed on my computer:

bash-4.1# ps aux | grep spamd
root 3771 0.0 1.8 41384 37412 ? Ss Oct03 0:21 /usr/bin/spamd -d
--pidfile=/var/run/spamd.pid
root 3772 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
root 3773 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
root 19462 0.0 0.0 1956 552 pts/2 S+ 13:37 0:00 grep spamd
bash-4.1#

Regards,

JL


On Wed, Aug 25, 2010 at 2:28 PM, Jean Luc Guislain <jl...@gmail.com>wrote:

> I would like to know if somebody has a working
>
> james-fetchmail.xml
>
> file to poll a pop gmail account.
>
> Rgs,
> JL
>

Re: How to poll a pop gmail account with james' fetchmail

Posted by Jean Luc Guislain <jl...@gmail.com>.
I use james 2.3.2...

On Wed, Oct 6, 2010 at 10:27 AM, Norman Maurer <no...@apache.org> wrote:

> What version of james are you using ? I think SpamAssassin support is
> only in 3.x.
>
> Bye,
> Norman
>
>
> 2010/10/6 Jean Luc Guislain <jl...@gmail.com>:
> > Hi Eric!
> >
> > Thank you for your email.
> > When I put this mailet:
> > <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
> >  <spamdHost>localhost</spamdHost>
> >  <spamdPort>783</spamdPort>
> > </mailet>
> > in the config.xml file, then james refuses to start.
> > What can be wrong?
> >
> > JL
> >
> > On Wed, Oct 6, 2010 at 6:35 AM, Eric Charles <er...@apache.org> wrote:
> >
> >> Hi Jean Luc,
> >>
> >> You need to invoke the SpamAssassin mailet in the spool-manager.xml (in
> >> root processor for example)
> >>
> >> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
> >>  <spamdHost>localhost</spamdHost>
> >>  <spamdPort>783</spamdPort>
> >> </mailet>
> >>
> >> After, you need to tell james to redirect the the mail to a spam
> >> respository (you can also define class="Null" to simply not store the
> mail)
> >>
> >> <mailet match="HasMailAttributeWithValue=X-SpamAssassin, YES"
> >> class="ToRepository">
> >> <repositoryPath>file://var/mail/spamassassin/</repositoryPath>
> >> </mailet>
> >>
> >> I think the mail attribute mail depends on the james version.
> >> So if this does not work for you (if spam still arrives in you inbox),
> look
> >> at the mail headers in the source of the mail to see the header value
> set by
> >> James, and adapt the mailet match according to it.
> >>
> >> Tks,
> >>
> >> Eric
> >>
> >>
> >>
> >>
> >> On 5/10/2010 19:54, Jean Luc Guislain wrote:
> >>
> >>> Hi Eric!
> >>>
> >>> Now that my James server is working fine on ifm.ath.cx with TLS and
> >>> polling
> >>> my 2 external mails (gmail.com and operamail.com accounts), I am ready
> >>> for
> >>> the next step: getting rid of the spam (operamail sends me a lot of
> it!)
> >>>
> >>> The question is:
> >>>
> >>> How can I use Spamassassin with James?
> >>>
> >>> A daemonized Spamassassin and Vipul's Razor are installed on my
> computer:
> >>>
> >>> bash-4.1# ps aux | grep spamd
> >>> root 3771 0.0 1.8 41384 37412 ? Ss Oct03 0:21 /usr/bin/spamd -d
> >>> --pidfile=/var/run/spamd.pid
> >>> root 3772 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
> >>> root 3773 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
> >>> root 19462 0.0 0.0 1956 552 pts/2 S+ 13:37 0:00 grep spamd
> >>> bash-4.1#
> >>>
> >>> Regards,
> >>>
> >>> JL
> >>>
> >>>
> >>> On Wed, Aug 25, 2010 at 2:28 PM, Jean Luc Guislain<
> jl.guislain@gmail.com
> >>> >wrote:
> >>>
> >>>  I would like to know if somebody has a working
> >>>>
> >>>> james-fetchmail.xml
> >>>>
> >>>> file to poll a pop gmail account.
> >>>>
> >>>> Rgs,
> >>>> JL
> >>>>
> >>>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> >> For additional commands, e-mail: server-user-help@james.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

Re: How to poll a pop gmail account with james' fetchmail

Posted by Jean Luc Guislain <jl...@gmail.com>.
Allright, I will try James 3. How can I download it?

On Wed, Oct 6, 2010 at 11:16 AM, Eric Charles <er...@apache.org> wrote:

> I already used SpamAssassin mailet on 2.3. built from trunk. It may be that
> the distribution doesn't contain that mailet.
>
> If you're starting a project with james, maybe you could try to use the 3.0
> version (not yet released).
> Other are using it also
> http://www.mail-archive.com/server-user@james.apache.org/msg11305.html and
> you may have better support (and coming doc) on 3.0
>
> Tks,
> Eric
>
>
>
>
> On 6/10/2010 17:03, Jean Luc Guislain wrote:
>
>> I use james 2.3.2...
>>
>> On Wed, Oct 6, 2010 at 10:27 AM, Norman Maurer<no...@apache.org>  wrote:
>>
>>  What version of james are you using ? I think SpamAssassin support is
>>> only in 3.x.
>>>
>>> Bye,
>>> Norman
>>>
>>>
>>> 2010/10/6 Jean Luc Guislain<jl...@gmail.com>:
>>>
>>>> Hi Eric!
>>>>
>>>> Thank you for your email.
>>>> When I put this mailet:
>>>> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
>>>>  <spamdHost>localhost</spamdHost>
>>>>  <spamdPort>783</spamdPort>
>>>> </mailet>
>>>> in the config.xml file, then james refuses to start.
>>>> What can be wrong?
>>>>
>>>> JL
>>>>
>>>> On Wed, Oct 6, 2010 at 6:35 AM, Eric Charles<er...@apache.org>  wrote:
>>>>
>>>>  Hi Jean Luc,
>>>>>
>>>>> You need to invoke the SpamAssassin mailet in the spool-manager.xml (in
>>>>> root processor for example)
>>>>>
>>>>> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
>>>>>  <spamdHost>localhost</spamdHost>
>>>>>  <spamdPort>783</spamdPort>
>>>>> </mailet>
>>>>>
>>>>> After, you need to tell james to redirect the the mail to a spam
>>>>> respository (you can also define class="Null" to simply not store the
>>>>>
>>>> mail)
>>>
>>>> <mailet match="HasMailAttributeWithValue=X-SpamAssassin, YES"
>>>>> class="ToRepository">
>>>>> <repositoryPath>file://var/mail/spamassassin/</repositoryPath>
>>>>> </mailet>
>>>>>
>>>>> I think the mail attribute mail depends on the james version.
>>>>> So if this does not work for you (if spam still arrives in you inbox),
>>>>>
>>>> look
>>>
>>>> at the mail headers in the source of the mail to see the header value
>>>>>
>>>> set by
>>>
>>>> James, and adapt the mailet match according to it.
>>>>>
>>>>> Tks,
>>>>>
>>>>> Eric
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 5/10/2010 19:54, Jean Luc Guislain wrote:
>>>>>
>>>>>  Hi Eric!
>>>>>>
>>>>>> Now that my James server is working fine on ifm.ath.cx with TLS and
>>>>>> polling
>>>>>> my 2 external mails (gmail.com and operamail.com accounts), I am
>>>>>> ready
>>>>>> for
>>>>>> the next step: getting rid of the spam (operamail sends me a lot of
>>>>>>
>>>>> it!)
>>>
>>>> The question is:
>>>>>>
>>>>>> How can I use Spamassassin with James?
>>>>>>
>>>>>> A daemonized Spamassassin and Vipul's Razor are installed on my
>>>>>>
>>>>> computer:
>>>
>>>> bash-4.1# ps aux | grep spamd
>>>>>> root 3771 0.0 1.8 41384 37412 ? Ss Oct03 0:21 /usr/bin/spamd -d
>>>>>> --pidfile=/var/run/spamd.pid
>>>>>> root 3772 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>>>>>> root 3773 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>>>>>> root 19462 0.0 0.0 1956 552 pts/2 S+ 13:37 0:00 grep spamd
>>>>>> bash-4.1#
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> JL
>>>>>>
>>>>>>
>>>>>> On Wed, Aug 25, 2010 at 2:28 PM, Jean Luc Guislain<
>>>>>>
>>>>> jl.guislain@gmail.com
>>>
>>>> wrote:
>>>>>>>
>>>>>>  I would like to know if somebody has a working
>>>>>>
>>>>>>> james-fetchmail.xml
>>>>>>>
>>>>>>> file to poll a pop gmail account.
>>>>>>>
>>>>>>> Rgs,
>>>>>>> JL
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>
>>>>>
>>>>>  ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

Re: How to poll a pop gmail account with james' fetchmail

Posted by Jean Luc Guislain <jl...@gmail.com>.
Hi Eric!

I would like to know where I can find this docs:

If you made any adjustments in the assembly.xml you need todo the same
adjustment in the spring-beans.xml file.
For more details how the spring beans get configured please see the spring
documentation

and:

If you made any adjustments in the enviroment.xml for logging you need to
configure the same in log4j.properties.
For more details how log4j.properties are configured please see the log4j
documentation.

BTW, what is this?

1. Copy your old config.xml file to conf/james-config.xml

% cp /path/to/james-old/apps/james/SAR-INF/config.xml
/path/to/james/conf/config.xml

????

Tks,

JL



On Thu, Oct 7, 2010 at 2:10 PM, Jean Luc Guislain <jl...@gmail.com>wrote:

> I found the most simple solution (which is distro independent).
> Whatever the distro just make a link in the rc.d files (or whatever) to
> /opt/james-3.0/bin/james!
> With Slackware 13.1:
>
> bash-4.1# ln -s /opt/james-3.0/bin/james /etc/rc.d/rc.james
>
> Then start it when booting by adding:
>
> # Start James:
> if [ -x /etc/rc.d/rc.james ]; then
>
> /etc/rc.d/rc.james start
> fi
>
> in the rc.M script file
>
> Allright!  Sorry for this question...
>
> Rgs
>
> JLG
>
>
>
> On Thu, Oct 7, 2010 at 1:18 PM, Jean Luc Guislain <jl...@gmail.com>wrote:
>
>> Hi Eric!
>>
>> Thank you for the link.
>> I moved bin/james to /etc/rc.d/rc.james (start/stop/restart/etc...)
>> It doesn't start because of the wrapper.
>> Where is the installation procedure?
>> (Slackware 13.1)
>> Rgs
>> JL
>>
>> On Thu, Oct 7, 2010 at 10:24 AM, Eric Charles <er...@apache.org> wrote:
>>
>>> You can get it from
>>>
>>> http://repository.apache.org/content/groups/snapshots/org/apache/james/james-server-spring-deployment/3.0-SNAPSHOT/
>>> (download james-server-spring-deployment-3.0-...-bin.zip)
>>>
>>> config files are in conf dir.
>>>
>>> Tks,
>>> Eric
>>>
>>>
>>>
>>> On 7/10/2010 15:42, Jean Luc Guislain wrote:
>>>
>>>> Allright, I will try James 3. How can I download it?
>>>>
>>>> On Wed, Oct 6, 2010 at 11:16 AM, Eric Charles<er...@apache.org>  wrote:
>>>>
>>>>
>>>>  I already used SpamAssassin mailet on 2.3. built from trunk. It may be
>>>>> that
>>>>> the distribution doesn't contain that mailet.
>>>>>
>>>>> If you're starting a project with james, maybe you could try to use the
>>>>> 3.0
>>>>> version (not yet released).
>>>>> Other are using it also
>>>>> http://www.mail-archive.com/server-user@james.apache.org/msg11305.htmland
>>>>> you may have better support (and coming doc) on 3.0
>>>>>
>>>>> Tks,
>>>>> Eric
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 6/10/2010 17:03, Jean Luc Guislain wrote:
>>>>>
>>>>>  I use james 2.3.2...
>>>>>>
>>>>>> On Wed, Oct 6, 2010 at 10:27 AM, Norman Maurer<no...@apache.org>
>>>>>> wrote:
>>>>>>
>>>>>>  What version of james are you using ? I think SpamAssassin support is
>>>>>>
>>>>>>> only in 3.x.
>>>>>>>
>>>>>>> Bye,
>>>>>>> Norman
>>>>>>>
>>>>>>>
>>>>>>> 2010/10/6 Jean Luc Guislain<jl...@gmail.com>:
>>>>>>>
>>>>>>>  Hi Eric!
>>>>>>>>
>>>>>>>> Thank you for your email.
>>>>>>>> When I put this mailet:
>>>>>>>> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
>>>>>>>>  <spamdHost>localhost</spamdHost>
>>>>>>>>  <spamdPort>783</spamdPort>
>>>>>>>> </mailet>
>>>>>>>> in the config.xml file, then james refuses to start.
>>>>>>>> What can be wrong?
>>>>>>>>
>>>>>>>> JL
>>>>>>>>
>>>>>>>> On Wed, Oct 6, 2010 at 6:35 AM, Eric Charles<er...@apache.org>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>  Hi Jean Luc,
>>>>>>>>
>>>>>>>>> You need to invoke the SpamAssassin mailet in the spool-manager.xml
>>>>>>>>> (in
>>>>>>>>> root processor for example)
>>>>>>>>>
>>>>>>>>> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
>>>>>>>>>  <spamdHost>localhost</spamdHost>
>>>>>>>>>  <spamdPort>783</spamdPort>
>>>>>>>>> </mailet>
>>>>>>>>>
>>>>>>>>> After, you need to tell james to redirect the the mail to a spam
>>>>>>>>> respository (you can also define class="Null" to simply not store
>>>>>>>>> the
>>>>>>>>>
>>>>>>>>>  mail)
>>>>>>>> <mailet match="HasMailAttributeWithValue=X-SpamAssassin, YES"
>>>>>>>>
>>>>>>>>> class="ToRepository">
>>>>>>>>> <repositoryPath>file://var/mail/spamassassin/</repositoryPath>
>>>>>>>>> </mailet>
>>>>>>>>>
>>>>>>>>> I think the mail attribute mail depends on the james version.
>>>>>>>>> So if this does not work for you (if spam still arrives in you
>>>>>>>>> inbox),
>>>>>>>>>
>>>>>>>>>  look
>>>>>>>> at the mail headers in the source of the mail to see the header
>>>>>>>> value
>>>>>>>> set by
>>>>>>>> James, and adapt the mailet match according to it.
>>>>>>>>
>>>>>>>>> Tks,
>>>>>>>>>
>>>>>>>>> Eric
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 5/10/2010 19:54, Jean Luc Guislain wrote:
>>>>>>>>>
>>>>>>>>>  Hi Eric!
>>>>>>>>>
>>>>>>>>>> Now that my James server is working fine on ifm.ath.cx with TLS
>>>>>>>>>> and
>>>>>>>>>> polling
>>>>>>>>>> my 2 external mails (gmail.com and operamail.com accounts), I am
>>>>>>>>>> ready
>>>>>>>>>> for
>>>>>>>>>> the next step: getting rid of the spam (operamail sends me a lot
>>>>>>>>>> of
>>>>>>>>>>
>>>>>>>>>>  it!)
>>>>>>>>>
>>>>>>>> The question is:
>>>>>>>>
>>>>>>>>> How can I use Spamassassin with James?
>>>>>>>>>>
>>>>>>>>>> A daemonized Spamassassin and Vipul's Razor are installed on my
>>>>>>>>>>
>>>>>>>>>>  computer:
>>>>>>>>>
>>>>>>>> bash-4.1# ps aux | grep spamd
>>>>>>>>
>>>>>>>>> root 3771 0.0 1.8 41384 37412 ? Ss Oct03 0:21 /usr/bin/spamd -d
>>>>>>>>>> --pidfile=/var/run/spamd.pid
>>>>>>>>>> root 3772 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>>>>>>>>>> root 3773 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>>>>>>>>>> root 19462 0.0 0.0 1956 552 pts/2 S+ 13:37 0:00 grep spamd
>>>>>>>>>> bash-4.1#
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>>
>>>>>>>>>> JL
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Aug 25, 2010 at 2:28 PM, Jean Luc Guislain<
>>>>>>>>>>
>>>>>>>>>>  jl.guislain@gmail.com
>>>>>>>>>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>>  I would like to know if somebody has a working
>>>>>>>>>>
>>>>>>>>>>  james-fetchmail.xml
>>>>>>>>>>>
>>>>>>>>>>> file to poll a pop gmail account.
>>>>>>>>>>>
>>>>>>>>>>> Rgs,
>>>>>>>>>>> JL
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  ---------------------------------------------------------------------
>>>>>>>>>
>>>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>
>>>>>
>>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>>
>>
>

Re: How to poll a pop gmail account with james' fetchmail

Posted by Jean Luc Guislain <jl...@gmail.com>.
I found the most simple solution (which is distro independent).
Whatever the distro just make a link in the rc.d files (or whatever) to
/opt/james-3.0/bin/james!
With Slackware 13.1:

bash-4.1# ln -s /opt/james-3.0/bin/james /etc/rc.d/rc.james

Then start it when booting by adding:

# Start James:
if [ -x /etc/rc.d/rc.james ]; then
/etc/rc.d/rc.james start
fi

in the rc.M script file

Allright!  Sorry for this question...

Rgs

JLG



On Thu, Oct 7, 2010 at 1:18 PM, Jean Luc Guislain <jl...@gmail.com>wrote:

> Hi Eric!
>
> Thank you for the link.
> I moved bin/james to /etc/rc.d/rc.james (start/stop/restart/etc...)
> It doesn't start because of the wrapper.
> Where is the installation procedure?
> (Slackware 13.1)
> Rgs
> JL
>
> On Thu, Oct 7, 2010 at 10:24 AM, Eric Charles <er...@apache.org> wrote:
>
>> You can get it from
>>
>> http://repository.apache.org/content/groups/snapshots/org/apache/james/james-server-spring-deployment/3.0-SNAPSHOT/
>> (download james-server-spring-deployment-3.0-...-bin.zip)
>>
>> config files are in conf dir.
>>
>> Tks,
>> Eric
>>
>>
>>
>> On 7/10/2010 15:42, Jean Luc Guislain wrote:
>>
>>> Allright, I will try James 3. How can I download it?
>>>
>>> On Wed, Oct 6, 2010 at 11:16 AM, Eric Charles<er...@apache.org>  wrote:
>>>
>>>
>>>  I already used SpamAssassin mailet on 2.3. built from trunk. It may be
>>>> that
>>>> the distribution doesn't contain that mailet.
>>>>
>>>> If you're starting a project with james, maybe you could try to use the
>>>> 3.0
>>>> version (not yet released).
>>>> Other are using it also
>>>> http://www.mail-archive.com/server-user@james.apache.org/msg11305.htmland
>>>> you may have better support (and coming doc) on 3.0
>>>>
>>>> Tks,
>>>> Eric
>>>>
>>>>
>>>>
>>>>
>>>> On 6/10/2010 17:03, Jean Luc Guislain wrote:
>>>>
>>>>  I use james 2.3.2...
>>>>>
>>>>> On Wed, Oct 6, 2010 at 10:27 AM, Norman Maurer<no...@apache.org>
>>>>> wrote:
>>>>>
>>>>>  What version of james are you using ? I think SpamAssassin support is
>>>>>
>>>>>> only in 3.x.
>>>>>>
>>>>>> Bye,
>>>>>> Norman
>>>>>>
>>>>>>
>>>>>> 2010/10/6 Jean Luc Guislain<jl...@gmail.com>:
>>>>>>
>>>>>>  Hi Eric!
>>>>>>>
>>>>>>> Thank you for your email.
>>>>>>> When I put this mailet:
>>>>>>> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
>>>>>>>  <spamdHost>localhost</spamdHost>
>>>>>>>  <spamdPort>783</spamdPort>
>>>>>>> </mailet>
>>>>>>> in the config.xml file, then james refuses to start.
>>>>>>> What can be wrong?
>>>>>>>
>>>>>>> JL
>>>>>>>
>>>>>>> On Wed, Oct 6, 2010 at 6:35 AM, Eric Charles<er...@apache.org>
>>>>>>> wrote:
>>>>>>>
>>>>>>>  Hi Jean Luc,
>>>>>>>
>>>>>>>> You need to invoke the SpamAssassin mailet in the spool-manager.xml
>>>>>>>> (in
>>>>>>>> root processor for example)
>>>>>>>>
>>>>>>>> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
>>>>>>>>  <spamdHost>localhost</spamdHost>
>>>>>>>>  <spamdPort>783</spamdPort>
>>>>>>>> </mailet>
>>>>>>>>
>>>>>>>> After, you need to tell james to redirect the the mail to a spam
>>>>>>>> respository (you can also define class="Null" to simply not store
>>>>>>>> the
>>>>>>>>
>>>>>>>>  mail)
>>>>>>> <mailet match="HasMailAttributeWithValue=X-SpamAssassin, YES"
>>>>>>>
>>>>>>>> class="ToRepository">
>>>>>>>> <repositoryPath>file://var/mail/spamassassin/</repositoryPath>
>>>>>>>> </mailet>
>>>>>>>>
>>>>>>>> I think the mail attribute mail depends on the james version.
>>>>>>>> So if this does not work for you (if spam still arrives in you
>>>>>>>> inbox),
>>>>>>>>
>>>>>>>>  look
>>>>>>> at the mail headers in the source of the mail to see the header value
>>>>>>> set by
>>>>>>> James, and adapt the mailet match according to it.
>>>>>>>
>>>>>>>> Tks,
>>>>>>>>
>>>>>>>> Eric
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 5/10/2010 19:54, Jean Luc Guislain wrote:
>>>>>>>>
>>>>>>>>  Hi Eric!
>>>>>>>>
>>>>>>>>> Now that my James server is working fine on ifm.ath.cx with TLS
>>>>>>>>> and
>>>>>>>>> polling
>>>>>>>>> my 2 external mails (gmail.com and operamail.com accounts), I am
>>>>>>>>> ready
>>>>>>>>> for
>>>>>>>>> the next step: getting rid of the spam (operamail sends me a lot of
>>>>>>>>>
>>>>>>>>>  it!)
>>>>>>>>
>>>>>>> The question is:
>>>>>>>
>>>>>>>> How can I use Spamassassin with James?
>>>>>>>>>
>>>>>>>>> A daemonized Spamassassin and Vipul's Razor are installed on my
>>>>>>>>>
>>>>>>>>>  computer:
>>>>>>>>
>>>>>>> bash-4.1# ps aux | grep spamd
>>>>>>>
>>>>>>>> root 3771 0.0 1.8 41384 37412 ? Ss Oct03 0:21 /usr/bin/spamd -d
>>>>>>>>> --pidfile=/var/run/spamd.pid
>>>>>>>>> root 3772 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>>>>>>>>> root 3773 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>>>>>>>>> root 19462 0.0 0.0 1956 552 pts/2 S+ 13:37 0:00 grep spamd
>>>>>>>>> bash-4.1#
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>>
>>>>>>>>> JL
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Aug 25, 2010 at 2:28 PM, Jean Luc Guislain<
>>>>>>>>>
>>>>>>>>>  jl.guislain@gmail.com
>>>>>>>>
>>>>>>> wrote:
>>>>>>>
>>>>>>>>  I would like to know if somebody has a working
>>>>>>>>>
>>>>>>>>>  james-fetchmail.xml
>>>>>>>>>>
>>>>>>>>>> file to poll a pop gmail account.
>>>>>>>>>>
>>>>>>>>>> Rgs,
>>>>>>>>>> JL
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>  ---------------------------------------------------------------------
>>>>>>>>
>>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>  ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>
>>>>
>>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>

Re: How to poll a pop gmail account with james' fetchmail

Posted by Jean Luc Guislain <jl...@gmail.com>.
Hi Eric!

Thank you for the link.
I moved bin/james to /etc/rc.d/rc.james (start/stop/restart/etc...)
It doesn't start because of the wrapper.
Where is the installation procedure?
(Slackware 13.1)
Rgs
JL

On Thu, Oct 7, 2010 at 10:24 AM, Eric Charles <er...@apache.org> wrote:

> You can get it from
>
> http://repository.apache.org/content/groups/snapshots/org/apache/james/james-server-spring-deployment/3.0-SNAPSHOT/
> (download james-server-spring-deployment-3.0-...-bin.zip)
>
> config files are in conf dir.
>
> Tks,
> Eric
>
>
>
> On 7/10/2010 15:42, Jean Luc Guislain wrote:
>
>> Allright, I will try James 3. How can I download it?
>>
>> On Wed, Oct 6, 2010 at 11:16 AM, Eric Charles<er...@apache.org>  wrote:
>>
>>
>>  I already used SpamAssassin mailet on 2.3. built from trunk. It may be
>>> that
>>> the distribution doesn't contain that mailet.
>>>
>>> If you're starting a project with james, maybe you could try to use the
>>> 3.0
>>> version (not yet released).
>>> Other are using it also
>>> http://www.mail-archive.com/server-user@james.apache.org/msg11305.htmland
>>> you may have better support (and coming doc) on 3.0
>>>
>>> Tks,
>>> Eric
>>>
>>>
>>>
>>>
>>> On 6/10/2010 17:03, Jean Luc Guislain wrote:
>>>
>>>  I use james 2.3.2...
>>>>
>>>> On Wed, Oct 6, 2010 at 10:27 AM, Norman Maurer<no...@apache.org>
>>>> wrote:
>>>>
>>>>  What version of james are you using ? I think SpamAssassin support is
>>>>
>>>>> only in 3.x.
>>>>>
>>>>> Bye,
>>>>> Norman
>>>>>
>>>>>
>>>>> 2010/10/6 Jean Luc Guislain<jl...@gmail.com>:
>>>>>
>>>>>  Hi Eric!
>>>>>>
>>>>>> Thank you for your email.
>>>>>> When I put this mailet:
>>>>>> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
>>>>>>  <spamdHost>localhost</spamdHost>
>>>>>>  <spamdPort>783</spamdPort>
>>>>>> </mailet>
>>>>>> in the config.xml file, then james refuses to start.
>>>>>> What can be wrong?
>>>>>>
>>>>>> JL
>>>>>>
>>>>>> On Wed, Oct 6, 2010 at 6:35 AM, Eric Charles<er...@apache.org>
>>>>>> wrote:
>>>>>>
>>>>>>  Hi Jean Luc,
>>>>>>
>>>>>>> You need to invoke the SpamAssassin mailet in the spool-manager.xml
>>>>>>> (in
>>>>>>> root processor for example)
>>>>>>>
>>>>>>> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
>>>>>>>  <spamdHost>localhost</spamdHost>
>>>>>>>  <spamdPort>783</spamdPort>
>>>>>>> </mailet>
>>>>>>>
>>>>>>> After, you need to tell james to redirect the the mail to a spam
>>>>>>> respository (you can also define class="Null" to simply not store the
>>>>>>>
>>>>>>>  mail)
>>>>>> <mailet match="HasMailAttributeWithValue=X-SpamAssassin, YES"
>>>>>>
>>>>>>> class="ToRepository">
>>>>>>> <repositoryPath>file://var/mail/spamassassin/</repositoryPath>
>>>>>>> </mailet>
>>>>>>>
>>>>>>> I think the mail attribute mail depends on the james version.
>>>>>>> So if this does not work for you (if spam still arrives in you
>>>>>>> inbox),
>>>>>>>
>>>>>>>  look
>>>>>> at the mail headers in the source of the mail to see the header value
>>>>>> set by
>>>>>> James, and adapt the mailet match according to it.
>>>>>>
>>>>>>> Tks,
>>>>>>>
>>>>>>> Eric
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 5/10/2010 19:54, Jean Luc Guislain wrote:
>>>>>>>
>>>>>>>  Hi Eric!
>>>>>>>
>>>>>>>> Now that my James server is working fine on ifm.ath.cx with TLS and
>>>>>>>> polling
>>>>>>>> my 2 external mails (gmail.com and operamail.com accounts), I am
>>>>>>>> ready
>>>>>>>> for
>>>>>>>> the next step: getting rid of the spam (operamail sends me a lot of
>>>>>>>>
>>>>>>>>  it!)
>>>>>>>
>>>>>> The question is:
>>>>>>
>>>>>>> How can I use Spamassassin with James?
>>>>>>>>
>>>>>>>> A daemonized Spamassassin and Vipul's Razor are installed on my
>>>>>>>>
>>>>>>>>  computer:
>>>>>>>
>>>>>> bash-4.1# ps aux | grep spamd
>>>>>>
>>>>>>> root 3771 0.0 1.8 41384 37412 ? Ss Oct03 0:21 /usr/bin/spamd -d
>>>>>>>> --pidfile=/var/run/spamd.pid
>>>>>>>> root 3772 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>>>>>>>> root 3773 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>>>>>>>> root 19462 0.0 0.0 1956 552 pts/2 S+ 13:37 0:00 grep spamd
>>>>>>>> bash-4.1#
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>>
>>>>>>>> JL
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Aug 25, 2010 at 2:28 PM, Jean Luc Guislain<
>>>>>>>>
>>>>>>>>  jl.guislain@gmail.com
>>>>>>>
>>>>>> wrote:
>>>>>>
>>>>>>>  I would like to know if somebody has a working
>>>>>>>>
>>>>>>>>  james-fetchmail.xml
>>>>>>>>>
>>>>>>>>> file to poll a pop gmail account.
>>>>>>>>>
>>>>>>>>> Rgs,
>>>>>>>>> JL
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>
>>>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  ---------------------------------------------------------------------
>>>>>>>
>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>
>>>>>
>>>>>
>>>>>  ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

Re: How to poll a pop gmail account with james' fetchmail

Posted by Eric Charles <er...@apache.org>.
You can get it from
http://repository.apache.org/content/groups/snapshots/org/apache/james/james-server-spring-deployment/3.0-SNAPSHOT/
(download james-server-spring-deployment-3.0-...-bin.zip)

config files are in conf dir.

Tks,
Eric


On 7/10/2010 15:42, Jean Luc Guislain wrote:
> Allright, I will try James 3. How can I download it?
>
> On Wed, Oct 6, 2010 at 11:16 AM, Eric Charles<er...@apache.org>  wrote:
>
>> I already used SpamAssassin mailet on 2.3. built from trunk. It may be that
>> the distribution doesn't contain that mailet.
>>
>> If you're starting a project with james, maybe you could try to use the 3.0
>> version (not yet released).
>> Other are using it also
>> http://www.mail-archive.com/server-user@james.apache.org/msg11305.html and
>> you may have better support (and coming doc) on 3.0
>>
>> Tks,
>> Eric
>>
>>
>>
>>
>> On 6/10/2010 17:03, Jean Luc Guislain wrote:
>>
>>> I use james 2.3.2...
>>>
>>> On Wed, Oct 6, 2010 at 10:27 AM, Norman Maurer<no...@apache.org>   wrote:
>>>
>>>   What version of james are you using ? I think SpamAssassin support is
>>>> only in 3.x.
>>>>
>>>> Bye,
>>>> Norman
>>>>
>>>>
>>>> 2010/10/6 Jean Luc Guislain<jl...@gmail.com>:
>>>>
>>>>> Hi Eric!
>>>>>
>>>>> Thank you for your email.
>>>>> When I put this mailet:
>>>>> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
>>>>>   <spamdHost>localhost</spamdHost>
>>>>>   <spamdPort>783</spamdPort>
>>>>> </mailet>
>>>>> in the config.xml file, then james refuses to start.
>>>>> What can be wrong?
>>>>>
>>>>> JL
>>>>>
>>>>> On Wed, Oct 6, 2010 at 6:35 AM, Eric Charles<er...@apache.org>   wrote:
>>>>>
>>>>>   Hi Jean Luc,
>>>>>> You need to invoke the SpamAssassin mailet in the spool-manager.xml (in
>>>>>> root processor for example)
>>>>>>
>>>>>> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
>>>>>>   <spamdHost>localhost</spamdHost>
>>>>>>   <spamdPort>783</spamdPort>
>>>>>> </mailet>
>>>>>>
>>>>>> After, you need to tell james to redirect the the mail to a spam
>>>>>> respository (you can also define class="Null" to simply not store the
>>>>>>
>>>>> mail)
>>>>> <mailet match="HasMailAttributeWithValue=X-SpamAssassin, YES"
>>>>>> class="ToRepository">
>>>>>> <repositoryPath>file://var/mail/spamassassin/</repositoryPath>
>>>>>> </mailet>
>>>>>>
>>>>>> I think the mail attribute mail depends on the james version.
>>>>>> So if this does not work for you (if spam still arrives in you inbox),
>>>>>>
>>>>> look
>>>>> at the mail headers in the source of the mail to see the header value
>>>>> set by
>>>>> James, and adapt the mailet match according to it.
>>>>>> Tks,
>>>>>>
>>>>>> Eric
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 5/10/2010 19:54, Jean Luc Guislain wrote:
>>>>>>
>>>>>>   Hi Eric!
>>>>>>> Now that my James server is working fine on ifm.ath.cx with TLS and
>>>>>>> polling
>>>>>>> my 2 external mails (gmail.com and operamail.com accounts), I am
>>>>>>> ready
>>>>>>> for
>>>>>>> the next step: getting rid of the spam (operamail sends me a lot of
>>>>>>>
>>>>>> it!)
>>>>> The question is:
>>>>>>> How can I use Spamassassin with James?
>>>>>>>
>>>>>>> A daemonized Spamassassin and Vipul's Razor are installed on my
>>>>>>>
>>>>>> computer:
>>>>> bash-4.1# ps aux | grep spamd
>>>>>>> root 3771 0.0 1.8 41384 37412 ? Ss Oct03 0:21 /usr/bin/spamd -d
>>>>>>> --pidfile=/var/run/spamd.pid
>>>>>>> root 3772 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>>>>>>> root 3773 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>>>>>>> root 19462 0.0 0.0 1956 552 pts/2 S+ 13:37 0:00 grep spamd
>>>>>>> bash-4.1#
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> JL
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Aug 25, 2010 at 2:28 PM, Jean Luc Guislain<
>>>>>>>
>>>>>> jl.guislain@gmail.com
>>>>> wrote:
>>>>>>>   I would like to know if somebody has a working
>>>>>>>
>>>>>>>> james-fetchmail.xml
>>>>>>>>
>>>>>>>> file to poll a pop gmail account.
>>>>>>>>
>>>>>>>> Rgs,
>>>>>>>> JL
>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>>
>>>>>>
>>>>>>   ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>
>>>>
>>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>


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


Re: How to poll a pop gmail account with james' fetchmail

Posted by Eric Charles <er...@apache.org>.
I already used SpamAssassin mailet on 2.3. built from trunk. It may be 
that the distribution doesn't contain that mailet.

If you're starting a project with james, maybe you could try to use the 
3.0 version (not yet released).
Other are using it also 
http://www.mail-archive.com/server-user@james.apache.org/msg11305.html 
and you may have better support (and coming doc) on 3.0

Tks,
Eric



On 6/10/2010 17:03, Jean Luc Guislain wrote:
> I use james 2.3.2...
>
> On Wed, Oct 6, 2010 at 10:27 AM, Norman Maurer<no...@apache.org>  wrote:
>
>> What version of james are you using ? I think SpamAssassin support is
>> only in 3.x.
>>
>> Bye,
>> Norman
>>
>>
>> 2010/10/6 Jean Luc Guislain<jl...@gmail.com>:
>>> Hi Eric!
>>>
>>> Thank you for your email.
>>> When I put this mailet:
>>> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
>>>   <spamdHost>localhost</spamdHost>
>>>   <spamdPort>783</spamdPort>
>>> </mailet>
>>> in the config.xml file, then james refuses to start.
>>> What can be wrong?
>>>
>>> JL
>>>
>>> On Wed, Oct 6, 2010 at 6:35 AM, Eric Charles<er...@apache.org>  wrote:
>>>
>>>> Hi Jean Luc,
>>>>
>>>> You need to invoke the SpamAssassin mailet in the spool-manager.xml (in
>>>> root processor for example)
>>>>
>>>> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
>>>>   <spamdHost>localhost</spamdHost>
>>>>   <spamdPort>783</spamdPort>
>>>> </mailet>
>>>>
>>>> After, you need to tell james to redirect the the mail to a spam
>>>> respository (you can also define class="Null" to simply not store the
>> mail)
>>>> <mailet match="HasMailAttributeWithValue=X-SpamAssassin, YES"
>>>> class="ToRepository">
>>>> <repositoryPath>file://var/mail/spamassassin/</repositoryPath>
>>>> </mailet>
>>>>
>>>> I think the mail attribute mail depends on the james version.
>>>> So if this does not work for you (if spam still arrives in you inbox),
>> look
>>>> at the mail headers in the source of the mail to see the header value
>> set by
>>>> James, and adapt the mailet match according to it.
>>>>
>>>> Tks,
>>>>
>>>> Eric
>>>>
>>>>
>>>>
>>>>
>>>> On 5/10/2010 19:54, Jean Luc Guislain wrote:
>>>>
>>>>> Hi Eric!
>>>>>
>>>>> Now that my James server is working fine on ifm.ath.cx with TLS and
>>>>> polling
>>>>> my 2 external mails (gmail.com and operamail.com accounts), I am ready
>>>>> for
>>>>> the next step: getting rid of the spam (operamail sends me a lot of
>> it!)
>>>>> The question is:
>>>>>
>>>>> How can I use Spamassassin with James?
>>>>>
>>>>> A daemonized Spamassassin and Vipul's Razor are installed on my
>> computer:
>>>>> bash-4.1# ps aux | grep spamd
>>>>> root 3771 0.0 1.8 41384 37412 ? Ss Oct03 0:21 /usr/bin/spamd -d
>>>>> --pidfile=/var/run/spamd.pid
>>>>> root 3772 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>>>>> root 3773 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>>>>> root 19462 0.0 0.0 1956 552 pts/2 S+ 13:37 0:00 grep spamd
>>>>> bash-4.1#
>>>>>
>>>>> Regards,
>>>>>
>>>>> JL
>>>>>
>>>>>
>>>>> On Wed, Aug 25, 2010 at 2:28 PM, Jean Luc Guislain<
>> jl.guislain@gmail.com
>>>>>> wrote:
>>>>>   I would like to know if somebody has a working
>>>>>> james-fetchmail.xml
>>>>>>
>>>>>> file to poll a pop gmail account.
>>>>>>
>>>>>> Rgs,
>>>>>> JL
>>>>>>
>>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>
>>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>


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


Re: How to poll a pop gmail account with james' fetchmail

Posted by Norman Maurer <no...@apache.org>.
What version of james are you using ? I think SpamAssassin support is
only in 3.x.

Bye,
Norman


2010/10/6 Jean Luc Guislain <jl...@gmail.com>:
> Hi Eric!
>
> Thank you for your email.
> When I put this mailet:
> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
>  <spamdHost>localhost</spamdHost>
>  <spamdPort>783</spamdPort>
> </mailet>
> in the config.xml file, then james refuses to start.
> What can be wrong?
>
> JL
>
> On Wed, Oct 6, 2010 at 6:35 AM, Eric Charles <er...@apache.org> wrote:
>
>> Hi Jean Luc,
>>
>> You need to invoke the SpamAssassin mailet in the spool-manager.xml (in
>> root processor for example)
>>
>> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
>>  <spamdHost>localhost</spamdHost>
>>  <spamdPort>783</spamdPort>
>> </mailet>
>>
>> After, you need to tell james to redirect the the mail to a spam
>> respository (you can also define class="Null" to simply not store the mail)
>>
>> <mailet match="HasMailAttributeWithValue=X-SpamAssassin, YES"
>> class="ToRepository">
>> <repositoryPath>file://var/mail/spamassassin/</repositoryPath>
>> </mailet>
>>
>> I think the mail attribute mail depends on the james version.
>> So if this does not work for you (if spam still arrives in you inbox), look
>> at the mail headers in the source of the mail to see the header value set by
>> James, and adapt the mailet match according to it.
>>
>> Tks,
>>
>> Eric
>>
>>
>>
>>
>> On 5/10/2010 19:54, Jean Luc Guislain wrote:
>>
>>> Hi Eric!
>>>
>>> Now that my James server is working fine on ifm.ath.cx with TLS and
>>> polling
>>> my 2 external mails (gmail.com and operamail.com accounts), I am ready
>>> for
>>> the next step: getting rid of the spam (operamail sends me a lot of it!)
>>>
>>> The question is:
>>>
>>> How can I use Spamassassin with James?
>>>
>>> A daemonized Spamassassin and Vipul's Razor are installed on my computer:
>>>
>>> bash-4.1# ps aux | grep spamd
>>> root 3771 0.0 1.8 41384 37412 ? Ss Oct03 0:21 /usr/bin/spamd -d
>>> --pidfile=/var/run/spamd.pid
>>> root 3772 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>>> root 3773 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>>> root 19462 0.0 0.0 1956 552 pts/2 S+ 13:37 0:00 grep spamd
>>> bash-4.1#
>>>
>>> Regards,
>>>
>>> JL
>>>
>>>
>>> On Wed, Aug 25, 2010 at 2:28 PM, Jean Luc Guislain<jl.guislain@gmail.com
>>> >wrote:
>>>
>>>  I would like to know if somebody has a working
>>>>
>>>> james-fetchmail.xml
>>>>
>>>> file to poll a pop gmail account.
>>>>
>>>> Rgs,
>>>> JL
>>>>
>>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>

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


Re: How to poll a pop gmail account with james' fetchmail

Posted by Jean Luc Guislain <jl...@gmail.com>.
Hi Eric!

Thank you for your email.
When I put this mailet:
<mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
 <spamdHost>localhost</spamdHost>
 <spamdPort>783</spamdPort>
</mailet>
in the config.xml file, then james refuses to start.
What can be wrong?

JL

On Wed, Oct 6, 2010 at 6:35 AM, Eric Charles <er...@apache.org> wrote:

> Hi Jean Luc,
>
> You need to invoke the SpamAssassin mailet in the spool-manager.xml (in
> root processor for example)
>
> <mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
>  <spamdHost>localhost</spamdHost>
>  <spamdPort>783</spamdPort>
> </mailet>
>
> After, you need to tell james to redirect the the mail to a spam
> respository (you can also define class="Null" to simply not store the mail)
>
> <mailet match="HasMailAttributeWithValue=X-SpamAssassin, YES"
> class="ToRepository">
> <repositoryPath>file://var/mail/spamassassin/</repositoryPath>
> </mailet>
>
> I think the mail attribute mail depends on the james version.
> So if this does not work for you (if spam still arrives in you inbox), look
> at the mail headers in the source of the mail to see the header value set by
> James, and adapt the mailet match according to it.
>
> Tks,
>
> Eric
>
>
>
>
> On 5/10/2010 19:54, Jean Luc Guislain wrote:
>
>> Hi Eric!
>>
>> Now that my James server is working fine on ifm.ath.cx with TLS and
>> polling
>> my 2 external mails (gmail.com and operamail.com accounts), I am ready
>> for
>> the next step: getting rid of the spam (operamail sends me a lot of it!)
>>
>> The question is:
>>
>> How can I use Spamassassin with James?
>>
>> A daemonized Spamassassin and Vipul's Razor are installed on my computer:
>>
>> bash-4.1# ps aux | grep spamd
>> root 3771 0.0 1.8 41384 37412 ? Ss Oct03 0:21 /usr/bin/spamd -d
>> --pidfile=/var/run/spamd.pid
>> root 3772 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>> root 3773 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
>> root 19462 0.0 0.0 1956 552 pts/2 S+ 13:37 0:00 grep spamd
>> bash-4.1#
>>
>> Regards,
>>
>> JL
>>
>>
>> On Wed, Aug 25, 2010 at 2:28 PM, Jean Luc Guislain<jl.guislain@gmail.com
>> >wrote:
>>
>>  I would like to know if somebody has a working
>>>
>>> james-fetchmail.xml
>>>
>>> file to poll a pop gmail account.
>>>
>>> Rgs,
>>> JL
>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

Re: How to poll a pop gmail account with james' fetchmail

Posted by Eric Charles <er...@apache.org>.
Hi Jean Luc,

You need to invoke the SpamAssassin mailet in the spool-manager.xml (in 
root processor for example)

<mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
   <spamdHost>localhost</spamdHost>
  <spamdPort>783</spamdPort>
</mailet>

After, you need to tell james to redirect the the mail to a spam 
respository (you can also define class="Null" to simply not store the mail)

<mailet match="HasMailAttributeWithValue=X-SpamAssassin, YES" 
class="ToRepository">
<repositoryPath>file://var/mail/spamassassin/</repositoryPath>
</mailet>

I think the mail attribute mail depends on the james version.
So if this does not work for you (if spam still arrives in you inbox), 
look at the mail headers in the source of the mail to see the header 
value set by James, and adapt the mailet match according to it.

Tks,

Eric



On 5/10/2010 19:54, Jean Luc Guislain wrote:
> Hi Eric!
>
> Now that my James server is working fine on ifm.ath.cx with TLS and polling
> my 2 external mails (gmail.com and operamail.com accounts), I am ready for
> the next step: getting rid of the spam (operamail sends me a lot of it!)
>
> The question is:
>
> How can I use Spamassassin with James?
>
> A daemonized Spamassassin and Vipul's Razor are installed on my computer:
>
> bash-4.1# ps aux | grep spamd
> root 3771 0.0 1.8 41384 37412 ? Ss Oct03 0:21 /usr/bin/spamd -d
> --pidfile=/var/run/spamd.pid
> root 3772 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
> root 3773 0.0 1.7 41384 35384 ? S Oct03 0:00 spamd child
> root 19462 0.0 0.0 1956 552 pts/2 S+ 13:37 0:00 grep spamd
> bash-4.1#
>
> Regards,
>
> JL
>
>
> On Wed, Aug 25, 2010 at 2:28 PM, Jean Luc Guislain<jl...@gmail.com>wrote:
>
>> I would like to know if somebody has a working
>>
>> james-fetchmail.xml
>>
>> file to poll a pop gmail account.
>>
>> Rgs,
>> JL
>>


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