imapd 2.4.6 sendmail and rtcyrus v3
Mogens Melander
mogens at fumlersoft.dk
Wed Apr 13 10:55:55 EDT 2011
On Wed, April 13, 2011 16:30, Joseph Brennan wrote:
>
>
> --On Wednesday, April 13, 2011 16:14 +0200 Mogens Melander
> <mogens at fumlersoft.dk> wrote:
>
>> I can se that postmaster at example.com resolves to testuser at example.com
>> when testing on localhost:
>>
>># echo '/map virtuser postmaster at example.com' | sendmail -bt
>>
>
>
> Sure, but then resolve:-
>
> echo '/map virtuser testuser at example.com' | sendmail -bt
>
> because that's what sendmail does. For this to work you'll need to
> define testuser at example.com going to some address not @example.com.
>
> Joseph Brennan
> Columbia University Information Technology
Ok, testuser at example.com is a virtual user in imap's world, and i
would expect sendmail to resolve using SMMAP_SOCKET
# 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)
I have a feeling this might be a problem in my sendmail.mc file:
divert(0)dnl
VERSIONID(`$Id: trader-internet.mc,v 2.0 (rtcyrus3) 2011/04/11 19:30 mogens melander Exp $')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
#
FEATURE(`access_db')dnl
FEATURE(`virtusertable')dnl
FEATURE(`blacklist_recipients')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
--
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