Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mailfilter-guide - domanda su directory shared
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
n4than
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jan 2004
Posts: 100

PostPosted: Tue Oct 03, 2006 10:02 am    Post subject: mailfilter-guide - domanda su directory shared Reply with quote

Salve a tutti , ho seguito l'howto http://www.gentoo.org/doc/en/mailfilter-guide.xml ma mi trovo in una situazione in cui non mi è molto chiara un'impostazione e magari qualcuno di voi ha avuto modo di "sbatterci" prima di me.
Nella documentazione viene impostata la dir /var/amavis/.spamassassin/bayes

Code:

/etc/mail/spamassassin/local.cf

# Enable the Bayes system
use_bayes               1

# Enable all network checks
skip_rbl_checks         0

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
# - danish english norwegian swedish
ok_languages            da en no sv

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales              en

# Use a sensible bayes path
bayes_path              /var/amavis/.spamassassin/bayes


e vengono create inoltre le seguenti dirs

Code:

Code Listing 6.4: Create the necessary mailfolders
# maildirmake /var/amavis/.maildir
# maildirmake -S /var/amavis/.maildir/Bayes
# maildirmake -s write -f spam /var/amavis/.maildir/Bayes
# maildirmake -s write -f ham /var/amavis/.maildir/Bayes
# maildirmake -s write -f redeliver /var/amavis/.maildir/Bayes

groupadd mailusers
# usermod -G mailusers spamtrap
# chown -R amavis:mailusers /var/amavis/.maildir/
# chown amavis:mailusers /var/amavis/
# chmod -R 1733 /var/amavis/.maildir/Bayes/
# chmod g+rx /var/amavis/.maildir/
# chmod g+rx /var/amavis/.maildir/Bayes/



e infine settata come dir shared

Code:

maildirmake --add Bayes=/var/amavis/.maildir/Bayes $HOME/.maildir


Ora io mi trovo in questa situazione.

Ho un dominio virtuale in cui le home degli utenti sono localizzati in /home/vmail/miodominio.org/

Code:

ls -la /home/vmail/miodominio.org/
total 0
drwx------  13 vmail vmail 328 Sep 27 12:21 .
drwxr-xr-x   3 vmail vmail 184 May 19 14:03 ..
drwx------   3 vmail vmail  72 May 21 18:42 dyland0g
drwx------   3 vmail vmail  72 May 21 18:39 nathan
..........

a cui accedo mediante imap senza nessun problema.

Seguendo la documentazione ho settato la shared dir di Bayes

Code:

maildirmake --add Bayes=/var/amavis/.maildir/Bayes home/vmail/miodominio.org/nathan/.maildir


Code:

drwx------  12 vmail vmail   408 Oct  3 11:00 .
drwx------   3 vmail vmail    72 May 14 21:48 ..
drwx------   6 vmail vmail   256 May 31 15:50 .Drafts
drwx------   6 vmail vmail   256 Jul 27 19:51 .Sent
drwx------   6 vmail vmail   256 Jun 19 09:47 .Trash
drwx------   6 vmail vmail   256 Sep 22 00:57 .ham
drwx------   6 vmail vmail   256 Sep 26 18:54 .spam
drwx------   6 vmail vmail   256 Sep 20 17:36 .tmp
drwx------   2 vmail vmail    72 Oct  3 10:59 courierimapkeywords
-rw-r--r--   1 vmail vmail    79 Oct  3 10:59 courierimapsubscribed
-rw-r--r--   1 vmail vmail  8796 Oct  3 10:40 courierimapuiddb
drwx------   2 vmail vmail 11928 Oct  3 10:40 cur
drwx------   2 vmail vmail    48 Sep 27 12:02 new
-rw-r--r--   1 vmail vmail    34 Oct  3 10:57 [color=red]shared-maildirs[/color]
drwx------   2 vmail vmail    48 Oct  3 11:04 tmp


e come si può osservare
Code:

ls -la /var/amavis/.maildir/Bayes/
total 4
drwxrwxrwx  9 amavis vmail 272 Oct  3 10:58 .
drwxrwxrwx  6 amavis vmail 144 Jul 25 16:12 ..
drwxrwxrwx  5 amavis vmail 184 Oct  3 10:49 .ham
drwxrwxrwx  5 amavis vmail 184 Oct  3 10:49 .redeliver
drwxrwxrwx  5 amavis vmail 184 Oct  3 10:49 .spam
drwxrwxrwx  2 vmail  vmail 208 Oct  3 11:00 courierimapkeywords
-rw-r--r--  1 vmail  vmail 119 Oct  3 10:58 courierimapuiddb
drwxrwxrwx  2 amavis vmail 192 Oct  3 10:58 cur
drwxrwxrwx  2 amavis vmail  48 Oct  3 10:58 new
drwxrwxrwx  2 amavis vmail  48 Oct  3 11:04 tmp


I permessi mi sembrano giusti, ma non riesco in nessun modo a visualizzare la dir shared.
Inoltre anche se il sistema filtra lo spam non vedo mai inoltrare nulla dentro la directory Bayes.
Probabilmente qualcosa mi sfuggge nel funzionamento e/o nella configurazione.
Per il resto ho seguito alla lettera l'howto ..
Qualcuno potrebbe darmi qualche dritta?
Grazie
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum