Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th November 2009, 12:50
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default I can't read the email after a replication of /var/vmail

Hi to everybody,
I've a very big problem after a replication test of /var/vmail
When I enter in the email with roundcube, I can see the subject of the emails (for some of them I can just see (no subject), but when I open the email there is nothing.
And I can not see also the folders in roundcube, like sent, trash, etc...

What's going on?

Thanks
Michele
Reply With Quote
Sponsored Links
  #2  
Old 12th November 2009, 13:09
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

After a lot of tests, maybe I found the right configuration for the glusterfs replication.

But now I've this terrible issue and there are few accounts already online in this days... and now they can not read the emails...

Is maybe a permissions issue?
I'm checking the /var/vmail permissions and it seems to be ok...
Please suggestions?

Michele
Reply With Quote
  #3  
Old 12th November 2009, 17:16
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Ok luckely I have a backup copy of /var/vmail folder, so I've just replaced that folder with my backup copy and the emails are working ok now...
So it was I guess a replication error or a permission error...
Reply With Quote
  #4  
Old 13th November 2009, 10:33
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Ok now I've replace with the backup copy of /var/vmail and I can now read the email.
I can also send emails.
But I can not receive any email...
I had a look into the mail.log and it seems to be ok:
Code:
Nov 13 09:46:28 srv2 amavis[2251]: (02251-01) Passed CLEAN, [88.xxx.xxx.xxx] [88.xxx.xxx.xxx] <me@domain.com> -> <user@domain.com>, Message-ID: <200911130xxx@domain.com>, mail_id: RL4xxx, Hits: 1.45, size: 395, queued_as: C329xxxx, 684 ms
Nov 13 09:46:28 srv2 postfix/smtp[15082]: 988Dxxx: to=<user@domain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=50, delays=49/0.05/0.02/0.68, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02251-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as C329xxxx)
Nov 13 09:46:28 srv2 postfix/qmgr[2813]: 988Dxxxx: removed
Nov 13 09:46:29 srv2 postfix/pipe[15087]: C329xxxx: to=<user@domain.com>, relay=maildrop, delay=0.22, delays=0.01/0.02/0/0.19, dsn=2.0.0, status=sent (delivered via maildrop service)
Nov 13 09:46:29 srv2 postfix/qmgr[2813]: C329xxx: removed
What is wrong?
Yesterday, before some replication test, the mailserver was working correctly...
Thanks
Michele

Last edited by voltron81; 13th November 2009 at 10:51.
Reply With Quote
  #5  
Old 13th November 2009, 14:21
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Hi guys,
I upgrade here the situation, hoping that somebody will give me a good suggestion...
I was thinking that was a permission issue. But all the folder /var/vmail is owned by vmail and if I send an email, I'll see it in the "sent" folder, so postfix have the permission to write in that folder.
What else it should be?
Reply With Quote
  #6  
Old 13th November 2009, 14:25
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,624
Thanks: 793
Thanked 4,994 Times in 3,909 Posts
Default

Try to enable debugging in the imap daemon and check if there are any error messages when you use imap.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 13th November 2009, 14:25
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,624
Thanks: 793
Thanked 4,994 Times in 3,909 Posts
Default

Quote:
Originally Posted by voltron81 View Post
I was thinking that was a permission issue. But all the folder /var/vmail is owned by vmail and if I send an email, I'll see it in the "sent" folder, so postfix have the permission to write in that folder.
No. The email is put to the sent folder by rouncube via the imap daemon and not postfix.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 13th November 2009, 14:29
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Ok even if is IMAP daemon, if it put the sent mail into the sent folder, means that it can write in /var/vmail
What else I could check to see what's wrong?
As I said before, I checked the mail.log (even in debug mode), and I can not see any error.
If I'll create a competely new email with ISPConfig, I'll not receive also the wellcome email.

thanks Till
Michele

PS: at the end of this adventure, I'll write an howto wihere I'll explain how to have a master-master replication of the mailserver managed by ISPconfig...
Reply With Quote
  #9  
Old 13th November 2009, 15:05
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Ok Till, I've chenged the debug level in /etc/courier/authdaemonrc and I've rebooted the server, so now I've an huge mail.log.
Anyway I can not see any error...
Reply With Quote
  #10  
Old 13th November 2009, 16:10
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
 
Default

I tested maildrop with this command:

Code:
echo testing 123 | maildrop -V 9 -d michele@domain.com
and this is the result:
Code:
maildrop: authlib: groupid=5000
maildrop: authlib: userid=5000
maildrop: authlib: logname=michele@domain.com, home=/var/vmail, mail=               

                                                             /var/vmail/domain.com/michele
maildrop: Changing to /var/vmail
Message start at 0 bytes, envelope sender=michele@domain.com
maildrop: Attempting .mailfilter
Tokenized eof
WARN: quota string '10485760' not parseable
maildrop: Delivery complete.
After that command, I've received an email, but it's completely empty.
The strange thing is that if I'm going to /cur and I open with vim that email, I can see that there is this string: "testing 123".
So the email is in cur and there is a message inside, but with roundcube or a POP3 connection I can not see nothing... so subject and no words in the email...

Any idea?

Last edited by voltron81; 13th November 2009 at 16:19.
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
Security problem 2 ???? the revenge :) albertux Installation/Configuration 2 22nd September 2009 18:44
hotmail rejects outgoing email nzimas Server Operation 3 1st May 2009 03:39
Spamsnake - Problem with spamassassin, FuzzyOcr and MySQL debuguser HOWTO-Related Questions 6 16th September 2008 18:37
spamassasin/clamAV not working Daisy Installation/Configuration 32 15th February 2007 00:09
email forwarding locally consumes all resources rdells General 20 1st May 2006 19:43


All times are GMT +2. The time now is 22:12.


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