What tells cyrus to deliver to domain

Jon jonr at destar.net
Sat Mar 12 00:24:05 EST 2011


On 03/11/2011 02:35 PM, Jon wrote:
> On 03/11/2011 11:42 AM, Dan White wrote:
>    
>> On 11/03/11 11:01 -0900, Jon wrote:
>>      
>>> I am fighting trying to understand why my mail gets delivered to
>>> /var/spool/imap/j instead of /var/spool/imap/domain/d/destar.net/j/. I
>>> had this working but now when I send a message it goes to the former
>>> rather than the latter. Can someone shed some light on this for me?
>>>        
>> Have you configured a defaultdomain? If so, mailboxes in that domain
>> wouldn't be delivered to the domain hierarchy I don't think.
>>
>> If not, can you post your configuration, and what version you're using?
>> Also, you might want to take a look at your SMTP server configuration,
>> and
>> verify that it is not stripping off your domain before delivering to
>> cyrus.
>>
>>      
> Hi Dan, I use sendmail for smtp and have verified that it is not
> stripping off the domain by having to patch it to not do that and also
> have made packet captures to verify that the domain does not get stripped.
>
> Here is my /etc/imapd.conf config:
>
> cat /etc/imapd.conf
> configdirectory: /var/lib/imap
> partition-default: /var/spool/imap
> admins: cyrus postmaster
> sievedir: /var/lib/imap/sieve
> sendmail: /usr/sbin/sendmail
> hashimapspool: true
> sasl_pwcheck_method: saslauthd
> #sasl_mech_list: PLAIN
> #sasl_pwcheck_method: auxprop saslauthd
> #sasl_auxprop_plugin: sasldb
> #sasl_pwcheck_method: auxprop saslauthd
> #sasl_auxprop_plugin: sasldb
> #
> # The mech list is what is offered by the imap server.
> # I use TLS which encrypts the login and allows us to
> # use LOGIN and PLAIN securely.
> # If we want to be able to use encrypted passwords along
> # with TLS, you will need CRAM-MD5.
> # This setup utilizes TLS to secure all mechs within a TLS
> # session.
> sasl_mech_list: LOGIN PLAIN DIGEST-MD5
>
> # This denies using plaintext without TLS.
> allowplaintext: 0
>
> # This option allows us to have mailboxes at the same level as the
> # INBOX instead of a subdirectory of it.
> altnamespace: no
>
> # No anonymous logins
> allowanonymouslogin: no
>
> # Set default Min/Max encryption level our server will accept
> sasl_minimum: 128
> sasl_maximum_layer: 512
>
> # This is so we can have users with dots in their address
> # e.g. john.public@<yourserver>.<tld>.
> unixhierarchysep: yes
>
> virtdomains: userid
>
> # This is for the IMAP TLS certificates.
> tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
> tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
> tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
>
>
>
> # Autocreate Mailboxes
> autocreatequota: 524288
> createonpost: 1
> autocreateinboxfolders: Draft|Sent|Trash|Spam|Nonspam
> autosubscribeinboxfolders: Draft | Sent | Trash | Spam | Nonspam
> sieve_extensions: fileinto reject vacation imapflags notify envelope
> include body relational regex subaddress copy
> autocreate_sieve_script: /var/lib/imap/sieve/global/spam.script
> autocreate_sieve_compiledscript: /var/lib/imap/sieve/global/default.bc
> duplicatesuppression: 0
> lmtp_downcase_rcpt: true
>
>
> Thanks for the help,
>
> Jon
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
>    
I found my error. In my sendmail.mc file I needed to add my domain as 
one that cyrusv3 delivers to.

Sorry for the noise,

Jon


More information about the Info-cyrus mailing list