Hi Mogens,
Am 15.06.16 um 17:06 schrieb Mogens Melander via Info-cyrus: 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 SParse1 [...] R$+ < @ $=w . > $#local $: $1 regular local name 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. The following sendmail configuration (mail routing only) should work: sendmail.mc: VIRTUSER_DOMAIN(`example.com')dnl FEATURE(`virtusertable')dnl MAILER_DEFINITIONS Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m, S=EnvFromSMTP/HdrFromL, R=EnvToSMTP, E=\r\n, T=DNS/RFC822/SMTP, A=FILE /var/imap/socket/lmtp mailertable: example.com cyrusv2:/var/imap/socket/lmtp virtusertable as you already have. That's all. Remove your cyrus virtdomains from local-host-names (class w)! Delete your LOCAL_RULE_0, if you havn't already. You must declare your cyrus virtdomains as virtuserdomains in sendmail, because you've deleted them from class w. Instead of VIRTUSER_DOMAIN, you can use also VIRTUSER_DOMAIN_FILE. Insert all cyrus virtdomains there. If you want your local domain also to be delivered to cyrus, use define(`confLOCAL_MAILER',`cyrusv2')dnl 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. 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: define(`CYRUSV2_MAILER_FLAGS',`Ah5@/:|w')dnl MAILER(`cyrusv2')dnl Now you should have a clear routing setup in sendmail that should work. If not, don't hesitate to let me know. Edda |
---- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus