sendmail delivery to shared folder problem
Shawn O'Connor
soconnor at falconknight.com
Sat May 6 12:41:17 EDT 2006
Andrzej Adam Filip wrote:
> "Shawn O'Connor" <soconnor at falconknight.com> writes:
>
>
>> I am having trouble getting sendmail to properly deliver mail to a
>> shared folder that is named "consulting/ownit."
>>
>> Sending to mail to consulting/ownit at somedomain.biz shows:
>>
>> May 6 02:52:03 mail lmtpunix[82369]: executed
>> May 6 02:52:03 mail lmtpunix[82369]: accepted connection
>> May 6 02:52:03 mail lmtpunix[82369]: lmtp connection preauth'd as postman
>> May 6 02:52:03 mail lmtpunix[82369]:
>> verify_user(user.consulting.ownit) failed: Mailbox does not exist
>>
>> Whereas sending mail to:
>>
>> bb+consulting/ownit at somedomain.biz shows:
>>
>> May 6 02:58:24 mail lmtpunix[82455]: executed
>> May 6 02:58:24 mail lmtpunix[82455]: accepted connection
>> May 6 02:58:24 mail lmtpunix[82455]: lmtp connection preauth'd as postman
>> May 6 02:58:24 mail lmtpunix[82455]: verify_user(user.) failed:
>> Mailbox does not exist
>>
>> The problem, I'm thinking is that we are trying to use unix hierarchy
>> and alternate namespace. Perhaps the sendmail m4 isn't properly
>> matching it? I can deliver the message with the deliver program via:
>>
>> cat somemessage | /usr/local/cyrus/bin/deliver -m consulting/deliver
>>
>> Below is my .mc file, if anyone could help it would be greatly appreciated.
>>
>> Kind regards,
>>
>> -Shawn
>>
>> divert(-1)
>> [...]
>> FEATURE(local_lmtp)
>> [...]
>>
>> FEATURE(`preserve_local_plus_detail')
>> [...]
>> MAILER(`cyrusv2')dnl
>> MAILER(local)
>> MAILER(smtp)
>> LOCAL_RULE_0
>> Rbb + $+ < @ $=w . > $#cyrusv2 $: + $1
>>
>
> What is reported by tests command given below [executed as root]:
> # show list of local email domains ($=w). Your bb hack works only for
> # $=w domains. Is somedomain.biz listed?
> echo '$=w' | sendmail -nt
> # show which mailer/host/user are se;ected by sendmail for delivery
> sendmail -bv "bb+consulting/ownit at somedomain.biz"
> # show sendmail.cf processing (matching rules)
> echo '3,0 bb+consulting/ownit at somedomain.biz" | sendmail -bt
> # send test message in verbose mode
> ( echo "subject: test"; echo)| sendmail -v -oi "bb+consulting/ownit at somedomain.biz"
>
>
>
Hi Andrzej,
Thank you for your reply. Below is the output of the debug commands.
Hopefully, the output makes more sense to you :).
mail# echo '$=w' | sendmail -nt
No recipient addresses found in header
Strange, because the domain in question is in local host names.
mail# sendmail -bv "bb+consulting/ownit at somedomain.biz"
bb+consulting/ownit at somedomain.biz... deliverable: mailer cyrusv2, user
+consulting/ownit
mail# echo '3,0 bb+consulting/ownit at somedomain.biz' | sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> canonify input: bb + consulting / ownit @ somedomain . biz
Canonify2 input: bb + consulting / ownit < @ somedomain . biz >
Canonify2 returns: bb + consulting / ownit < @ somedomain . biz . >
canonify returns: bb + consulting / ownit < @ somedomain . biz . >
parse input: bb + consulting / ownit < @ somedomain . biz . >
Parse0 input: bb + consulting / ownit < @ somedomain . biz . >
Parse0 returns: bb + consulting / ownit < @ somedomain . biz . >
ParseLocal input: bb + consulting / ownit < @ somedomain . biz . >
ParseLocal returns: $# cyrusv2 $: + consulting / ownit
parse returns: $# cyrusv2 $: + consulting / ownit
> mail# ( echo "subject: test"; echo)| sendmail -v -oi
"bb+consulting/ownit at somedomain.biz"
bb+consulting/ownit at somedomain.biz... Connecting to [127.0.0.1] via relay...
220 mail.somedomain.biz ESMTP Sendmail 8.13.4/8.13.4; Sun, 7 May 2006
00:17:26 +0800 (SGT)
>>> EHLO mail.somedomain.biz
250-mail.somedomain.biz Hello [192.168.1.252], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH PLAIN LOGIN
250-STARTTLS
250-DELIVERBY
250 HELP
>>> STARTTLS
220 2.0.0 Ready to start TLS
>>> EHLO mail.somedomain.biz
250-mail.somedomain.biz Hello [192.168.1.252], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH PLAIN LOGIN
250-DELIVERBY
250 HELP
>>> MAIL From:<soconnor at mail.somedomain.biz> SIZE=15
AUTH=soconnor at mail.somedomain.biz
250 2.1.0 <soconnor at mail.somedomain.biz>... Sender ok
>>> RCPT To:<bb+consulting/ownit at somedomain.biz>
>>> DATA
250 2.1.5 <bb+consulting/ownit at somedomain.biz>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 k46GHQPS090562 Message accepted for delivery
bb+consulting/ownit at somedomain.biz... Sent (k46GHQPS090562 Message
accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 mail.somedomain.biz closing connection
Of course, this is followed by the following in the log file:
May 7 00:17:27 mail master[90566]: about to exec /usr/local/cyrus/bin/lmtpd
May 7 00:17:27 mail lmtpunix[90566]: executed
May 7 00:17:27 mail lmtpunix[90566]: accepted connection
May 7 00:17:27 mail lmtpunix[90566]: lmtp connection preauth'd as postman
May 7 00:17:27 mail lmtpunix[90566]: verify_user(user.) failed: Mailbox
does not exist
And it then sends a bounce message.
Thanks!
-Shawn
More information about the Info-cyrus
mailing list