You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Antony Stone <An...@spamassassin.open.source.it> on 2016/01/19 18:56:56 UTC

Re: Newbie - Stuck on installation

On Tuesday 19 January 2016 at 18:49:41, Sarang Shrivastava wrote:

> Hey,
> 
> I was trying to install SA on my system for which i needed postfix to be
> preinstalled on my system.
> 
> https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-s
> pamassassin-on-ubuntu-12-04
> 
> https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-p
> ostfix-on-ubuntu-12-04
> 
> https://www.digitalocean.com/community/tutorials/how-to-set-up-a-host-name-
> with-digitalocean So here is the thing , in order to install postfix and
> get it working i need to have a domain name and mail server, both of which
> i don't have.

If you have a network, then surely you have a domain name (even just a local 
one which you use internally, but isn't externally registered)?

What hostnames do your computers have?

Also, what do you mean by "you don't have a mail server"?  If you're setting 
up postfix, then that *is* your mail server...

> Is there a work around so as to i can link my gmail to my laptop and
> download mails from it and test them with the help of SA. or I could just
> run SA on my system and feed mails to it from a dataset that i have
> downloaded locally.

You can certainly run SpamAssassin on a client machine instead of being linked 
to an MTA (eg: postfix), but what are you actually trying to achieve?

Are you just investigating SA to see how well it can filter your email, and the 
ultimate objective (if you're happy with the results) would be to continue 
running it on that client machine, or are you trying to learn about SA in a 
small environment, with a view to setting it up on an mail server running 
postfix later?


Regards,


Antony.

-- 
It is also possible that putting the birds in a laboratory setting 
inadvertently renders them relatively incompetent.

 - Daniel C Dennett

                                                   Please reply to the list;
                                                         please *don't* CC me.

Re: Newbie - Stuck on installation

Posted by Reindl Harald <h....@thelounge.net>.

Am 19.01.2016 um 19:15 schrieb Sarang Shrivastava:
> Thanx for your reply,
>
> Actually the thing is I am a final year CSE student at NIT Allahabad,
> India.  I am trying to add a new statistical plugin in SA. Till date it
> only has a Bayesian classifier , I wanted to extend it a a bit further
> which would include some machine learning algorithms like neural nets,
> SVMs and other stuff.
>
> So our college does has a intranet and a registered domain name
> (@mnnit.ac.in <http://mnnit.ac.in>) but they would not allow me to have
> access to it for my work with SA.
> So what i want to do basically is run SA on a bunch of spams and hams (
> if possible to get them from my gmail server  or i would download the
> online dataset of SA itself ). This is what I require. So for this do I
> need to mess up with postfix and stuff or not?

no - you need just "spamassassin -D  < sample.eml"

just configure thunderbird to access your gmail account with IMAP and 
svae the mails as file, the default format of thunderbird in that case 
is .eml

maybe you need to play around with 'trusted_networks' in your SA so that 
it is able to recocinze the first external hop delivering to the gmail 
infrastructure (RBL, PTR tests and so on)



Re: Newbie - Stuck on installation

Posted by Sarang Shrivastava <sa...@gmail.com>.
Thanx a lot guys.

On Wed, Jan 20, 2016 at 12:02 AM, Antony Stone <
Antony.Stone@spamassassin.open.source.it> wrote:

> On Tuesday 19 January 2016 at 19:15:44, Sarang Shrivastava wrote:
>
> > Thanx for your reply,
> >
> > Actually the thing is I am a final year CSE student at NIT Allahabad,
> > India.  I am trying to add a new statistical plugin in SA. Till date it
> > only has a Bayesian classifier , I wanted to extend it a a bit further
> > which would include some machine learning algorithms like neural nets,
> SVMs
> > and other stuff.
> >
> > So our college does has a intranet and a registered domain name (@
> > mnnit.ac.in) but they would not allow me to have access to it for my
> work
> > with SA.
> > So what i want to do basically is run SA on a bunch of spams and hams (
> if
> > possible to get them from my gmail server  or i would download the online
> > dataset of SA itself ). This is what I require. So for this do I need to
> > mess up with postfix and stuff or not .?
>
> No, you do not "need to mess with postfix and stuff" :)
>
> You can run SpamAssassin on a single machine filtering only local email.
>
> Whether this is sufficient for the sorts of things you want to develop, I
> cannot
> say (however it does rather sound to me as though you would need to feed SA
> quite a wide variety of spam and ham in order to develop, and test, what
> you
> are interested in).
>
> On the other hand, setting up a machine with postfix, SpamAssassin, and
> something like fetchmail to get email into the system, when you can't have
> it
> delivered by SMTP, might not be a bad thing to do (and to learn about at
> the
> same time).  I guess it depends partly on how much time you have.
>
> Good luck, and I hope you come up with something useful to feed back to the
> Open Source community :)
>
>
> Antony.
>
> --
> If the human brain were so simple that we could understand it,
> we'd be so simple that we couldn't.
>
>                                                    Please reply to the
> list;
>                                                          please *don't* CC
> me.
>



-- 
*Sarang Shrivastava*
*Computer Science & Engineering*
*MNNIT Allahabad*

Re: Newbie - Stuck on installation

Posted by Antony Stone <An...@spamassassin.open.source.it>.
On Tuesday 19 January 2016 at 19:15:44, Sarang Shrivastava wrote:

> Thanx for your reply,
> 
> Actually the thing is I am a final year CSE student at NIT Allahabad,
> India.  I am trying to add a new statistical plugin in SA. Till date it
> only has a Bayesian classifier , I wanted to extend it a a bit further
> which would include some machine learning algorithms like neural nets, SVMs
> and other stuff.
> 
> So our college does has a intranet and a registered domain name (@
> mnnit.ac.in) but they would not allow me to have access to it for my work
> with SA.
> So what i want to do basically is run SA on a bunch of spams and hams ( if
> possible to get them from my gmail server  or i would download the online
> dataset of SA itself ). This is what I require. So for this do I need to
> mess up with postfix and stuff or not .?

No, you do not "need to mess with postfix and stuff" :)

You can run SpamAssassin on a single machine filtering only local email.

Whether this is sufficient for the sorts of things you want to develop, I cannot 
say (however it does rather sound to me as though you would need to feed SA 
quite a wide variety of spam and ham in order to develop, and test, what you 
are interested in).

On the other hand, setting up a machine with postfix, SpamAssassin, and 
something like fetchmail to get email into the system, when you can't have it 
delivered by SMTP, might not be a bad thing to do (and to learn about at the 
same time).  I guess it depends partly on how much time you have.

Good luck, and I hope you come up with something useful to feed back to the 
Open Source community :)


Antony.

-- 
If the human brain were so simple that we could understand it,
we'd be so simple that we couldn't.

                                                   Please reply to the list;
                                                         please *don't* CC me.

Re: Newbie - Stuck on installation

Posted by Sarang Shrivastava <sa...@gmail.com>.
Thanx for your reply,

Actually the thing is I am a final year CSE student at NIT Allahabad,
India.  I am trying to add a new statistical plugin in SA. Till date it
only has a Bayesian classifier , I wanted to extend it a a bit further
which would include some machine learning algorithms like neural nets, SVMs
and other stuff.

So our college does has a intranet and a registered domain name (@
mnnit.ac.in) but they would not allow me to have access to it for my work
with SA.
So what i want to do basically is run SA on a bunch of spams and hams ( if
possible to get them from my gmail server  or i would download the online
dataset of SA itself ). This is what I require. So for this do I need to
mess up with postfix and stuff or not .?

Regards,
Sarang


On Tue, Jan 19, 2016 at 11:26 PM, Antony Stone <
Antony.Stone@spamassassin.open.source.it> wrote:

> On Tuesday 19 January 2016 at 18:49:41, Sarang Shrivastava wrote:
>
> > Hey,
> >
> > I was trying to install SA on my system for which i needed postfix to be
> > preinstalled on my system.
> >
> >
> https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-s
> > pamassassin-on-ubuntu-12-04
> >
> >
> https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-p
> > ostfix-on-ubuntu-12-04
> >
> >
> https://www.digitalocean.com/community/tutorials/how-to-set-up-a-host-name-
> > with-digitalocean So here is the thing , in order to install postfix and
> > get it working i need to have a domain name and mail server, both of
> which
> > i don't have.
>
> If you have a network, then surely you have a domain name (even just a
> local
> one which you use internally, but isn't externally registered)?
>
> What hostnames do your computers have?
>
> Also, what do you mean by "you don't have a mail server"?  If you're
> setting
> up postfix, then that *is* your mail server...
>
> > Is there a work around so as to i can link my gmail to my laptop and
> > download mails from it and test them with the help of SA. or I could just
> > run SA on my system and feed mails to it from a dataset that i have
> > downloaded locally.
>
> You can certainly run SpamAssassin on a client machine instead of being
> linked
> to an MTA (eg: postfix), but what are you actually trying to achieve?
>
> Are you just investigating SA to see how well it can filter your email,
> and the
> ultimate objective (if you're happy with the results) would be to continue
> running it on that client machine, or are you trying to learn about SA in a
> small environment, with a view to setting it up on an mail server running
> postfix later?
>
>
> Regards,
>
>
> Antony.
>
> --
> It is also possible that putting the birds in a laboratory setting
> inadvertently renders them relatively incompetent.
>
>  - Daniel C Dennett
>
>                                                    Please reply to the
> list;
>                                                          please *don't* CC
> me.
>



-- 
*Sarang Shrivastava*
*Computer Science & Engineering*
*MNNIT Allahabad*