Problem with Sendmail 8.13.0 / Cyrus Imap 2.2.6 and virtual hosting

Andrzej Filip anfi at
Sun Jul 11 01:04:21 EDT 2004

Jesper K. Pedersen wrote:
> I am trying to get a system up and running with Sendmail to run with
> cyrus imap using virtual hosting of several domains.
> I have created my user in the sasldb and a mailbox in the cyrus imap
> database and it tests out okey using imtest -u jesper at -a
> jesper at localhost
> I am able to send mail through the sendmail daemon to other servers but
> when I try to send to jesper at it wont deliver.
> I have narrowed the problem down to sendmail is trying to deliver to the
> user "jesper" instead of "jesper at"
> This is verified by running a :
> sendmail -d60.1 -bv jesper at
> map_lookup(dequote, root) => NOT FOUND (0)
> map_lookup(host, => (0)
> map_lookup(dequote, jesper) => NOT FOUND (0)
> jesper at deliverable: mailer cyrusv2, user jesper
> Where the cyrus expect the user to be jesper at
> My sendmail local-host-names contain the "" entry.
> My looks like this:
> divert(-1)dnl
> include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
> VERSIONID(`SolNet Data Service')dnl
> OSTYPE(`linux')dnl
> define(`confDEF_USER_ID',``8:13'')dnl
> define(`confTO_CONNECT', `1m')dnl
> define(`confTRY_NULL_MX_LIST',true)dnl
> define(`confDONT_PROBE_INTERFACES',true)dnl
> define(`ALIAS_FILE', `/etc/aliases')dnl
> define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
> define(`confPRIVACY_FLAGS',
> `authwarnings,novrfy,noexpn,restrictqrun')dnl define(`confAUTH_OPTIONS',
> `A')dnl define(`confCACERT_PATH', `/etc/mail/certs')dnl
> define(`confCACERT', `/etc/mail/certs/cacert.pem')dnl
> define(`confSERVER_CERT', `/etc/mail/certs/sendmail.pem')dnl
> define(`confSERVER_KEY', `/etc/mail/certs/sendmail.pem')dnl
> define(`confCLIENT_CERT', `/etc/mail/certs/sendmail.pem')dnl
> define(`confCLIENT_KEY', `/etc/mail/certs/sendmail.pem')dnl
> define(`confTRUSTED_USER', `cyrus')dnl
> define(`confLOCAL_MAILER', `cyrusv2')dnl
> GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl
> FEATURE(use_cw_file)dnl
> FEATURE(use_ct_file)dnl
> FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
> FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
> FEATURE(`genericstable', `hash -o /etc/mail/genericstable.db')dnl
> FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
> FEATURE(`blacklist_recipients')dnl
> FEATURE(local_lmtp)dnl
> EXPOSED_USER(`root')dnl
> MAILER(local)dnl
> MAILER(cyrusv2)dnl
> MAILER(smtp)dnl
> When I try to mail to the user jesper at I get this in my imap
> debuglog:
> Jul 11 04:08:57 rhea lmtpunix[12743]: executed
> Jul 11 04:08:57 rhea lmtpunix[12743]: accepted connection
> Jul 11 04:08:57 rhea lmtpunix[12743]: lmtp connection preauth'd as
> postman Jul 11 04:08:57 rhea lmtpunix[12743]: verify_user(user.jesper)
> failed: Mailbox does not exist
> Any idea of how to set up sendmail so it will send the full name and
> address to cyrus so you can have virtual hosting without having the
> "worry" about usernames?
> so jesper at , jesper at someoter.domain ... isnt a problem and where
> you dont have to use the sendmail alias to create new user names for all
> the users?
> This problem have troubled me for several days now so any ideas is
> greatly appreciated.

See "Configuring Sendmail" section in "Configuring (Cyrus) Virtual Domains":
Have you applied it ?

* Do not make cyrusv2 local mailer [no define(`confLOCAL_MAILER',`cyrusv2']
Sendmail strips domain before selecting local mailer
* upatched cyrusv2 mailer provided in sendmail.orf distribution does the 
stripping too

* Insted of patching cf/mailer/cyrusv2.m4 you can you its new version with 
added cyrusv2d mailer [no damin stripping]

If you want sendmail to check if cyrus mailbox exist when accepting "RCPT TO:" 
then take a look at
* Real Time Cyrus (and Sendmail) Integration Version 2

I suggest you "mailertable" integration version

P.S. 2
When posting a query to multiple forums [this list and c.m.sendmail] please 
indicate it in the queries.

Andrzej [en:Andrew] Adam Filip anfi at anfi at
Cyrus Home Page:
Cyrus Wiki/FAQ:
List Archives/Info:

More information about the Info-cyrus mailing list