On Tue, 21 Jul 2015, Andrea Venturoli wrote: > Hello. > > I've been using Cyrus IMAP for years, but I'n now struggling with > virtual domains for the first time. > This is a new server, so there are no compatibility issues and I don't > need a default domain. > I've got most of it working, but I still have two questions... > > > > First, how to configure sendmail? > Forgive me for my limited understanding, but the docs only briefly state: >> You'll have to use the Cyrus mailer in LMTP mode, and you'll have to change >> the mailer flags so that it provides the full domain while communicating via >> LMTP. Specifically these changes: >> >> S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP > > I tried with "define(`CYRUSV2_MAILER_FLAGS',`S=EnvFromSMTP/HdrFromSMTP, > R=EnvToSMTP')", but this does not work. > Does this mean I need to modify cyrusv2.m4 (which I'd need to redo after > every upgrade)? > Right now I copied its content into my sendmail config file and modified > it, but I don't feel this is a good solution... > Any other way?
You might want to define new mailer. I have cyrusv2domain.cf, which does not strip away domain part of the email address. 1. Generate suitable sendmail.cf from sendmail.mc I had to add these lines: # FEATURE(`virtusertable')dnl # VIRTUSER_DOMAIN_FILE(`MAIL_SETTINGS_DIR`'virtuser-domains')dnl # FEATURE(`mailertable')dnl # MAILER(`cyrusv2domain')dnl 2. Define the domain to mailertable.txt: example.com cyrusv2domain:[localhost] 3. Define example.com as virtual-domain, by adding it to virtuser-domains example.com 4. Add addresses or aliases to virtual user table. firstname.lastn...@exmaple.com u...@example.com Some additional information can also be found at: http://jmaimon.com/sendmail/anfi.homeunix.net/sendmail/#cyrus > Second question: access to "Other Users" does not seem to work properly. > I'm used to give any user access to any other user mailbox through > cyradm's "sam" command, but in this case it seems this is not enough. > > I have: >> lam user....@mydomain.it >> x...@mydomain.it lrswipkxtecdan >> myuser lrted > > However, logging in as "myuser" does not show x...@mydomain.it: >> # telnet localhost imap >> Trying ::1... >> Trying 127.0.0.1... >> Connected to localhost. >> Escape character is '^]'. >> * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=SCRAM-SHA-1 >> AUTH=DIGEST-MD5 AUTH=CRAM-MD5 AUTH=NTLM AUTH=LOGIN AUTH=PLAIN SASL-IR] >> wilbur.aviozzano-guglielmozamboni.it Cyrus IMAP 2.5.4 server ready >> . login myuser XXXXXXXXXXX >> . OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxten QUOTA >> MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN >> MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY >> SORT=UID THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE >> ANNOTATE-EXPERIMENT-1 METADATA LIST-EXTENDED LIST-STATUS LIST-MYRIGHTS >> WITHIN QRESYNC SCAN XLIST XMOVE MOVE SPECIAL-USE CREATE-SPECIAL-USE URLAUTH >> URLAUTH=BINARY LOGINDISABLED COMPRESS=DEFLATE X-QUOTA=STORAGE >> X-QUOTA=MESSAGE X-QUOTA=X-ANNOTATION-STORAGE X-QUOTA=X-NUM-FOLDERS IDLE] >> User logged in >> SESSIONID=<wilbur.aviozzano-guglielmozamboni.it-14807-1437466138-1-2176882649663833723> >> . LIST "Other Users" * >> . OK Completed (0.000 secs) > > Why? How do I solve? > > > > bye & Thanks > av. > ---- > Cyrus Home Page: http://www.cyrusimap.org/ > List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ > To Unsubscribe: > https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus > > -- Leena Heino University of Tampere / Computer Centre ( liinu at uta.fi ) ( http://www.uta.fi/laitokset/tkk ) ---- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus