This is driving me nuts. I really need some help here.
I'm running a test sendmail (8.15.2) and a cyrus-imapd 2.5.7 on
slackware 14.1 running in a virtualbox.
slackware 14.1 running in a virtualbox.
From cyradm:
localhost.localdomain> lm
user/joe/Drafts@xxxxxxxxxxx (\HasNoChildren)
user/joe/Sent@xxxxxxxxxxx (\HasNoChildren)
user/joe/Trash@xxxxxxxxxxx (\HasNoChildren)
user/joe@xxxxxxxxxxx (\HasChildren)
localhost.localdomain> lm
user/joe/Drafts@xxxxxxxxxxx (\HasNoChildren)
user/joe/Sent@xxxxxxxxxxx (\HasNoChildren)
user/joe/Trash@xxxxxxxxxxx (\HasNoChildren)
user/joe@xxxxxxxxxxx (\HasChildren)
I have an entry in virtusertable for domain@xxxxxxxxxxx mapping to
joe@xxxxxxxxxxx
example.com is in local-host-names file.
I have shaved my cyrusv2.mc down to a bare minimum, and the relevantjoe@xxxxxxxxxxx
example.com is in local-host-names file.
my cyrusv2.mc (R=EnvToL/HdrToL => R=EnvToSMTP)
-------
Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m,
S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL, E=\r\n,
T=DNS/RFC822/SMTP,
A=FILE /var/imap/socket/lmtp
Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m,
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,
T=DNS/RFC822/SMTP,
A=FILE /var/imap/socket/lmtp
------
-------
Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m,
S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL, E=\r\n,
T=DNS/RFC822/SMTP,
A=FILE /var/imap/socket/lmtp
Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m,
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,
T=DNS/RFC822/SMTP,
A=FILE /var/imap/socket/lmtp
------
This is what my current cyrusv2.mc look like:
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`@(#)cyrusv2.mc fumlersoft ver 1.1 2016-06-13')dnl
OSTYPE(linux)dnl
DOMAIN(generic)dnl
FEATURE(`use_cw_file')dnl /etc/mail/local-host-names
FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl
FEATURE(`virtusertable', `hash /etc/mail/virtusertable')dnl
define(`confBIND_OPTS', `-DNSRCH -DEFNAMES')dnl
define(`confLOCAL_MAILER',`cyrusv2')dnl
MAILER(`smtp')dnl
MAILER(`local')dnl
MAILER(`cyrusv2')dnl
MAILER_DEFINITIONS
Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m,
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,
T=DNS/RFC822/SMTP,
A=FILE /var/imap/socket/lmtp
When checking address test:
echo '/map virtuser domain@xxxxxxxxxxx' | sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
(0)p_lookup: virtuser (domain@xxxxxxxxxxx) returns joe@xxxxxxxxxxx
echo '/map virtuser domain@xxxxxxxxxxx' | sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
(0)p_lookup: virtuser (domain@xxxxxxxxxxx) returns joe@xxxxxxxxxxx
It looks promising, but then a ruleset 3,0 test
echo "3,0 domain@xxxxxxxxxxx" | sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> canonify input: domain @ example . com
Canonify2 input: domain < @ example . com >
Canonify2 returns: domain < @ example . com . >
canonify returns: domain < @ example . com . >
parse input: domain < @ example . com . >
Parse0 input: domain < @ example . com . >
Parse0 returns: domain < @ example . com . >
ParseLocal input: domain < @ example . com . >
ParseLocal returns: domain < @ example . com . >
Parse1 input: domain < @ example . com . >
Recurse input: joe @ example . com
canonify input: joe @ example . com
Canonify2 input: joe < @ example . com >
Canonify2 returns: joe < @ example . com . >
canonify returns: joe < @ example . com . >
parse input: joe < @ example . com . >
Parse0 input: joe < @ example . com . >
Parse0 returns: joe < @ example . com . >
ParseLocal input: joe < @ example . com . >
ParseLocal returns: joe < @ example . com . >
Parse1 input: joe < @ example . com . >
Parse1 returns: $# cyrusv2 $: joe
parse returns: $# cyrusv2 $: joe
Recurse returns: $# cyrusv2 $: joe
Parse1 returns: $# cyrusv2 $: joe
parse returns: $# cyrusv2 $: joe
echo "3,0 domain@xxxxxxxxxxx" | sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> canonify input: domain @ example . com
Canonify2 input: domain < @ example . com >
Canonify2 returns: domain < @ example . com . >
canonify returns: domain < @ example . com . >
parse input: domain < @ example . com . >
Parse0 input: domain < @ example . com . >
Parse0 returns: domain < @ example . com . >
ParseLocal input: domain < @ example . com . >
ParseLocal returns: domain < @ example . com . >
Parse1 input: domain < @ example . com . >
Recurse input: joe @ example . com
canonify input: joe @ example . com
Canonify2 input: joe < @ example . com >
Canonify2 returns: joe < @ example . com . >
canonify returns: joe < @ example . com . >
parse input: joe < @ example . com . >
Parse0 input: joe < @ example . com . >
Parse0 returns: joe < @ example . com . >
ParseLocal input: joe < @ example . com . >
ParseLocal returns: joe < @ example . com . >
Parse1 input: joe < @ example . com . >
Parse1 returns: $# cyrusv2 $: joe
parse returns: $# cyrusv2 $: joe
Recurse returns: $# cyrusv2 $: joe
Parse1 returns: $# cyrusv2 $: joe
parse returns: $# cyrusv2 $: joe
When sending a mail to domain@xxxxxxxxxxx I get in the logfile:
master[22245]: about to exec /usr/cyrus/bin/lmtpd
lmtpunix[22245]: SQL backend defaulting to engine 'mysql'
lmtpunix[22245]: executed
lmtpunix[22245]: accepted connection
lmtpunix[22245]: connection from [unix socket] preauth'd as postman
lmtpunix[22245]: verify_user(slack-14-1.fumlersoft.dk!user.joe) failed: Mailbox does not exist
master[22245]: about to exec /usr/cyrus/bin/lmtpd
lmtpunix[22245]: SQL backend defaulting to engine 'mysql'
lmtpunix[22245]: executed
lmtpunix[22245]: accepted connection
lmtpunix[22245]: connection from [unix socket] preauth'd as postman
lmtpunix[22245]: verify_user(slack-14-1.fumlersoft.dk!user.joe) failed: Mailbox does not exist
I'm totally lost, and have no idea where to look.
Regards
Mogens
---- 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