View previous topic :: View next topic |
Author |
Message |
note n00b
Joined: 30 Jul 2005 Posts: 2
|
Posted: Sat Jul 30, 2005 3:36 pm Post subject: Need Help about my ERROR .. Urgently !! |
|
|
Anyone can help me sir ?
1. ERROR = "" A NO ""
and
2. ERROR = "" -ERR No INBOX for user. "
I run Dovecot + Postfix + Postfixadmin + MySQL
When i work with command line
..
i have problem
like this
( When i 'm in command line )
##############################­######
[root@server etc]# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK dovecot ready.
A LOGIN test...@pepocono.com 123456
A OK Logged in.
A SELECT inbox
A NO
A LOGOUT
* BYE Logging out
A OK Logout completed.
Connection closed by foreign host
##############################­######
[root@server etc]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK dovecot ready.
USER test...@pepocono.com
+OK
PASS 123456
+OK Logged in.
-ERR No INBOX for user.
Connection closed by foreign host.
[root@jenus etc]#
##############################­#######
My Config
==============================­========
dvecot.conf
==============================­========
default_mail_env = maildir:/var/mail/virtual/%1u/­%u/Maildir
auth = plain
auth_mechanisms = plain digest-md5
auth_userdb = mysql /usr/local/etc/dovecot-mysql.c­onf
auth_passdb = mysql /usr/local/etc/dovecot-mysql.c­onf
auth_user = mailusers
==============================­========
dvecot-mysql.conf
==============================­========
db_host = localhost
db_unix_socket = /var/lib/mysql/mysql.sock
db = postfix
db_user = postfix
db_passwd = postfix
db_client_flags = 0
password_query = SELECT password FROM mailbox WHERE username = '%u'
#user_query = SELECT concat('/var/mail/virtual/', maildir) as home,
10000 as uid, 10000 as gid FROM mailbox WHERE username = '%u'
#user_query = SELECT '10000' AS uid, '10000' AS gid FROM mailbox WHERE
username = '%u' AND active = '1'
#user_query = SELECT home, uid, gid FROM users WHERE user = '%u'
user_query = SELECT home, uid, gid FROM users WHERE user = '%u' AND
active = '1'
( i use all case #comment but it'doesn't work )
==============================­========
main.cf
==============================­========
virtual_mailbox_base = /var/mail/virtual
virtual_mailbox_domains =
mysql:/etc/postfix/postfixmysq­l/mysql_virtual_domains_maps.c­f
virtual_mailbox_limit = 51200000
virtual_mailbox_maps =
mysql:/etc/postfix/postfixmysq­l/mysql_virtual_mailbox_maps.c­f
virtual_alias_domains = $virtual_alias_maps
virtual_minimum_uid = 10000
virtual_uid_maps = static:10000
virtual_gid_maps = static:10000
# Additional for quota support
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps =
mysql:/etc/postfix/postfixmysq­l/mysql_virtual_mailbox_limit_­maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn
his diskspace quota, please try again later.
virtual_overquota_bounce = yes
=========================
Note ::
=========================
mailusers uid=10000 gid = 10000 home = /var/mail/virtual |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Sat Jul 30, 2005 4:32 pm Post subject: |
|
|
Hi.
Please change the title of the thread to a more descriptive name. This post should not have been made in the Installing Gentoo forum, but on the Networking & Security forum. I'll ask a moderator to move it there.
Code: | [root@server etc]# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK dovecot ready.
A LOGIN test...@pepocono.com 123456
A OK Logged in.
A SELECT inbox
A NO
A LOGOUT
* BYE Logging out
A OK Logout completed.
Connection closed by foreign host |
To me, this means that your IMAP server is capable of authenticating your user, but that you forgot to create an Inbox for that user. I have a mail server in which I use cyrus as an IMAP server and MySQL as the authentication backend, that would happen to me if I added the user to MySQL, but forgot to use cyradm to create the user mailbox. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Sat Jul 30, 2005 4:37 pm Post subject: |
|
|
Moved from Installing Gentoo to Networking & Security. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|