virtdomains and autocreateinboxfolders not working!!

Matt Goebel mgoebel at workforcesoftware.com
Tue Dec 28 15:15:26 EST 2004


No matter what I try I can been unable to get either virtdomains or
autocreateinboxfolders working.  Without virtdomains set (as shown
below) I am able to login and send/read mail as usual.  None of the
special folders are created though.  If I turn on virtdomains the
folders DO get created.  This would be fine except for the fact virtual
domains don't work!  When I get an email it creates the folders
in /var/spool/imap/t/user/testuser.testdomain.com/.  (Same place they
SHOULD go with virtdomain turned off)  Then when I login via an imap
client (squirrelmail/thunderbird).. it creates a new set of folders
in /var/spool/imap/domain/l/localdomain/t/user/testuser.testdomain.com/.
So the mail is going one place and the clients another....  I've been
banging my head on the desk the last two days trying without success to
get the two in sync.  The ideal solution would be avoid using virtdomain
(virtdomains work fine without it as setup now) and have
autocreateinboxfolders actually work.  Anyone have any ideas on what's
wrong here?  I've tried just about everything.  Config info is below:


My setup is as follows:

Fedora Core 3 (latest patch level)
Postfix 2.1.5-2.4 (compiled from stock src RPM /w MySQL support enabled)
Cyrus-imapd 2.2.10-3 (Default FC3 RPM and several other 2.2.10 versions
compiled with latest autocreate patches)
MySQL authentication /w pam_mysql (followed Postfix+Cyrus+Web howto)
Web-Cyradm
Mailscanner+ClamAV+Spamassassin


My imapd.conf file contains:

admins: cyrus
hashimapspool: true
postmaster: postmaster
configdirectory: /var/lib/imap
partition-default: /var/spool/imap/
allowanonymouslogin: no
#virtdomains: yes #toggled off and on
#defaultdomain: testdomain.com #toggled off and on
allowplaintext: yes
sasl_mech_list: PLAIN
servername: mail.testdomain.com
autocreatequota: 20000000
createonpost: 1
autocreateinboxfolders: Sent|Drafts|Spam|Trash
autosubscribeinboxfolders: Sent|Drafts|Trash|Spam
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
duplicatesuppression: 1
sasl_pwcheck_method: saslauthd
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
sieve_maxscriptsize: 32
sieve_maxscripts: 5
autosievefolder: yes
unixhierarchysep: yes
tls_ca_file: /var/lib/imap/server.pem
tls_cert_file: /var/lib/imap/server.pem
tls_key_file: /var/lib/imap/server.pem
tls_require_cert: 1


My /etc/postfix/main.cf contains:

command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
myhostname = mail.testdomain.com
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mailbox_transport = cyrus #tried ltmp when using virtdomains
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.1.5/samples
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
sender_canonical_maps = mysql:/etc/postfix/mysql-canonical.cf
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks, reject_unauth_destination
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
header_checks = regexp:/etc/postfix/header_checks

Thanks,

Matt



---
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




More information about the Info-cyrus mailing list