Re: Spamassassin fails

2022-01-09 Thread Hans Brage



Den 2022-01-09 kl. 21:04, skrev Benny Pedersen:

On 2022-01-09 20:35, Hans Brage wrote:


I've been running a server with Dovecot, Sieve, Spamassassin and
getmail to handle my emails for several years now.

Just before christmas I did one of these regular updates and since
then I got problems with spamassassin. Quite a lot of spam is not been
filtered out.  I can see a lot of errors like these in the mail-log.

spamd: failed to create readable default_prefs:
/home/vmail/.spamassassin/user_prefs

Vmail is the user that is running my scripts that retrieves email and
executes spamc.

Any ideas?


with that sparse info its not possible to help :/

have you changed distro eg update of debian versions ?, apt-get 
update, apt-get dist-upgrade ?


is it ubuntu ?, redhat ?, more info please


Hi!

I'm running opensuse Tumbleweed and did a regular dist-upgrade (zypper 
dup). However due to a big workload at that time I didn't pay to much 
attention to what actually was updated then.


Spamassassin reports version 3.4.6

// Hans






Spamassassin fails

2022-01-09 Thread Hans Brage

Hi!

I've been running a server with Dovecot, Sieve, Spamassassin and getmail 
to handle my emails for several years now.


Just before christmas I did one of these regular updates and since then 
I got problems with spamassassin. Quite a lot of spam is not been 
filtered out.  I can see a lot of errors like these in the mail-log.


spamd: failed to create readable default_prefs: 
/home/vmail/.spamassassin/user_prefs


Vmail is the user that is running my scripts that retrieves email and 
executes spamc.


Any ideas?

Regards, Hans





Re: Migration

2018-12-30 Thread Hans Brage

Thanks!

That was a really useful answer.

// Hans


Den 2018-12-30 kl. 10:53, skrev Sami Ketola:

On 29 Dec 2018, at 23.49, Hans Brage  wrote:

Hi!

I'm currently running an small imap-server on Dovecot 2.2.4 but will retire 
that server. I've set up an new server with Dovecot 2.3.4 and will migrate the 
mailboxes (maildir-format) from the old to the new server. I'm planning to 
restructure the accounts a bit when migrating so I need to move them one by 
one. Its only a few so thats not a big issue.

Both servers are using virtual accounts (users file).

I've understood that best method for migration is to run doveadm backup -R from 
the new server. But I really cant figure out what other parameters or settings 
that I need to perform that task and if it should be run as user vmail or root.

Would be greatful for any tips, hints, links or similiar.


Once you have the new server set up, you can use dsync over ssh to sync the 
mailboxes with something like:

doveadm backup -u user@newserver -R ssh sudouser@oldserver sudo 
/usr/bin/doveadm dsync-server -u user@oldserver

needs to be run as root on new server. Also ssh access with keys and without 
password is recommended.

Sami




Migration

2018-12-29 Thread Hans Brage

Hi!

I'm currently running an small imap-server on Dovecot 2.2.4 but will 
retire that server. I've set up an new server with Dovecot 2.3.4 and 
will migrate the mailboxes (maildir-format) from the old to the new 
server. I'm planning to restructure the accounts a bit when migrating so 
I need to move them one by one. Its only a few so thats not a big issue.


Both servers are using virtual accounts (users file).

I've understood that best method for migration is to run doveadm backup 
-R from the new server. But I really cant figure out what other 
parameters or settings that I need to perform that task and if it should 
be run as user vmail or root.


Would be greatful for any tips, hints, links or similiar.

Regards,
Hans