<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Mogens,<br>
<br>
Am 15.06.16 um 17:06 schrieb Mogens Melander via Info-cyrus:<br>
</div>
<blockquote
cite="mid:CAOZP1T=bvq8B5__mxrJxf_W1jGxQ2JOJrT82_A1YM6eZubinaA@mail.gmail.com"
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"><br>
# echo "3,0 <a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:domain@example.com" target="_blank">domain@example.com</a><br>
[...]<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></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 sendmail.cf 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>
sendmail.mc:<br>
<br>
VIRTUSER_DOMAIN(`example.com')dnl<br>
FEATURE(`virtusertable')dnl<br>
<br>
MAILER_DEFINITIONS<br>
Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m,<br>
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>
example.com 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<br>
define(`confLOCAL_MAILER',`cyrusv2')dnl <br>
<br>
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 sendmail.mc, 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>
</body>
</html>