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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th June 2006, 16:41
arsen.gushin arsen.gushin is offline
Junior Member
 
Join Date: Jun 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Angry ISPConfig, postfix, dovecot: incorrect permissions

Hello, All.

I had a server (Debian) with ISPConfig, postfix and dovecot configured.
Accidentally i changed permissions on all my file system (chown root:users / -R).
After restoring permissions for postfix and some other essential services (i've mo nitored errors on /var/log/syslog) everything was fine. But later I realized, that new mails are now delivering to /var/mail/user_name instead of /home/www/web##/user/web##_user_name/mail/.imap/

None of config files was changed, so i think that incorrect permissions on some files is the reason for it. Ofcourse only new mails are visible now via imap.

I want at least to import all my old mail to new location. And ofcource will be better to restore old behavior (delivering mails to /home/www/bla-bla...).

Please, help.

postfix's main.cf:

virtual_maps = hash:/etc/postfix/virtusertable
local_recipient_maps = $virtual_maps, unixasswd.byname
mydestination = /etc/postfix/local-host-names
myorigin = /etc/mailname
relayhost =
mynetworks = my_ips_here
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated
smtp_helo_name = mail.my_domain_here

/etc/dovecot/dovecot.conf:

protocols = imap imaps pop3 pop3s
imap_listen = *
pop3_listen = *
imaps_listen = *
pop3s_listen = *
login_chroot = yes
login = imap
login = pop3
mail_extra_groups = mail
auth = default
auth_mechanisms = plain
auth_userdb = passwd
auth_passdb = pam
auth_user = root
auth_debug = yes

what else can help?

Last edited by arsen.gushin; 13th June 2006 at 16:52.
Reply With Quote
Sponsored Links
  #2  
Old 14th June 2006, 00:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

What's in your mail log when you send an email to your server?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 14th June 2006, 08:28
arsen.gushin arsen.gushin is offline
Junior Member
 
Join Date: Jun 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

From /var/log/syslog

Jun 14 07:25:55 24 postfix/smtpd[10941]: connect from unknown[my_ip]
Jun 14 07:25:55 24 postfix/smtpd[10941]: E97A71008BD0: client=unknown[my_ip]
Jun 14 07:25:56 24 postfix/cleanup[10944]: E97A71008BD0: message-id=<!&!AAAAAAAAAAAYAAAAAAAAACzHdYCbb3tFoSCnr4mAlyH CgAAAEAAAADYs3E/hsPdLpHJmMboVHtoBAAAAAA==@tadol.net>
Jun 14 07:25:56 24 postfix/qmgr[6365]: E97A71008BD0: from=<keyf@tadol.net>, size=1103, nrcpt=1 (queue active)
Jun 14 07:25:56 24 postfix/smtpd[10941]: disconnect from unknown[my_ip]
Jun 14 07:25:56 24 postfix/local[10945]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Jun 14 07:25:56 24 postfix/local[10945]: E97A71008BD0: to=<web28_questions@24.243.8.217.white08.int.blly. net>, orig_to=<questions@launchpoker.com>, relay=local, delay=1, status=sent (delivered to command: /usr/bin/procmail -f-)
Jun 14 07:25:56 24 postfix/qmgr[6365]: E97A71008BD0: removed
Jun 14 07:25:56 24 postfix/pickup[9264]: 6BE8A1008BF7: uid=0 from=<web28_questions>
Jun 14 07:25:56 24 postfix/cleanup[10944]: 6BE8A1008BF7: message-id=<20060614062556.6BE8A1008BF7@24.243.8.217.white 08.int.blly.net>
Jun 14 07:25:56 24 postfix/qmgr[6365]: 6BE8A1008BF7: from=<web28_questions@24.243.8.217.white08.int.bll y.net>, size=432, nrcpt=1 (queue active)
Jun 14 07:25:56 24 postfix/local[10945]: 6BE8A1008BF7: to=<admispconfig@localhost.243.8.217.white08.int.b lly.net>, orig_to=<admispconfig@localhost>, relay=local, delay=0, status=sent (delivered to command: /usr/bin/procmail -f-)
Jun 14 07:25:56 24 postfix/qmgr[6365]: 6BE8A1008BF7: removed

That is all..
Reply With Quote
  #4  
Old 14th June 2006, 09:56
arsen.gushin arsen.gushin is offline
Junior Member
 
Join Date: Jun 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default maildir format

and my maildir has strange format. it consist of some files:
.customflags
.imap.index
.imap.index.data
.imap.index.log
.imap.index.tree
and they are located here ~/mail/.imap/INBOX

I cannot find description of this format in google. is it Maildir or what?
Reply With Quote
  #5  
Old 14th June 2006, 18:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Can you go the web28_questions's homedir and post the output of
Code:
ls -la
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 20th June 2006, 15:34
arsen.gushin arsen.gushin is offline
Junior Member
 
Join Date: Jun 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i've solved this problem.
Thaks for your time, Falko
Reply With Quote
  #7  
Old 4th March 2009, 09:42
x-spirit x-spirit is offline
Junior Member
 
Join Date: Feb 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well.. good for you to solve it, but how ? I have the same problem,
the postfix writes the delivered mail with 0600 instead with 0755 premissions. How can I fix that ?
Reply With Quote
  #8  
Old 4th March 2009, 09:59
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,763
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

The permission 0600 is fine for emails, emails are always stored with these permissions and not 0755.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 4th March 2009, 10:11
x-spirit x-spirit is offline
Junior Member
 
Join Date: Feb 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

well, then why do I get this when trying to access local mail:

Code:
dovecot: Mar 04 03:11:06 Error: IMAP(x-spirit): open(/home/x-spirit/Maildir/cur/1236157865.V80bId7018fM539656.ns:2,) failed: Permission denied
dovecot: Mar 04 03:11:07 Error: IMAP(x-spirit): open(/home/x-spirit/Maildir/cur/1236157865.V80bId7018fM539656.ns:2,) failed: Permission denied
and when I chmod the mail to 755 - it works fine ?
Reply With Quote
  #10  
Old 4th March 2009, 10:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,763
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
 
Default

This forum and thread is for the software ISPConfig but the error log you posted can not be from a ISPConfig installation. maybe you posted your questions in the wrong context?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
postfix ISPconfig problem matehortua Installation/Configuration 8 3rd September 2006 17:03
Migrating Postfix + imap-2002d-3 to Postfix + dovecot wheatie Server Operation 1 2nd May 2006 15:20
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16
Incorrect postfix configuration oliver.blaha Installation/Configuration 2 20th April 2006 16:49
ISPconfig/ Postfix forward nemo12 Installation/Configuration 9 16th March 2006 16:19


All times are GMT +2. The time now is 05:53.


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