imapd 2.4.6 sendmail and rtcyrus v3

Mogens Melander mogens at fumlersoft.dk
Wed Apr 13 07:50:51 EDT 2011


Hi list

I'm having problems getting sendmail, rtcyrus v3 and imap server
to play together.

I can log in to the imap server, no problem.

when sending mail to testuser at example.com i get error telling
me "No such user at example.com" wich is from virtusertable.

The real user/domain is substituted by testuser at example.com

Any idea what i'm missing? I can't think of any thing else to test.

My virtusertable has these mappings:

postmaster at example.com	testuser at example.com
webmaster at example.com	testuser at example.com
domain at example.com		testuser at example.com
@example.com			error:nouser 550 No such user at example.com

Testing map's in sendmail seems to be OK.

# echo '/map virtuser postmaster at example.com' | sendmail -bt

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> map_lookup: virtuser (postmaster at example.com) returns testuser at example.com (0)

# echo '/map cyrus testuser at example.com' | sendmail -bt

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> map_lookup: cyrus (testuser at example.com) returns testuser at example.com (0)

My system is Zenwalk 6.2/6.4
Linux 2.6.30.5 #1 SMP PREEMPT Mon Sep 14 11:49:43 CEST 2009
i686 Intel(R) Pentium(R) D CPU 2.80GHz GenuineIntel GNU/Linux

sendmail 8.14.4 patched med anfi/cyrusv3

sendmail.mc
--------------------------------------------------
divert(-1)dnl
##
## example.mc sendmail mc file
## generated by build-sendmail-rtcyrus.sh
##
divert(0)dnl
VERSIONID(`$Id: example.mc,v 2.0 (rtcyrusv3) 2011/04/11 19:30 testuser Exp $')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
#
dnl ## FEATURE(`use_cw_file')dnl
FEATURE(`access_db')dnl
FEATURE(`virtusertable')dnl
FEATURE(`blacklist_recipients')dnl
dnl ## FEATURE(`preserve_local_plus_detail')dnl
FEATURE(nocanonify)dnl
FEATURE(always_add_domain)dnl
#
dnl ## Cyrus imap config
#
LOCAL_CONFIG
dnl ## list of virtual cyrus domains
dnl ## C{VCyrusDomains} example.com example.net
F{VCyrusDomains}/etc/mail/cyrus-virtual-domains
dnl # socket map socket location serviced by cyrus
define(`SMMAP_SOCKET',`/var/imap/socket/smmapd')dnl
dnl # lmtp socket location serviced by cyrus
define(`CYRUS_LMTP_SOCKET',`/var/imap/socket/lmtp')dnl
#
FEATURE(`anfi/vcyrus')dnl
#
MAILER(`anfi/cyrusv3')dnl
MAILER(smtp)dnl
MAILER(local)dnl
-------------------------------------------------------

cyrus-imapd 2.4.6 patched med:

cyrus-imapd-2.4.4-autocreate-0.10-0.patch
cyrus-imapd-2.4.4-autosieve-0.6.0.patch

name       : Cyrus IMAPD
version    : v2.4.6 35e0e72f 2010-12-21
vendor     : Project Cyrus
support-url: http://cyrusimap.web.cmu.edu
os         : Linux
os-version : 2.6.30.5
environment: Built w/Cyrus SASL 2.1.23
             Running w/Cyrus SASL 2.1.23
             Built w/Sleepycat Software: Berkeley DB 4.4.20: (January 10, 2006)
             Running w/Sleepycat Software: Berkeley DB 4.4.20: (January 10, 2006)
             Built w/OpenSSL 0.9.8r 8 Feb 2011
             Running w/OpenSSL 0.9.8r 8 Feb 2011
             Built w/zlib 1.2.5
             Running w/zlib 1.2.5
             CMU Sieve 2.4
             TCP Wrappers
             mmap = shared
             lock = fcntl
             nonblock = fcntl
             idle = poll

imapd.conf
---------------------------------------------------
auth_mech:				unix
# -- AutoCcreate Stuff --------------
autocreatequota:		50000
createonpost:			no
autocreateinboxfolders:		Sent|Trash|Draft
autosubscribeinboxfolders:	Sent|Trash|Draft
# -----------------------------------
unixhierarchysep:		yes
altnamespace:			yes
fulldirhash:			yes
lmtp_downcase_rcpt:		yes
sieve_maxscriptsize:	320
configdirectory:		/var/imap/config
partition-default:		/var/imap/mail
lmtpsocket:				/var/imap/socket/lmtp
sievedir:				/var/imap/sieve
sieveusehomedir:		false
annotation_db:			skiplist
duplicate_db:			skiplist
mboxlist_db:			skiplist
ptscache_db:			skiplist
quota_db:				skiplist
seenstate_db:			skiplist
lscache_db:				skiplist
subscription_db:		skiplist
tlscache_db:			skiplist
#user_deny.db:			skiplist
hashimapspool:			yes
sendmail:				/usr/sbin/sendmail
admins:					cyrus
postmaster:				testuser at example.com
#defaultdomain:			trader.com
virtdomains:			yes
#servername:				example.com
allowanonymouslogin:	no
allowplaintext:			yes
tls_ca_file:			/var/imap/cert/ca.crt
tls_cert_file: 			/var/imap/cert/cyrus.example.com.crt
tls_key_file: 			/var/imap/cert/cyrus.example.com.key
tls_session_timeout:	1440
sasl_auto_transition:	yes
sasl_pwcheck_method:	auxprop
sasl_mech_list:			plain
sasl_auxprop_plugin:	sql
sasl_sql_engine:		mysql
sasl_mysql_verbose:		yes
sasl_sql_verbose:		yes
#sasl_sql_hostname:		localhost
sasl_default_realm:		example.com
sasl_sql_user:			cyrus
sasl_sql_passwd:		5l1nger
sasl_sql_hostname:		localhost
sasl_sql_database:		cyrus
sasl_sql_select:		select passwd from users where login='%u' and
(if('%u'='cyrus',domain='',domain='%r'))
sasl_sql_insert:		insert into users(domain, login, passwd) values('%r', '%u', '%v')
sasl_sql_update:		update users set passwd='%v' where login='%u' and domain='%r'
-----------------------------------------


-- 
Later

Mogens Melander
+66 8701 33224


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Info-cyrus mailing list