When I try use cyradm from localhost all works fine. I type "cyradm --user=cyrus localhost" and can list/create/delete mailboxes, but when I change localhost to domain.tld works only authentication, I can't even list mailboxes!
from man imapd.conf:
virtdomains: off
Enable virtual domain support. If enabled, the user's domain will be determined by splitting a fully qualified userid at the
last '@' or '%' symbol. If the userid is unqualified, and the virtdomains option is set to "on", then the domain will be deter-
mined by doing a reverse lookup on the IP address of the incoming network interface, otherwise the user is assumed to be in the
default domain (if set).
So, if I write to /etc/hosts: 127.0.0.1 localhost <my ip> localhost cyradm works fine, but I don't want resolve my ip address as localhost :) How can I change this behaviour of cyrus ?
imapd.conf:
=========================8<============================
configdirectory: /var/imap
partition-default: /var/spool/imap
sievedir: /var/imap/sieve
tls_ca_path: /etc/ssl/certs
tls_cert_file: /etc/ssl/cyrus/server.crt
tls_key_file: /etc/ssl/cyrus/server.key
admins: cyrus
hashimapspool: no
allowanonymouslogin: no
allowplaintext: yes
unixhierarchysep: yes
virtdomains: yes
umask: 000
quotawarn: 90
autocreatequota: 10000
reject8bit: no
sendmail: /usr/sbin/sendmail
postmaster: postmaster
lmtpsocket: /var/imap/socket/lmtp
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sql
sasl_sql_engine: mysql
sasl_mech_list: LOGIN PLAIN
sasl_sql_user: mail
sasl_sql_passwd: secret
sasl_sql_database: mail
sasl_sql_hostnames: localhost
sasl_sql_select: SELECT password FROM accountuser WHERE username='[EMAIL PROTECTED]' or (username='%u' and domain_name='')
=========================>8========================================
select * from accountuser where username='cyrus';
+----------+----------------------+--------+---------------+
| username | password | prefix | domain_name |
+----------+----------------------+--------+---------------+
| cyrus | secret | | |
+----------+----------------------+--------+---------------+
--- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html