mail delivery failed

UpHost.org

Verified User
Joined
Mar 29, 2006
Messages
7
Hello! I run DA on a Freebsd 6.0 box.
I can succesfully send messages to remote and local e-mail`s.
But I can not receive any mail which has been sent to my server.
I use exim 4.60 whis starts under user mail and group mail

tail mainlog
2006-03-30 01:34:35 H=fallback.mail.ru (mx4.mail.ru) [194.67.57.14] F=<[email protected]> temporarily rejected RCPT <mail@on-myserver>: require_files: error for /etc/virtual/domain/reply/login.msg: Permission denied
2006-03-30 01:34:35 H=fallback.mail.ru (mx4.mail.ru) [194.67.57.14] incomplete transaction (RSET) from <[email protected]>
2006-03-30 01:39:48 H=fallback.mail.ru (mx4.mail.ru) [194.67.57.14] F=<[email protected]> temporarily rejected RCPT <mail@on-myserver>: require_files: error for etc/virtual/domain/reply/login.msg: Permission denied
2006-03-30 01:39:48 H=fallback.mail.ru (mx4.mail.ru) [194.67.57.14] incomplete transaction (RSET) from <[email protected]>

ls -la /etc/virtual/domain/
total 12
drwxr-xr-x 3 mail mail 512 Mar 30 01:19 .
drwxr-xr-x 8 mail mail 512 Mar 29 23:07 ..
-rw-r----- 1 mail mail 27 Mar 29 22:48 aliases
-rw-r----- 1 mail mail 0 Mar 29 22:48 autoresponder.conf
-rw-r----- 1 mail mail 0 Mar 29 22:48 filter
-rw-r----- 1 mail mail 0 Mar 29 22:48 filter.conf
-rw------- 1 mail mail 38 Mar 30 01:02 passwd
-rw-r----- 1 mail mail 5 Mar 30 01:02 quota
drw-r--r-- 2 mail mail 512 Mar 30 01:11 reply
-rw-r----- 1 mail mail 0 Mar 29 22:48 vacation.conf





ls -la /etc/virtual/domain/reply/
total 4
drw-r--r-- 2 mail mail 512 Mar 30 01:11 .
drwxr-xr-x 3 mail mail 512 Mar 30 01:19 ..
-rwxrwxrwx 1 mail mail 0 Mar 30 01:11 login.msg


How to fix this bug?
 
2006-03-30 03:07:28 1FOjkg-00010g-PF == support@domen R=virtual_user T=virtual_localdelivery defer (-9): failed to lock mailbox /var/spool/virtual/domen/support (lock file)


new error message
 
2006-03-30 03:13:01 1FOjqX-00012U-If == support@domen R=virtual_user T=virtual_localdelivery defer (-6): mailbox /var/spool/virtual/domen/support has wrong uid (12 != 1016)

another one..
 
i have fixed my mail, but I had to execute about 5-7 chown&chmod commands..why DA doesnt execute them autmatically?
 
DA sets them when the account is created.
Exim will set them when it creates them if the box doesn't exist.
If they're changed anytime after the box is created, DA won't touch it, hence the script (I'm not sure why it got changed on you)

John
 
trying to run set_permissions.sh on my box had a few problems dealing with the set_file "/var/spool/exim/*/*" stuff

here is a diff of the changes I made to the file so that it could handle the large number of files I have in there.

Not sure how many files I should have in there, but anyways

Code:
--- set_permissions.sh  Fri Mar 31 11:23:29 2006
+++ /root/set_permissions.sh    Fri Mar 31 11:22:37 2006
@@ -346,9 +346,14 @@
        done;
 
        set_file /var/spool/exim mail mail 750
-       set_file "/var/spool/exim/*" mail mail 750 '' nocheck
-       set_file "/var/spool/exim/*/*" mail mail 640 '' nocheck
 
+       # the /var/spool/exim/*/* is too big so we will need to do it another way
+       for i in `ls /var/spool/exim/`; do
+               set_file "/var/spool/exim/$i" mail mail 750 '' nocheck
+               for j in `ls /var/spool/exim/$i`; do
+                       set_file "/var/spool/exim/$i/$j" mail mail 640 '' nocheck
+               done
+       done
 }
 
 logs()
 
Back
Top