<div dir="ltr"><div><div><div><div><div><div>Stefan,<br><br></div>Thanks for your suggestion.<br><br></div>The virtusertable is actually being used in my config. I think my problem is in the cyrusv2 definition.<br><br></div><div>My virtusertable contains a mapping <a href="mailto:domain@example.com">domain@example.com</a> <a href="mailto:joe@example.com">joe@example.com</a><br><br></div>The domain part of the address is getting stripped off, and the servers host.domain.tld added, before talking to imapd over lmtp socket.<br><br># sendmail -bv <a href="mailto:domain@example.com">domain@example.com</a><br>domain@example.com... deliverable: mailer cyrusv2, user <a href="mailto:joe@slack-14-1.fumlersoft.dk">joe@slack-14-1.fumlersoft.dk</a><br><br></div>Suggestions welcome :)<br><br></div>Regards<br></div>Mogens<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-13 19:42 GMT+07:00 Stefan Suurmeijer <span dir="ltr"><<a href="mailto:stefan@raptorweb.nl" target="_blank">stefan@raptorweb.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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<div><div class="h5"><br>
<br>
<br>
<div>On 06/13/2016 01:45 PM, Mogens Melander
via Info-cyrus wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<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 href="mailto:joe@example.com" target="_blank">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 href="mailto:Drafts@example.com" target="_blank">Drafts@example.com</a>
(\HasNoChildren) <br>
user/joe/<a href="mailto:Sent@example.com" target="_blank">Sent@example.com</a>
(\HasNoChildren) <br>
user/joe/<a href="mailto:Trash@example.com" target="_blank">Trash@example.com</a>
(\HasNoChildren) <br>
user/<a href="mailto:joe@example.com" target="_blank">joe@example.com</a>
(\HasChildren) <br>
<br>
</div>
<div>I have an entry in virtusertable for <a href="mailto:domain@example.com" target="_blank"></a><a href="mailto:domain@example.com" target="_blank">domain@example.com</a>
mapping to<br>
<a href="mailto:joe@example.com" target="_blank">joe@example.com</a><br>
<br>
<a href="http://example.com" target="_blank">example.com</a>
is in local-host-names file.<br>
<br>
</div>
I have shaved my <a href="http://cyrusv2.mc" target="_blank">cyrusv2.mc</a> down to a bare
minimum, and the relevant<br>
</div>
section in <a href="http://sendmail.cf" target="_blank">sendmail.cf</a>
show the difference between cyrusv2.m4 and<br>
<div>my <a href="http://cyrusv2.mc" target="_blank">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 href="http://cyrusv2.mc" target="_blank">cyrusv2.mc</a> look like:<br>
<br>
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl<br>
VERSIONID(`@(#)<a href="http://cyrusv2.mc" target="_blank">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 href="mailto:domain@example.com" target="_blank">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 href="mailto:domain@example.com" target="_blank">domain@example.com</a>)
returns <a href="mailto:joe@example.com" target="_blank">joe@example.com</a><br>
<br>
</div>
<div>It looks promising, but then a ruleset 3,0 test<br>
<br>
echo "3,0 <a href="mailto:domain@example.com" target="_blank">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 href="mailto:domain@example.com" target="_blank">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 href="http://slack-14-1.fumlersoft.dk" target="_blank">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></fieldset>
<br>
</div></div><span class=""><pre>----
Cyrus Home Page: <a href="http://www.cyrusimap.org/" target="_blank">http://www.cyrusimap.org/</a>
List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" target="_blank">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
</span></blockquote>
<br>
<pre 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 href="mailto:stefan@raptorweb.nl" target="_blank">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>
</div>
</blockquote></div><br></div>