<div dir="ltr"><div><div><div><div><div><div>Hi Edda<br><br></div>Thanks for your suggestion, that in fact work :^)<br><br><span style="font-family:monospace,monospace">sendmail -bv <a href="mailto:domain@example.com">domain@example.com</a><br>domain@example.com... deliverable: mailer cyrusv2, host /var/imap/socket/lmtp, user <a href="mailto:joe@example.com">joe@example.com</a><br></span><br></div>I will deploy this solution on fumlersoft's domain shortly.<br><br></div>I'm still going to try the rtcyrus3 version on my test-server, if for nothing else,<br></div>to have tried both suggested solutions.<br><br></div>Thanks again.<br></div>Mogens<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-16 2:25 GMT+07:00 Edda via Info-cyrus <span dir="ltr"><<a href="mailto:info-cyrus@lists.andrew.cmu.edu" target="_blank">info-cyrus@lists.andrew.cmu.edu</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">
<div>Hi Mogens,<br>
<br>
Am 15.06.16 um 17:06 schrieb Mogens Melander via Info-cyrus:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div class="gmail_extra"><span style="font-family:monospace,monospace"></span><br>
<span style="font-family:monospace,monospace"></span>
<div class="gmail_quote">
<div><span style="font-family:monospace,monospace"><span class=""><br>
# echo "3,0 <a href="mailto:domain@example.com" target="_blank">domain@example.com</a>"
| sendmail -v -bt<br>
ADDRESS TEST MODE (ruleset 3 NOT automatically
invoked)<br>
Enter <ruleset> <address><br>
> 3,0 <a href="mailto:domain@example.com" target="_blank">domain@example.com</a><br></span>
[...]<span class=""><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>
</span></span></div>
</div>
<br>
</div>
</div>
</div>
</blockquote>
as you see ruleset Parse1 strips the domain. That's because Parse1
strips the domain from everything sendmail considers as local. If
you like, you may look at <a href="http://sendmail.cf" target="_blank">sendmail.cf</a> and you'll find something like<br>
<br>
SParse1<br>
[...]<br>
R$+ < @ $=w . > $#local $: $1
regular local name<br>
<br>
<br>
For cyrus virtdomains it's better to treat all virtdomains as NON
local in sendmail. Only the default domain (do you have one?) should
also be local in sendmail.<br>
<br>
The following sendmail configuration (mail routing only) should
work:<br>
<br>
<a href="http://sendmail.mc" target="_blank">sendmail.mc</a>:<br>
<br>
VIRTUSER_DOMAIN(`<a href="http://example.com" target="_blank">example.com</a>')dnl<br>
FEATURE(`virtusertable')dnl<br>
<br>
MAILER_DEFINITIONS<span class=""><br>
Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m,<br></span>
S=EnvFromSMTP/HdrFromL, R=EnvToSMTP, E=\r\n,<br>
T=DNS/RFC822/SMTP,<br>
A=FILE <span style="font-family:monospace,monospace">/var/imap/socket/lmtp</span><br>
<br>
<br>
mailertable:<br>
<br>
<a href="http://example.com" target="_blank">example.com</a> cyrusv2:<span style="font-family:monospace,monospace">/var/imap/socket/lmtp<br>
<br>
<font face="Helvetica, Arial, sans-serif">virtusertable as you
already have.</font></span><br>
<br>
That's all.<br>
<br>
Remove your cyrus virtdomains from local-host-names (class w)!<br>
Delete your LOCAL_RULE_0, if you havn't already.<br>
<br>
You must declare your cyrus virtdomains as virtuserdomains in
sendmail, because you've deleted them from class w.<br>
Instead of VIRTUSER_DOMAIN, you can use also VIRTUSER_DOMAIN_FILE.
Insert all cyrus virtdomains there.<br>
<br>
If you want your local domain also to be delivered to cyrus, use<span class=""><br>
define(`confLOCAL_MAILER',`cyrusv2')dnl <br>
<br></span>
Mailer cyrusv2 provides local delivery. You need to define it
explicitly to get rid of the default setting "R=EnvToL/HdrToL" which
strips the domain from everything it sees.<br>
As you defined cyrusv2 in the MAILER_DEFINITIONS section, remove all
other instances (except LOCAL_MAILER, if you want to use cyrusv2) of
cyrusv2 from your <a href="http://sendmail.mc" target="_blank">sendmail.mc</a>, like:<br>
define(`CYRUSV2_MAILER_FLAGS',`Ah5@/:|w')dnl<br>
MAILER(`cyrusv2')dnl<br>
<br>
<br>
Now you should have a clear routing setup in sendmail that should
work. If not, don't hesitate to let me know.<br>
<br>
Edda<br>
<br>
<br>
</div>
<br>----<br>
Cyrus Home Page: <a href="http://www.cyrusimap.org/" rel="noreferrer" target="_blank">http://www.cyrusimap.org/</a><br>
List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" rel="noreferrer" target="_blank">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br>
To Unsubscribe:<br>
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" rel="noreferrer" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br></blockquote></div><br></div>