Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th June 2009, 07:17
Tezux Tezux is offline
Member
 
Join Date: Jun 2009
Posts: 38
Thanks: 0
Thanked 2 Times in 2 Posts
Default Ohhhh Noooo!! Ok I need help fast

Debian Lenny The Perfect Server

Up to now has been running like a dream. Then a couple of days ago I was sent an email to my hotmail address which made me think, why are they sending mail to there and not my mail server anymore? Ok so I run up to the mail server and test it, it seemed ok, mail LOOKED like it was sending and being recieved without any problems. So then I try sending myself an email and sure enough, the mail isnt actually being recieved or sent, although its all in the mail log. It looks fine with no errors until you try finding the mail and theres nothing. Damn.
I have very important emails in my logs that I need fast. How can I read these emails from shell or whatever is the fastest way possible so I can reply to these people.

Only error I see is this in /var/log/mail.log

]un 29 14:42:12 mail maildrop: Home directory owned by wrong user.

I tried re-configuring postfix but that didnt do anything.
Can someone help, I need to get this lost mail I have been sent fast
Reply With Quote
Sponsored Links
  #2  
Old 30th June 2009, 09:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,394
Thanks: 833
Thanked 5,489 Times in 4,321 Posts
Default

Did you install ISPConfig 3?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 30th June 2009, 10:38
Tezux Tezux is offline
Member
 
Join Date: Jun 2009
Posts: 38
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Yes I have everything installed as in this Tutorial

http://howtoforge.org/perfect-server...nny-ispconfig3

How can I access my mail thats been sent to the server but is not receivable using my email client program?
I have check /var/vmail/user but all the folders seem to be empty, I dont understand? The mail must be on the server somewhere as the Logs say that the mail has been received, I can see it in the Logs
Reply With Quote
  #4  
Old 30th June 2009, 10:46
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,394
Thanks: 833
Thanked 5,489 Times in 4,321 Posts
Default

Please post an excerpt of the log files and post the output of:

ls -la /var/vmail

and post the output of:

postqueue -p
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 30th June 2009, 11:08
Tezux Tezux is offline
Member
 
Join Date: Jun 2009
Posts: 38
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Here you go till

gt@mail:~$ ls -la /var/vmail
total 32
drwxr-xr-x 4 gt gt 4096 2009-05-26 19:24 .
drwxr-xr-x 17 root root 4096 2009-05-26 17:49 ..
-rw-r--r-- 1 vmail vmail 220 2008-05-13 07:02 .bash_logout
-rw-r--r-- 1 vmail vmail 3116 2008-05-13 07:02 .bashrc
drwxr-xr-x 12 vmail vmail 4096 2009-06-23 17:46 example.com
-rw------- 1 vmail vmail 1240 2009-05-26 17:49 .mailfilter
drwxr-xr-x 3 root root 4096 2009-05-31 17:05 mailfilters
-rw-r--r-- 1 vmail vmail 675 2008-05-13 07:02 .profile
gt@mail:~$



postqueue -p

71DA522C4B8 7939 Sat Jun 27 08:33:48 mailer@annomydomain.com
(temporary failure. Command output: /usr/bin/maildrop: Home directory owned by wrong user.)
tezux@example.com

It just says this message over and over again
Reply With Quote
  #6  
Old 30th June 2009, 11:23
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,394
Thanks: 833
Thanked 5,489 Times in 4,321 Posts
Default

Please run:

chown vmail:vmail /var/vmail
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 30th June 2009, 11:29
Tezux Tezux is offline
Member
 
Join Date: Jun 2009
Posts: 38
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Sorry Im not that good at Linux, what do I do after that?
I know it changes the owner permissions but the files inside /var/vmail/example.com which are the directorys for all my email addresses of my domain are still not readable as I dont have the permissions to access them. I tried changing the permissions to get into them but theres nothing in there, they are empty, my mail isnt there?
Reply With Quote
  #8  
Old 30th June 2009, 13:45
Tezux Tezux is offline
Member
 
Join Date: Jun 2009
Posts: 38
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Ah ok got it sorted, problem solved. I changed my postfix config and forgot to change it back again. Thats what happens when you have tried a million things and dont remember everything you tried I guess

I also didnt realise the mail in /var/vmail was not viewable as a text file, so thats why it always appears blank, that might be useful to someone else thinking the same as I was.

Thanks till

So can anyone explain to me why this problem may have occurred with the mail server just suddenly? One day it was working fine and the next day it did this and I handt done any changes previous to the problem? Weird no?
Reply With Quote
  #9  
Old 30th June 2009, 13:59
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,394
Thanks: 833
Thanked 5,489 Times in 4,321 Posts
Default

Someone has changed the owner of the folder /var/vmail from vmail to gt. As gt is no common system user, it muste be an account from you or from one of your users.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 1st July 2009, 10:32
Tezux Tezux is offline
Member
 
Join Date: Jun 2009
Posts: 38
Thanks: 0
Thanked 2 Times in 2 Posts
 
Default

Ah I know what happened now, someone at work tried to back up the vmail folder and were having problems with it, dont you love it when your told about this 2 days later.

Thanks for helping me Till, I really appreciate it
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wanted a Good Fast Linux Distro siringo Desktop Operation 7 3rd April 2009 22:24
"mo" respawning too fast: disabled for 5 minutes alexo HOWTO-Related Questions 14 8th March 2009 15:46
Mingetty respawns too fast ... can't see errors! leitner Technical 4 17th February 2009 18:05
Haproxy + Lighttpd / fast cgi EazySnatch Installation/Configuration 0 29th September 2008 16:22


All times are GMT +2. The time now is 18:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.