Re: Unable to connect to discovery.spamnet.com:2703
Boris Senker <[email protected]>
| Newsgroups | gmane.mail.spam.razor.user |
|---|---|
| Message-ID | <[email protected]> |
Gary V wrote: > Boris wrote: > > >> Hello, > > >>I am trying to setup Razor to be used with amavisd. > > >>Boris Senker > > > When installing Razor, by default it installs in the home directory of > the user that runs razor-admin. You want to run razor-admin as your > amavis user. > > >>[root@mail razor]# razor-admin -home=/etc/razor -d -create >> Razor-Log: read_file: 15 items read from /etc/razor/razor-agent.conf >> Razor-Log: -create will force complete discovery > > > You have already created /etc/razor/razor-agent.conf. > If /etc/razor/razor-agent.conf exists, Razor will use that for its > configuration file, so that is fine. To install the rest of the files > your amavis user needs, run razor-admin as your amavis user. > > Let's assume your amavis user is 'vscan' > > su vscan -c 'razor-admin -create' > su vscan -c 'razor-admin -register' > (may have to run -register more than once) > > This will install the .razor directory and razor files in the home > directory of the the amavis user (likely /var/amavis/.razor). > > This assumes the user vscan has shell access. If not (or as an > alternative), you could run: > > sudo -H -u vscan razor-admin -create > sudo -H -u vscan razor-admin -register > > Optional: > Once everything is working, I suggest you edit > /etc/razor/razor-agent.conf and change debuglevel to 0 > (to stop logging - then you wont have to maintain the log). > > Gary V > Thanks Gary, you helped me figure this out. We are running amavisd chrooted so I will have to run Makefile with prefix for the razor binaries to be installed into the corresponding /chroot/amavisd/ dirs instead of the default / (or symlink them), but in general I have a better understanding of it now, so I will be able to perform the steps you have proposed. Thanks, Boris Senker ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl