Hi
I just would like to let you all know I solved the problem by disabling
selinux.
grrr, linux makes my head hurt coming from the bsd world, hehe
Have fun
On Fri, January 16, 2009 14:59, maillists at gimo.co.uk
wrote:> Hi
>
>
> I am having problems with a new server that I'm setting up. For some
> reason it doesn't want to create the directories for the users. I'm
getting
> a permissions denied error when logging into the server.
>
> Here is the info I could find, the weird thing is that I have two other
> servers where this configuration is working 100%
>
> # dovecot -n
> # 1.1.8: /etc/dovecot.conf
> # OS: Linux 2.6.18-92.1.22.el5 i686 CentOS release 5.2 (Final) ext3
> base_dir: /var/run/dovecot/
> listen: *
> ssl_cert_file: /etc/pki/dovecot/cert.pem
> ssl_key_file: /etc/pki/dovecot/key.pem
> login_dir: /var/run/dovecot//login
> login_executable(default): /usr/libexec/dovecot/imap-login
> login_executable(imap): /usr/libexec/dovecot/imap-login
> login_executable(pop3): /usr/libexec/dovecot/pop3-login
> login_greeting: Ready.
> verbose_proctitle: yes
> first_valid_uid: 89
> first_valid_gid: 89
> mail_privileged_group: mail
> mail_location: maildir:/var/virtual/%d/%n/
> mail_debug: yes
> mail_executable(default): /usr/libexec/dovecot/imap
> mail_executable(imap): /usr/libexec/dovecot/imap
> mail_executable(pop3): /usr/libexec/dovecot/pop3
> mail_plugin_dir(default): /usr/lib/dovecot/imap
> mail_plugin_dir(imap): /usr/lib/dovecot/imap
> mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
> imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh
> tb-extra-mailbox-sep imap_client_workarounds(imap): delay-newmail
> outlook-idle netscape-eoh tb-extra-mailbox-sep
> imap_client_workarounds(pop3):
> pop3_client_workarounds(default):
> pop3_client_workarounds(imap):
> pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
> auth default: mechanisms: plain login
> verbose: yes
> debug: yes
> passdb:
> driver: sql
> args: /etc/dovecot-sql.conf
> userdb:
> driver: sql
> args: /etc/dovecot-sql.conf
> socket:
> type: listen
> client:
> path: /var/spool/postfix/private/auth
> mode: 432
> user: postfix
> group: postfix
>
>
> # grep -v '^ *\(#.*\)\?$' /etc/dovecot-sql.conf
> driver = mysql connect = host=localhost dbname=postfix user=user
> password=passwd default_pass_scheme = MD5 password_query = SELECT password
> FROM mailbox WHERE username = '%u'
> user_query = SELECT 89 AS uid, 89 AS gid, maildir FROM mailbox WHERE
> username = '%u' AND active = '1'
>
> # telnet localhost 110
> Trying 127.0.0.1...
> Connected to localhost.localdomain (127.0.0.1).
> Escape character is '^]'.
> +OK Ready.
> user user1 at domain.com +OK
> pass userpass +OK Logged in.
> -ERR [IN-USE] Couldn't open INBOX: Internal error occurred. Refer to
> server log for more information. [2009-01-16 14:47:16] Connection closed by
> foreign host.
>
> # tail -F /var/log/maillog
> Jan 16 14:46:53 host dovecot: auth(default): new auth connection:
> pid=15501 Jan 16 14:47:15 host dovecot: auth(default): client in: AUTH
> 1
> PLAIN service=pop3 secured lip=127.0.0.1 rip=127.0.0.1 lport=110
> rport=50795 resp=<hidden> Jan 16 14:47:15 host dovecot:
> auth-worker(default): mysql: Connected to
> localhost (postfix) Jan 16 14:47:15 host dovecot: auth-worker(default):
> sql(user1 at domain.com,127.0.0.1): query: SELECT password FROM mailbox
WHERE
> username = 'user1 at domain.com' Jan 16 14:47:16 host dovecot:
> auth(default): client out: OK 1
> user=user1 at domain.com Jan 16 14:47:16 host dovecot: auth(default):
master
> in: REQUEST 2
> 15427 1
> Jan 16 14:47:16 host dovecot: auth-worker(default):
> sql(user1 at domain.com,127.0.0.1): SELECT 89 AS uid, 89 AS gid, maildir
FROM
> mailbox WHERE username = 'user1 at domain.com' AND active =
'1' Jan 16
> 14:47:16 host dovecot: auth(default): master out: USER 2
> user1 at domain.com uid=89 gid=89 maildir=domain.com/user1/ Jan 16
> 14:47:16 host dovecot: pop3-login: Login: user=<user1 at domain.com>,
> method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Jan 16 14:47:16 host
> dovecot: POP3(user1 at domain.com): Effective uid=89,
> gid=89 Jan 16 14:47:16 host dovecot: POP3(user1 at domain.com): maildir:
> data=/var/virtual/domain.com/user1/ Jan 16 14:47:16 host dovecot:
> POP3(user1 at domain.com): maildir++:
> root=/var/virtual/domain.com/user1/, index=, control=,
> inbox=/var/virtual/domain.com/user1/ Jan 16 14:47:16 host dovecot:
> POP3(user1 at domain.com):
> mkdir(/var/virtual/domain.com/user1/cur) failed: Permission denied Jan 16
> 14:47:16 host dovecot: POP3(user1 at domain.com): Couldn't open INBOX:
> Internal error occurred. Refer to server log for more information.
> [2009-01-16 14:47:16]
> Jan 16 14:47:16 host dovecot: POP3(user1 at domain.com): Couldn't open
INBOX
> top=0/0, retr=0/0, del=0/0, size=0
>
> # ll /var/
> drwxrwx--- 2 postfix postfix 4096 Jan 16 13:14 virtual
>
> # grep 89 /etc/passwd
> postfix:x:89:89::blablabla:/sbin/nologin
>
>
> # grep 89 /etc/group
> postfix:x:89:
>
>
>
> Can anyone please shed some light on where my problem lies?
> I'm at a total loss about this because like I said before, I have two
> other server and they have no problems.
>
> Thanks
> Reinhold
>
>
> -----
>
>
> This email and any of its attachments are strictly confidential. They may
> contain privileged information and are intended for named addressee(s)
> only. Any copy, review, transmission, dissemination or other use of or
> taking of any action in reliance upon this information by persons or
> entities other than the intended recipients is prohibited. If you have
> received this communication in error, please delete it immediately from
> your system and contact us on the above telephone number or email the
> sender. Global Interactive Marketing On-Line Limited is neither liable
> for the proper and complete transmission of the information contained in
> the communication nor for any delay in its receipt. Although this email
> and any of its attachments have been checked for the presence of computer
> viruses and we believe, but do not warrant, they are virus free, we do
> not accept any responsibility for the eventual adverse effect on systems
> or data that could result from the opening or use of this message and any
> attachment. You must therefore take full responsibility of checking for
> viruses. Global Interactive Marketing On-Line Ltd reserves the right to
> monitor all email communications. Global Interactive Marketing Online Ltd
> is registered in England and Wales by the Companies House, Cardiff. The
> company registration number is 5779675. Global Interactive Marketing
> Online Ltd, 14 Bonhill Street, London, EC2A 4BX, United Kingdom.
> -----
>
>
> This email and any of its attachments are strictly confidential. They may
> contain privileged information and are intended for named addressee(s)
> only. Any copy, review, transmission, dissemination or other use of or
> taking of any action in reliance upon this information by persons or
> entities other than the intended recipients is prohibited. If you have
> received this communication in error, please delete it immediately from
> your system and contact us on the above telephone number or email the
> sender. Global Interactive Marketing On-Line Limited is neither liable
> for the proper and complete transmission of the information contained in
> the communication nor for any delay in its receipt. Although this email
> and any of its attachments have been checked for the presence of computer
> viruses and we believe, but do not warrant, they are virus free, we do
> not accept any responsibility for the eventual adverse effect on systems
> or data that could result from the opening or use of this message and any
> attachment. You must therefore take full responsibility of checking for
> viruses. Global Interactive Marketing On-Line Ltd reserves the right to
> monitor all email communications. Global Interactive Marketing Online Ltd
> is registered in England and Wales by the Companies House, Cardiff. The
> company registration number is 5779675. Global Interactive Marketing
> Online Ltd, 14 Bonhill Street, London, EC2A 4BX, United Kingdom.
>
>
-----
This email and any of its attachments are strictly confidential. They may
contain privileged information and are intended for named addressee(s) only. Any
copy, review, transmission, dissemination or other use of or taking of any
action in reliance upon this information by persons or entities other than the
intended recipients is prohibited. If you have received this communication in
error, please delete it immediately from your system and contact us on the above
telephone number or email the sender. Global Interactive Marketing On-Line
Limited is neither liable for the proper and complete transmission of the
information contained in the communication nor for any delay in its receipt.
Although this email and any of its attachments have been checked for the
presence of computer viruses and we believe, but do not warrant, they are virus
free, we do not accept any responsibility for the eventual adverse effect on
systems or data that could result from the opening or use of this
message and any attachment. You must therefore take full responsibility of
checking for viruses. Global Interactive Marketing On-Line Ltd reserves the
right to monitor all email communications.
Global Interactive Marketing Online Ltd is registered in England and Wales by
the Companies House, Cardiff. The company registration number is 5779675.
Global Interactive Marketing Online Ltd, 14 Bonhill Street, London, EC2A 4BX,
United Kingdom.