Hello Andrzej,
Andrzej Filip wrote:
[chomp]
My recommendation:
Implement http://anfi.webhop.org/sendmail/rtcyrus2.html solution in its mailertable version [it rejects messages to non existing cyrus mailboxes], I can easily modify it to make it support "per domain catch remaining".
I have now tried most of your suggestions, as well as numerous other things, and I now have the following setup :
I'm using your cyrsv2d mailer copied over the top of the sendmail cyrusv2.mc file
My sendmail.mc file is :
VERSIONID(`$Id: generic-bsd4.4.mc,v 8.10 1999/02/07 07:26:02 gshapiro Exp $')
FEATURE(always_add_domain)dnl
FEATURE(mailertable, hash /etc/mail/mailertable)dnl
FEATURE(virtusertable, hash /etc/mail/virtusertable)dnl
FEATURE(access_db, hash -T<TMPF> /etc/mail/access)dnl
DAEMON_OPTIONS(`Name=MTA-v4, Family=inet')
DAEMON_OPTIONS(`Name=MTA-v6, Family=inet6')
define(`confME_TOO', True)dnl
define(`confTRUSTED_USERS', majordom)dnl
OSTYPE(bsd4.4)dnl DOMAIN(generic)dnl MAILER(local) MAILER(smtp) MAILER(cyrusv2)
My mailertable : foo.com.au cyrusv2d:/var/imap/socket/lmtp bl.echidna.id.au cyrusv2d:/var/imap/socket/lmtp
My virtusertable :
[EMAIL PROTECTED] [EMAIL PROTECTED] @foo.com.au [EMAIL PROTECTED]
My aliases file :
postmaster: [EMAIL PROTECTED] root: [EMAIL PROTECTED] carl: [EMAIL PROTECTED]
local-host-names : rollcage2.bl.echidna.id.au
The relevant bits of imapd.conf :
unixhierarchysep: yes virtdomains: userid defaultdomain: bl.echidna.id.au
Everything works, except the virtusertables. Ie: I can send mail to [EMAIL PROTECTED] and it works fine, the aliases entries send local mail to [EMAIL PROTECTED] or [EMAIL PROTECTED] as per the aliases file.
I couldn't find anything on your site that seemed to offer the same functionality as virtusertables. Googling around seems to suggest that sendmail does mailertables first, and doesn't look at the virtusertables with the above setup. I don't know if I completely understood your localtable setup, but it appeared to me to be more of an aliases workalike than a virtusertable workalike, and I wasn't sure if it worked with or clashed with virtual hosting?
The only other info I've been able to find is someone else trying to do the same thing as me (I think!) :
http://www.mail-archive.com/[EMAIL PROTECTED]/msg36862.html
So ... I *think* what I need to be able to do is get sendmail to run the virtusertable, then the mailertable (and thus pass the mail to cyrusv2d via the mailertable). Is this possible? Does cyrus imapd offer any form of aliasing within itself instead of using a virtusertable through sendmail?
Thanks again for your time!
Carl
--- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html