the files that ends with the ~ sign are created as a "backup" by Jed. The original files are there also with their proper name.
I've tried to remove these files and restarted mailscanner, but still the same.
I've redone the permissions in this thread, this time for the 7th or 8th time.
Could it have something to do with permissions in the mysql-db's?