"@" in mailbox names

Edward Rudd eddie at omegaware.com
Tue Jul 29 13:51:25 EDT 2003


On Tue, 2003-07-29 at 08:31, Igor Brezac wrote:
> On Tue, 28 Jul 2003, Edward Rudd wrote:
> 
> > you need to store the username map in the LDAP as
> > daniel\\\@test4.mydomain.com
> > the @ needs to be escaped..
> 
> Why?  Unless Daniel uses lmtp auth, ldap is not consulted during
> lmtp delivery.
I am assuming his MTA is using LDAP as the backend for the virtual map
for exim..As that is what I use in my setup with postfix using LDAP as
the backend for the virtual delivery table map. 
He still needs to escape the @ in whatever he has exim configured to use
to map the user at dom.com so it will be mailed to
user\\\@dom.com at mailserver.host.name when it is delivered to LMTP.

> 
> > On Mon, 2003-07-28 at 21:56, Daniel Lawson wrote:
> > > I want to use the @ character in a mailbox name in cyrus 2.1.x
> > >
> > > I have a virtual domain setup, using LDAP as the backend, and exim as
> > > the MTA. Everything works fine if I use usernames of the format
> > > user__domain_part1_part2, however that isn't very nice for end users.
> > > I'd much prefer to use 'user at domain.part1.part2' as the username. Using
> > > unixhierarchysep I can use '.' in the username, which is the first step,
> > > but it appears to choke on having an '@' in the username.
> > >
> > > Delivery to  'daniel_test4.mydomain.com' works just fine.
> > >
> > >
> > > Is there any particular reason that Cyrus doesn't allow delivery to an
> > > address with an '@' in it? I've tried googling for this, but its tricky
> > > doing a search for '@' on mailing lists... :)
> > >
> > > About the only thing I can think off of the top of my head is that
> > > Kerberos principals have an @ in them.
> > >
> > > Thanks,
> > >
> > > Daniel
> > >
> > > Below are some notes on my setup
> > >
> > > Runnig cyrus  2.1.13 (from debian unstable, backported to debian woody).
> > >
> > > #cyrdeliver daniel at test4.mydomain.com
> > > daniel at test4.mydomain.com: Mailbox does not exist
> > >
> > > #cyrdeliver -l
> > > 220 smog LMTP Cyrus v2.1.13-IPv6-Debian-2.1.13-0woody.4.0 ready
> > > LHLO smog
> > > 250-smog
> > > 250-8BITMIME
> > > 250-ENHANCEDSTATUSCODES
> > > 250-PIPELINING
> > > 250-SIZE
> > > 250-AUTH EXTERNAL
> > > 250 IGNOREQUOTA
> > > RSET
> > > 250 2.0.0 ok
> > > MAIL FROM:<root> AUTH=<>
> > > 250 2.1.0 ok
> > > RCPT TO:<daniel at test4.mydomain.com>
> > > 550-Mailbox unknown.  Either there is no mailbox associated with this
> > > 550-name or you do not have authorization to see it.
> > > 550 5.1.1 User unknown
> > >
> > > (cyradm output)
> > > localhost> lam user/daniel at test4.mydomain.com
> > > mail lrswipcda
> > > anyone lrswipcda
> > > daniel at test4.mydomain.com lrswipcda
> > > mailadmin lrswipcda
> > >
> > > strace'ing cyrdeliver gives basically the same as the output from
> > > cyrdeliver -l above - i copied the commands send via lmtp as read from
> > > the strace.
> >
-- 
Edward Rudd <eddie at omegaware.com>
Home Page <http://urkle.drip.ws/>





More information about the Info-cyrus mailing list