<div dir="ltr"><div><div><div><div>Thanks Alexander<br><br></div>I have been all over the install-virtualdomains docs, plus a lot of deprecated info found on Google,<br></div>not getting closer to a solution.<br><br></div>My confic and log-files:<br><br>--- <a href="http://cyrusv2.mc">cyrusv2.mc</a> --------------------------------------------------------------------<br><br>divert(-1)dnl<br>#<br># $Id: <a href="http://cyrusv2.mc">cyrusv2.mc</a>,v 1.5 2008/04/04 12:46:34 murch Exp $<br>#<br>divert(0)dnl<br>include(`../m4/cf.m4')dnl<br>VERSIONID(`@(#)<a href="http://cyrusv2.mc">cyrusv2.mc</a> fumlersoft ver 1.0 2016-06-03')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(`confLOCAL_MAILER', `cyrusv2')dnl<br><br>MAILER(`cyrusv2')dnl<br>MAILER(`smtp')dnl<br><br>MAILER_DEFINITIONS<br>dnl --- Another failed atempt ----<br>dnl    Mcyrusv2,    P=[IPC], E=\r\n,<br>dnl        S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,<br>dnl        A=FILE /var/imap/socket/lmtp<br><br>Mcyrusv2,    P=[IPC], F=lsDFMnqA@/:|SmXz, E=\r\n,<br>    S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,<br>    A=FILE /var/imap/socket/lmtp<br><br>--- imapd.log --------------------------------------------------------------------<br></div><br>host master[4127]: about to exec /usr/cyrus/bin/lmtpd<br>lmtpunix[4127]: SQL backend defaulting to engine 'mysql'<br>lmtpunix[4127]: executed<br>lmtpunix[4127]: accepted connection<br>lmtpunix[4127]: connection from [unix socket] preauth'd as postman<br>lmtpunix[4127]: verify_user(host.domain.tld!user.mogens) failed: Mailbox does not exist<br>master[3599]: process type:SERVICE name:lmtpunix path:/usr/cyrus/bin/lmtpd age:77.332s pid:4127 exited normally<br><br>--- mail.log --------------------------------------------------------------------<br><br>sendmail[4658]: u52G9WlD004658: from=mogens@domain.tld, size=308, class=0, nrcpts=1, msgid=<57505a3c.kRn+x1452XN7whvZ%mogens@domain.tld>, relay=root@localhost<br>sm-mta[4659]: alias database /etc/mail/aliases.db out of date<br>sm-mta[4659]: u52G9Y3Y004659: from=<mogens@domain.tld>, size=468, class=0, nrcpts=1, msgid=<57505a3c.kRn+x1452XN7whvZ%mogens@domain.tld>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]<br>sendmail[4658]: u52G9WlD004658: to=domain@domain.tld, ctladdr=mogens@domain.tld (0/0), delay=00:00:02, xdelay=00:00:02, mailer=relay, pri=30308, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (u52G9Y3Y004659 Message accepted for delivery)<br>sm-mta[4662]: alias database /etc/mail/aliases.db out of date<br>sm-mta[4662]: u52G9Y3Y004659: to=<domain@domain.tld>, delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=120468, relay=localhost, dsn=5.1.1, stat=User unknown<br>sm-mta[4662]: u52G9Y3Y004659: u52G9Y3Y004662: DSN: User unknown<br>sm-mta[4662]: u52G9Y3Y004662: to=<mogens@domain.tld>, delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=31708, relay=localhost [[UNIX: /var/imap/socket/lmtp]], dsn=5.1.1, stat=User unknown<br>sm-mta[4662]: u52G9Y3Y004662: u52G9Y3Z004662: return to sender: User unknown<br>sm-mta[4662]: u52G9Y3Z004662: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=32732, relay=localhost [[UNIX: /var/imap/socket/lmtp]], dsn=5.1.1, stat=User unknown<br>sm-mta[4662]: u52G9Y3Y004662: Losing ./qfu52G9Y3Y004662: savemail panic<br>sm-mta[4662]: u52G9Y3Y004662: SYSERR(root): savemail: cannot save rejected email anywhere<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-02 21:11 GMT+07:00 Alexander Dalloz 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 class="HOEnZb"><div class="h5">Am 02.06.2016 um 15:09 schrieb Mogens Melander via Info-cyrus:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Guys,<br>
<br>
I've been trying to get sendmail to play nice with imap with virtual<br>
domains and virtdomains: userid with no luck so far.<br>
<br>
The imap part is working as far as I cat tell. I can login as<br>
user@domain.tld<br>
using imtest -a user@domain.tld -t "" -m login<br>
<br>
I just can't seem to get my head around the sendmail part. Prevent sendmail<br>
from stripping the domain part off the e-mail address.<br>
<br>
On a previous server, dead long time ago, it was working perfectly.<br>
<br>
I have tried different versions of <a href="http://cyrusv2.mc" rel="noreferrer" target="_blank">cyrusv2.mc</a> files to no avail.<br>
<br>
Does anybody feel like sharing a working sendmail config?<br>
<br>
Mogens<br>
FumlerSoft<br>
</blockquote>
<br></div></div>
The documentation at<br>
<br>
<a href="https://cyrusimap.org/docs/cyrus-imapd/2.5.4/install-virtdomains.php" rel="noreferrer" target="_blank">https://cyrusimap.org/docs/cyrus-imapd/2.5.4/install-virtdomains.php</a><br>
<br>
holds all information needed to setup virtual domain handling within Sendmail and cyrus-imapd. Pay specific attention to the part<br>
<br>
"You'll have to use the Cyrus mailer in LMTP mode, and you'll have to change the mailer flags so that it provides the full domain while communicating via LMTP. Specifically these changes:<br>
<br>
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP"<br>
<br>
In case that's not sufficient for you I think you will have to provide details about the configuration you have setup so far.<br>
<br>
Alexander<br>
<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>