SV: SV: Virtual domains, user@domain.com: Mailbox unknown

Mike O'Rourke mjoop at curia.op.org
Tue Feb 17 12:51:10 EST 2004


>>> "Henrik Troeng" <henrik at troeng.com> 02/17/04 02:25pm >>>
>> >>> "Henrik Troeng" <henrik at troeng.com> 02/16/04 07:33pm >>>
>> >
>> >>Hi all,
>> >>
>> >>I have a problem, I use multiple domains but for users I create
with
>> >the
>> >>domain specified, for example postmaster at htc.troeng.com it can't
>> >receive
>> >>mail. When I try to send to this user I get back a reply from
>> >Mailer-Daemon
>> >>that says "550-Mailbox Unknown". Either there is no mailbox
>> >associated
>> >>550-name or you don't have authorization to see it".
>> >>
>> >>If I create the user "user.postmaster" it works fine, but the
user
>> >>"user.postmaster at htc.troeng.com" wont accept any mail.
>> >>
>> >>Here is my imapd.conf:
>> >>
>> >>configdirectory: /var/imap
>> >>partition-default: /var/spool/imap
>> >>admins: cyrus root Henrik
>> >>sasl_pwcheck_method: saslauthd
>> >>sasl_mech_list: PLAIN LOGIN
>> >>sendmail: /usr/sbin/sendmail
>> >>servername: htc.troeng.com
>> >>virtdomains: yes
>> >>defaultdomain: troeng.com
>> >>
>> >>I have set up the domain in the local-host-names config file for
>> >sendmail.
>> >>
>> >>Here is the error message:
>> >>
>> >>"The original message was received at Mon, 16 Feb 2004 12:47:04
>> +0100
>> >>from lmdeliver01.st1.spray.net [212.78.202.210]
>> >>
>> >>   ----- The following addresses had permanent fatal errors -----
>> >>
>> >>root
>> >>
>> >>    (reason: 550-Mailbox unknown.  Either there is no mailbox
>> >associated with this)
>> >>
>> >>    (expanded from: <postmaster at htc.troeng.com>)
>> >>
>> >>   ----- Transcript of session follows -----
>> >>
>> >>... while talking to localhost:
>> >>
>> >>>>> DATA
>> >>
>> >><<< 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
>> >>
>> >>550 5.1.1 root... User unknown
>> >>
>> >><<< 503 5.5.1 No recipients
>> >>
>> >>"
>> >>Henrik
>> >
>> >Hi Henrik,
>> >
>> >You evidently have postmaster aliased to root in /etc/mail/aliases
(a
>> >common; nay default alias in sendmail), so sendmail will never try
to
>> >deliver to postmaster, but only to root (as evidenced by the
>> "(expanded
>> >from: <postmaster at htc.troeng.com>)" line).
>> >
>> >Either change the alias to send it to the correct user (don't
forget
>> to
>> >re-build the aliases database!), or delete it (ditto on the "don't
>> >forget") and let it go to the postmaster mailbox you have created.
>> >
>> >Mike.
>> >---
>> >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

>> >
>> >
>> >I'm sorry to say, but this has nothing to do with my problem. I
have
>> the
>> >same problem with other usernames also.. So this is not just a
>> postmaster
>> >problem.
>> >To be sure, I did test what you wrote, it made no difference...
>> >
>> >What can be wrong?
>> >
>> >I did check the imapd.log file and got some output:
>> >
>> >about to exec /usr/cyrus/bin/lmtpd
>> >executed
>> >accepted  connection
>> >lmtp connection preauth'd as postman
>> >append_check() of 'user.postmaster' failed (Mailbox does not
exist)
>> >
>> >//Henrik
>> >
>> 
>> Hi Henrik,
>> 
>> Sendmail (procmail?) does not seem to be sending the domain (the
>> "@htc.troeng.com" part) along with the username (evidenced by the
lmtp
>> error -- it _should_ be looking for
htc.troeng.com!user.postmaster).
>> 
>> Please post your sendmail's .mc file and, if you have made any
changes
>> to it, your path/to/sendmail/src/cf/mailer/cyrusv2.m4 file. Also,
have
>> you made any changes to sendmail.cf? If so, please tell us what
these
>> were.
>> 
>> Mike.
>> 
>> 
>> 
>> ---
>> 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 
>
>
>Hi again,
>
>Thanks for your response.
>
>Here is my sendmail.mc file following. 
>
>I haven't done any changes to sendmail.cf.
>
>I m a bit confused about the cyrusv4.m4 file, can you maybe explain
where it
>comes into the picture (I m a real newbie on this, sorry if I look
stupid
>;).
>
>Well, here is the sendmail.mc file:

 -- snip --

>define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl

 -- snip --

>FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl

 -- snip --

Hi Henrik,

I do not use procmail, but if you need it, and are using it to deliver
mail to cyrus using cyrus' deliver program, you need to make sure that
it is not stripping off the @... part of the recipient address.

>MAILER(cyrusv2)dnl

This is where the cyrusv2.m4 file gets included. On your system, it
should be in /usr/share/sendmail-cf/mailer it would seem.

>MAILER(smtp)dnl
>define(confLOCAL_MAILER, cyrusv2)dnl

This last line (define(confLOC...) should come before any of the
"MAILER" lines.

I also have a "nocanonify" option in my .mc, though I am not sure it is
really necessary.

To eliminate problems, you might try commenting out the procmail lines
(with a "dnl " in front of them) and re-building your sendmail.cf file
and restart sendmail. Make sure that in your sendmail.cf, in the
Mcyrusv2 section, the S=... line reads:

 S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,

and that the last line of the mailer (two lines below that) reads:

 A=FILE /var/imap/socket/lmtp

See if you can get sendmail --> lmtp --> cyrus-imap working and then
put procmail back in the mix and see what happens.

Mike.
---
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




More information about the Info-cyrus mailing list