On 7/5/06, Matthias Fuhrmann <
[EMAIL PROTECTED]> wrote:
On Wed, 5 Jul 2006, Kaushal Shriyan wrote:
> On 7/5/06, Matthias Fuhrmann < [EMAIL PROTECTED]> wrote:
> >
> > On Wed, 5 Jul 2006, Kaushal Shriyan wrote:
> >
> > > On 7/5/06, Matthias Fuhrmann < [EMAIL PROTECTED]>
> > wrote:
> > > >
> > > > On Wed, 5 Jul 2006, Kaushal Shriyan wrote:
> > > >
> > > > hello,
> > > >
> > > > > I ran spamd as normal user and it gave me the below error
> > > > >
> > > > >
> > > > > [20405] error: auto-whitelist: cannot open auto_whitelist_path
> > > > > /home/kaushal/spamass/auto-whitelist: Inappropriate ioctl for device
> > > > > [20405] warn: auto-whitelist: open of auto-whitelist file failed:
> > > > > auto-whitelist: cannot open auto_whitelist_path
> > > > > /home/kaushal/spamass/auto-whitelist: Inappropriate ioctl for device
> > > >
> > > > does the directory /home/kaushal/spamass/ exists? if not create it
> > first.
> > > > found this while googling for "Inappropriate ioctl for device". maybe
> > it
> > > > helps you too.
> > > >
> > > > regards,
> > > > Matthias
> > > >
> > >
> > >
> > > Hi Matthias
> > >
> > > The directory exists in my linux box, I have done a lot of search on
> > > "Inappropriate ioctl for device"
> > > but could not find any relevant answer, I believe you can help me in
> > fixing
> > > this issue
> >
> > i'm not sure about "auto_whitelist_path" at all, so path means directories
> > only and files will be created as:
> > /home/kaushal/spamass/auto-whitelist/awl-file ?!
> > if so, create auto-whitelist too :)
> > well, we didnt issued "auto_whitelist_path" and sa creates
> > "auto-whitelist" db-file in ~$USER/.spamassassin/auto-whitelist.
> >
> > regards,
> > Matthias
> >
>
>
> Hi Matthias
>
> Its there in
>
> [EMAIL PROTECTED] spamass]# pwd
> /home/kaushal/spamass
> [EMAIL PROTECTED] spamass]# ls
> auto-whitelist
> [EMAIL PROTECTED] spamass]#
>
i was wrong with my installation, we have in local.cf:
auto_whitelist_path /var/milter/.spamassassin/auto-whitelist
auto_whitelist_file_mode 0600
and the result is:
-rw------- 1 milter unixag 672022528 Jul 5 16:11 /var/milter/.spamassassin/auto-whitelist
are you using a dedicated user to run spamassassin? our is called
"milter", so milter must be able to read/write the awl file.
look at the permissions of the directories, so your dedicated user can
access the file.
regards,
Matthias
Hi Mathias
I have the below permissions and i also tested it running as normal user, I get
[28976] error: auto-whitelist: cannot open auto_whitelist_path /var/lib/spamass/auto-whitelist: Inappropriate ioctl for device
[28976] warn: auto-whitelist: open of auto-whitelist file failed: auto-whitelist: cannot open auto_whitelist_path /var/lib/spamass/auto-whitelist: Inappropriate ioctl for device
[28976] warn: auto-whitelist: open of auto-whitelist file failed: auto-whitelist: cannot open auto_whitelist_path /var/lib/spamass/auto-whitelist: Inappropriate ioctl for device
[EMAIL PROTECTED] spamass]# ll
total 8
-rw------- 1 root root 12288 Jul 5 18:58 auto-whitelist
[EMAIL PROTECTED] spamass]#
total 8
-rw------- 1 root root 12288 Jul 5 18:58 auto-whitelist
[EMAIL PROTECTED] spamass]#