SA throwing permission problems with .INBOX.spam

sullise

Verified User
Joined
Mar 4, 2004
Messages
475
2007-03-12 18:37:32 1HQt8x-0006as-RF == /home/user00/imap/domain.com/userid/Maildir/.INBOX.spam/new/ <[email protected]> R=domain_filter T=address_file defer (13): Permission denied: while creating file /home/user00/imap/domain.com/userid/Maildir/.INBOX.spam/new//temp.25358.www.server.com

(note that I changed user info to protect privacy...)

Not sure why this ONE client on ONE server would be getting these. All his mailboxes are getting same error. I've checked the permissions on all folders from /home/user00/imap down to the /new and they look correct. (Chmod 760).

Anyone have any thoughts? Guy has a lot of mailboxes..don't want to have to tell him to recreate them all. :(
 
2007-03-12 18:37:32 1HQt8x-0006as-RF == /home/user00/imap/domain.com/userid/Maildir/.INBOX.spam/new/ <[email protected]> R=domain_filter T=address_file defer (13): Permission denied: while creating file /home/user00/imap/domain.com/userid/Maildir/.INBOX.spam/new//temp.25358.www.server.com

(note that I changed user info to protect privacy...)

Not sure why this ONE client on ONE server would be getting these. All his mailboxes are getting same error. I've checked the permissions on all folders from /home/user00/imap down to the /new and they look correct. (Chmod 760).

Anyone have any thoughts? Guy has a lot of mailboxes..don't want to have to tell him to recreate them all. :(

having the same problem after restoring users on a new server ....
and not only 1 user, but more ?

any solutions .. as this is an old post, with no solution ....
 
I have the same problem on my server now...after restore of an account?

any help ??:confused:
 
Hello,

760? Do you mean 770 or 750?
760 isn't a valid directory permission. The 6 isn't executeable so it would fail.

Also, what is the state of the backup and the restore system?
Eg: is the backup from an mbox/vm-pop3d server.. and the restore onto a Maildir/dovecot setup?
or is the backup and restore box both dovecot?

What is the output of your ls -la command on the "new" directory.. I want to know what the ownership, and permissions of the folder are.

Note to reset any permissions, type:
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh email
which will reset any wrong permissions, but it's best to let me know what the problem is so that we can fix any issues so we don't have to run the script.

John
 
tryed running this script no change...

runing ls -la on /home/user/Maildir/.INBOX.spam/new#
brings output:
total 0
drwxrwx--- 2 user mail 48 2009-09-23 10:38 .
drwxrwx--- 3 user mail 72 2009-09-23 10:38 ..

and mail log shows:
<[email protected]> R=domain_filter T=address_file defer (13): Permission denied: while creating file /home/user/Maildir/.INBOX.spam/new//temp.22372.ns.myhost.com
 
Hello,

The spam redirects are controlled by /etc/virtual/domain.com/filter.

The director in the /etc/exim.conf is the "domain_filter".
It runs as the DA user, and with group "mail".

Make sure all paths all the way down to, and including the "new" folder are writeable by user:mail.

The folders below /home/user/imap should be chown to user:mail, and chmod 770.

John
 
Hello,

Just as an update, as I recently fixed this on one box. The issue was a non-patched domain_filter section of the /etc/exim.conf. The section should look like
Code:
domain_filter:
  driver = redirect
  allow_filter
  no_check_local_user
  condition = "${if exists{/etc/virtual/${domain}/filter}{yes}{no}}"
  user = "${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}"
  group = "mail"
  file = /etc/virtual/${domain}/filter
  directory_transport = address_file
  pipe_transport = virtual_address_pipe
  retry_use_local_part
  no_verify
specifically with the user being a lookup, and the group being "mail". The default exim.conf (for mbox, vm-pop3d.. aka old) just has user="mail", which is not sufficient with Dovecot. Ensure the domain_filter looks like the above options on your system.

John
 
Same error

Hello I have same error.
I made change you tell but it's same.
I use MailScanner, I don't know if for that that not working.
And I make this: http://www.directadmin.com/features.php?id=961

Please help me.

Edit: For resolve problem I need to change this : user = "${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}" with : user - root.
I think it's not very good. How I can do for not put root for user in domain_filter ?

EDIT2: I resolve the problem by remove MailScanner ! ;) All work fine now.
 
Last edited:
tryed running this script no change...

runing ls -la on /home/user/Maildir/.INBOX.spam/new#
brings output:
total 0
drwxrwx--- 2 user mail 48 2009-09-23 10:38 .
drwxrwx--- 3 user mail 72 2009-09-23 10:38 ..

and mail log shows:
<[email protected]> R=domain_filter T=address_file defer (13): Permission denied: while creating file /home/user/Maildir/.INBOX.spam/new//temp.22372.ns.myhost.com

Hi.

I have the same problem after this upgrade: http://www.directadmin.com/features.php?id=961

Any solutions about this ??
 
Back
Top