Re: attempting to install...

Marco Paganini <[email protected]>
Newsgroups gmane.mail.spam.active-spam-killer.general
Message-ID <[email protected]>
Hi Salvatore,

OK, here we go, step by step... I assume you're installing system-wide, using
sendmail...

> Install the files int he /ask/ folder.

As you're doing a system-wide installation, I'd recommend you to install
ask under /usr/local/ask-x.xx and create a symlink called "ask" pointing
to the correct directory. Something like:

/usr/local/ask-2.4.1
/usr/local/ask -> /usr/local/ask-2.4.1

This will make it very easy to upgrade ASK in the future. All you have
to do is change the symlink to the desired location.

> Add lines to the main procmail

It's a good idea to have an option for your users, like "Turn ASK on"
and "Turn ASK off". The "Turn ASK on" would:

- Unpack a "template" .ask directory under the user's home (if it does
  not yet exist).

- Copy a template .askrc file to the user's home directory. Note that
  your installation program must be smart enough to change the user's 
  email address and name to the correct ones.
  
- Create a .procmailrc file under the user's home dir with:

--- cut here ---
## ASK installation
:0 fW
|/usr/local/ask/ask.py --procmail --loglevel=5 --logfile=/someplace/ask-username.log
 
:0 e
/dev/null
--- cut here ---

- Substitute the "username" above with the real username and "someplace"
  with a suitable location for the logs where the users can write.

- You can generate the "template" .askrc and .ask directories by running
  asksetup.py for any user. Then, just pack the .ask directory and
  modify the .askrc file accordingly. Do not forget: The installation
  file WILL NEED TO MODIFY THIS FILE for each user! You cannot just copy
  the .askrc file across users.
  
> file   Add/edit a .forward for each user

This may not be necessary if you're using procmail.

>        AND   OR
>       Install the gui files on server   Add lines to individual procmail
> file

Don't forget to use Gnu Anubis or some other mail processor to add the
mailkey to all outgoing emails!

> Above please find a break down of how I understand the intall process to be.
> am I correct?

You're in the right way. :)

> It would be good to have to edit the procmail recipe once for the whole
> server.

You can always have symlinks (I do not know if procmail groks them). If you
offer multiple solutions, you may have different "master" procmailrc files:
One for ASK alone, one for ASK + Bogofilter, etc... Depending on the options
your users choose, they'll have their ~/.procmailrc files pointing to one of
your "masters".

Regards,
Paga

> 
> Regards,
> 
> Salvatore F. Iozzia
> accelerator/owner
> Chain Reaction Web  -  www.chainreactionweb.com
> Toll Free (866) 437-1585  -  Support [email protected]
> ----- Original Message -----
> From: "Marco Paganini" <[email protected]>
> To: "Ingo P. Korndoerfer" <[email protected]>
> Cc: "ask user list" <[email protected]>
> Sent: Wednesday, October 08, 2003 7:34 PM
> Subject: Re: [A-S-K-users] probably invalid reply ?
> 
> 
> > Hi Ingo,
> >
> > It's hard to tell without checking sendmail's log file, but it seems
> > those messages are bouncing. Have you tried DS[141.40.103.1] instead?
> >
> > Regards,
> > Paga
> >
> > On Thu, Oct 09, 2003 at 01:19:17AM +0200, Ingo P. Korndoerfer wrote:
> > >
> > > can anybody help me out with this one ?
> > >
> > > ask used to work, but after a few days i figured out, my mailq
> > > was getting fuller and fuller, because sendmail could
> > > apparently not use our mailserver to relay. probably none of the
> > > confirmations ever went out ... so i found there is
> > > postfix running on my machine, and de-installed it.
> > > then i added
> > > DS141.40.103.1
> > > to sendmail.cf hoping that would teach it to use this as
> > > smtp relay (it's the same machine i use with pine all the time).
> > > restarted sendmail, and voila. the mailq is empty.
> > > not sure where the 50 or so messages went. hopefully out ...
> > >
> > > anyways, now i get this ...
> > >
> > > it looks like ask does kick in, recognizes, it should process the queue,
> > > but then does not let the result through to me.
> > >
> > > what might be the problem ???
> > >
> > > 1000 thanks
> > >
> > > ingo
> > >
> > > 2003/10/09 01:08:17 [3229]: ----- ASK v2.4.1 Started -----
> > > 2003/10/09 01:08:17 [3229]: Message from:    Ingo P. Korndoerfer
> <[email protected]>
> > > 2003/10/09 01:08:17 [3229]: Message to:      ingo korndoerfer
> <[email protected]>
> > > 2003/10/09 01:08:17 [3229]: Message Subject: ask process queue
> > > 2003/10/09 01:08:17 [3229]:   is_confirmation_return(): Didn't find
> conf#MD5 tag on subject
> > > 2003/10/09 01:08:17 [3229]:   is_remote_command(): Verifying the
> subject...
> > > 2003/10/09 01:08:17 [3229]:   process_remote_commands(): Found
> subject="ask process queue"
> > > 2003/10/09 01:08:17 [3229]:   process_remote_commands(): Checking only.
> Returning true
> > > 2003/10/09 01:08:17 [3229]: Not matched in the whitelist
> > > 2003/10/09 01:08:17 [3229]: Sender is not mailer-daemon
> > > 2003/10/09 01:08:17 [3229]:   __get_auth_tokens(): No X-ASK-Auth SMTP
> header found
> > > 2003/10/09 01:08:17 [3229]:   validate_auth_md5(): Cannot read
> authorization tokens. Authentication Failed.
> > > 2003/10/09 01:08:17 [3229]:   validate_auth_md5(): MD5 tokens do not
> match (should be 90e3b54fc466e932536cc42905a4b0eb). Authentication failed
> > > 2003/10/09 01:08:17 [3229]: Checking for remote commands
> > > 2003/10/09 01:08:17 [3229]:   process_remote_commands(): Found
> subject="ask process queue"
> > > 2003/10/09 01:08:17 [3229]:   generate_auth(): Authentication =
> 1065654497-28a42c99f2b0094d838e253898f0c6cd
> > > 2003/10/09 01:08:17 [3235]: ----- ASK v2.4.1 Started -----
> > > 2003/10/09 01:08:17 [3235]: Message from:    Mail Delivery Subsystem
> <[email protected]>
> > > 2003/10/09 01:08:17 [3235]: Message to:
> <[email protected]>
> > > 2003/10/09 01:08:17 [3235]: Message Subject: Returned mail: see
> transcript for details
> > > 2003/10/09 01:08:17 [3235]:   is_confirmation_return(): Didn't find
> conf#MD5 tag on subject
> > > 2003/10/09 01:08:17 [3235]: Not matched in the whitelist
> > > 2003/10/09 01:08:17 [3235]:   __inlist():
> filename=/home/ingo/.ask/blacklist.txt,
> [email protected], dest=[('',
> '[email protected]')], subject=Returned mail: see transcript for
> details
> > > 2003/10/09 01:08:17 [3235]:   __inlist():
> filename=/home/ingo/.ask/blacklist-local.txt,
> [email protected], dest=[('',
> '[email protected]')], subject=Returned mail: see transcript for
> details
> > > 2003/10/09 01:08:17 [3235]:   __inlist():
> /home/ingo/.ask/blacklist-local.txt does not exist (or is unreadable).
> Ignoring...
> > > 2003/10/09 01:08:17 [3235]:   __inlist():
> filename=/home/ingo/.ask/ignorelist.txt,
> [email protected], dest=[('',
> '[email protected]')], subject=Returned mail: see transcript for
> details
> > > 2003/10/09 01:08:17 [3235]:   __inlist():
> filename=/home/ingo/.ask/ignorelist-local.txt,
> [email protected], dest=[('',
> '[email protected]')], subject=Returned mail: see transcript for
> details
> > > 2003/10/09 01:08:17 [3235]:   __inlist():
> /home/ingo/.ask/ignorelist-local.txt does not exist (or is unreadable).
> Ignoring...
> > > 2003/10/09 01:08:17 [3235]: Sender is mailer_daemon
> > > 2003/10/09 01:08:17 [3235]: Header X-AskVersion found. Probable invalid
> reply from a confirmation message. Ignoring.
> > >
> > > --
> > > Ingo P. Korndoerfer
> > > Dept. of Biological Chemistry
> > > Technische Universitaet Muenchen
> > > An der Saatzucht 5
> > > D-85350 Freising Weihenstephan
> > >
> > > phone  : +49 (8161) 71-3255 (desk)
> > >          +49 (8161) 71-5167 (computing)
> > > fax    : +49 (8161) 71-4352
> > > e-mail : [email protected] (work related)
> > >
> > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: SF.net Giveback Program.
> > > SourceForge.net hosts over 70,000 Open Source Projects.
> > > See the people who have HELPED US provide better services:
> > > Click here: http://sourceforge.net/supporters.php
> > > _______________________________________________
> > > A-S-K-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/a-s-k-users
> >
> > --
> > Marco Paganini          | UNIX / Linux / Networking
> > [email protected]   | PGP: http://www.paganini.net/pgp/
> > http://www.paganini.net | Magnus Frater te spectat...
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program.
> > SourceForge.net hosts over 70,000 Open Source Projects.
> > See the people who have HELPED US provide better services:
> > Click here: http://sourceforge.net/supporters.php
> > _______________________________________________
> > A-S-K-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/a-s-k-users
> >
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> A-S-K-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/a-s-k-users

-- 
Marco Paganini          | UNIX / Linux / Networking
[email protected]   | PGP: http://www.paganini.net/pgp/
http://www.paganini.net | Magnus Frater te spectat...


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.