<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Mogens,<br>
<br>
I have almost the same config as you do. Except for not using
virtusertable. So I just ran a little test and got exactly the same
result that you did: it looks like virtusertable is never checked
and delivery fails. <br>
<br>
I don't have a solution for you (yet), maybe someone on this list
does, but I do have a workaround if you need it. I also use userdb.
Adding the same entry you use in userdb solves the problem for me.
Delivery goes smoothly. <br>
<br>
HTH<br>
Stefan<br>
<br>
<br>
<div class="moz-cite-prefix">On 06/13/2016 01:45 PM, Mogens Melander
via Info-cyrus wrote:<br>
</div>
<blockquote
cite="mid:CAOZP1Tnu8qVhTcCaK5M5T3f+c_445F+NuwWA6=PR_9MYZxMgQg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>This is driving me nuts. I really need some help here.<br>
<br>
</div>
<div>I'm running a test sendmail (8.15.2) and a cyrus-imapd
2.5.7 on<br>
slackware 14.1 running in a virtualbox.<br>
<br>
</div>
<div><a moz-do-not-send="true" href="mailto:joe@example.com">joe@example.com</a>
is a valid user on cyrus, not a login (linux) user.<br>
<br>
</div>
<div>From cyradm:<br>
<br>
localhost.localdomain> lm<br>
user/joe/<a moz-do-not-send="true"
href="mailto:Drafts@example.com">Drafts@example.com</a>
(\HasNoChildren) <br>
user/joe/<a moz-do-not-send="true"
href="mailto:Sent@example.com">Sent@example.com</a>
(\HasNoChildren) <br>
user/joe/<a moz-do-not-send="true"
href="mailto:Trash@example.com">Trash@example.com</a>
(\HasNoChildren) <br>
user/<a moz-do-not-send="true" href="mailto:joe@example.com">joe@example.com</a>
(\HasChildren) <br>
<br>
</div>
<div>I have an entry in virtusertable for <a
moz-do-not-send="true" href="mailto:domain@example.com"><a class="moz-txt-link-abbreviated" href="mailto:domain@example.com">domain@example.com</a></a>
mapping to<br>
<a moz-do-not-send="true" href="mailto:joe@example.com">joe@example.com</a><br>
<br>
<a moz-do-not-send="true" href="http://example.com">example.com</a>
is in local-host-names file.<br>
<br>
</div>
I have shaved my <a moz-do-not-send="true"
href="http://cyrusv2.mc">cyrusv2.mc</a> down to a bare
minimum, and the relevant<br>
</div>
section in <a moz-do-not-send="true" href="http://sendmail.cf">sendmail.cf</a>
show the difference between cyrusv2.m4 and<br>
<div>my <a moz-do-not-send="true" href="http://cyrusv2.mc">cyrusv2.mc</a>
(R=EnvToL/HdrToL => R=EnvToSMTP)<br>
<br>
-------<br>
Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m,<br>
S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL, E=\r\n,<br>
T=DNS/RFC822/SMTP,<br>
A=FILE /var/imap/socket/lmtp<br>
<br>
Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m,<br>
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,<br>
T=DNS/RFC822/SMTP,<br>
A=FILE /var/imap/socket/lmtp<br>
------<br>
</div>
<div><br>
This is what my current <a moz-do-not-send="true"
href="http://cyrusv2.mc">cyrusv2.mc</a> look like:<br>
<br>
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl<br>
VERSIONID(`@(#)<a moz-do-not-send="true"
href="http://cyrusv2.mc">cyrusv2.mc</a> fumlersoft ver 1.1
2016-06-13')dnl<br>
OSTYPE(linux)dnl<br>
DOMAIN(generic)dnl<br>
<br>
FEATURE(`use_cw_file')dnl /etc/mail/local-host-names<br>
FEATURE(`access_db', `hash -T<TMPF>
/etc/mail/access')dnl<br>
FEATURE(`virtusertable', `hash /etc/mail/virtusertable')dnl<br>
<br>
define(`confBIND_OPTS', `-DNSRCH -DEFNAMES')dnl<br>
define(`confLOCAL_MAILER',`cyrusv2')dnl <br>
<br>
MAILER(`smtp')dnl<br>
MAILER(`local')dnl<br>
MAILER(`cyrusv2')dnl<br>
<br>
MAILER_DEFINITIONS<br>
Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m,<br>
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,<br>
T=DNS/RFC822/SMTP,<br>
A=FILE /var/imap/socket/lmtp<br>
<br>
<br>
</div>
<div>When checking address test:<br>
<br>
echo '/map virtuser <a moz-do-not-send="true"
href="mailto:domain@example.com">domain@example.com</a>' |
sendmail -bt<br>
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)<br>
Enter <ruleset> <address><br>
(0)p_lookup: virtuser (<a moz-do-not-send="true"
href="mailto:domain@example.com">domain@example.com</a>)
returns <a moz-do-not-send="true"
href="mailto:joe@example.com">joe@example.com</a><br>
<br>
</div>
<div>It looks promising, but then a ruleset 3,0 test<br>
<br>
echo "3,0 <a moz-do-not-send="true"
href="mailto:domain@example.com">domain@example.com</a>" |
sendmail -bt<br>
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)<br>
Enter <ruleset> <address><br>
> canonify input: domain @ example . com<br>
Canonify2 input: domain < @ example . com ><br>
Canonify2 returns: domain < @ example . com . ><br>
canonify returns: domain < @ example . com . ><br>
parse input: domain < @ example . com . ><br>
Parse0 input: domain < @ example . com . ><br>
Parse0 returns: domain < @ example . com . ><br>
ParseLocal input: domain < @ example . com . ><br>
ParseLocal returns: domain < @ example . com . ><br>
Parse1 input: domain < @ example . com . ><br>
Recurse input: joe @ example . com<br>
canonify input: joe @ example . com<br>
Canonify2 input: joe < @ example . com ><br>
Canonify2 returns: joe < @ example . com . ><br>
canonify returns: joe < @ example . com . ><br>
parse input: joe < @ example . com . ><br>
Parse0 input: joe < @ example . com . ><br>
Parse0 returns: joe < @ example . com . ><br>
ParseLocal input: joe < @ example . com . ><br>
ParseLocal returns: joe < @ example . com . ><br>
Parse1 input: joe < @ example . com . ><br>
Parse1 returns: $# cyrusv2 $: joe<br>
parse returns: $# cyrusv2 $: joe<br>
Recurse returns: $# cyrusv2 $: joe<br>
Parse1 returns: $# cyrusv2 $: joe<br>
parse returns: $# cyrusv2 $: joe<br>
<br>
</div>
<div>When sending a mail to <a moz-do-not-send="true"
href="mailto:domain@example.com">domain@example.com</a> I
get in the logfile:<br>
<br>
master[22245]: about to exec /usr/cyrus/bin/lmtpd<br>
lmtpunix[22245]: SQL backend defaulting to engine 'mysql'<br>
lmtpunix[22245]: executed<br>
lmtpunix[22245]: accepted connection<br>
lmtpunix[22245]: connection from [unix socket] preauth'd as
postman<br>
lmtpunix[22245]: verify_user(<a moz-do-not-send="true"
href="http://slack-14-1.fumlersoft.dk">slack-14-1.fumlersoft.dk</a>!user.joe)
failed: Mailbox does not exist<br>
<br>
</div>
<div>I'm totally lost, and have no idea where to look.<br>
<br>
</div>
<div>Regards<br>
</div>
<div>Mogens<br>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">----
Cyrus Home Page: <a class="moz-txt-link-freetext" href="http://www.cyrusimap.org/">http://www.cyrusimap.org/</a>
List Archives/Info: <a class="moz-txt-link-freetext" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
================================================================
Stefan Suurmeijer
Raptor Network & Web solutions
Dolomietstraat 46
NL-9743 VB Groningen, The Netherlands
tel: (+31) 50 363 9215 / (+31) 6 52 067 168 (cell)
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:stefan@raptorweb.nl">stefan@raptorweb.nl</a>
================================================================
PGP fingerprint: 2CC6 5313 2F58 862F 1542 AECF 2385 6F8A BC45 9F86
Always acknowledge a fault. This will throw those in authority off their guard and give you an opportunity to commit more - Mark Twain
</pre>
</body>
</html>