To extend my previous message :
I added the option '-o lmtp_destination_recipient_limit=1' to Postfix
and try again to send a message to someone outside my domains, but
adding two people in CC.
It seems that Dovecot is still handling the delivery incorrectly. Here
is the transcript of what happened :
May 26 09:39:00 lmtp(47593): Debug: none: root=, index=, indexpvt=,
control=, inbox=, alt=
May 26 09:39:00 lmtp(47593): Info: Connect from 9.6.71.10
May 26 09:39:00 lmtp(47593): Debug: Loading modules from directory:
/usr/local/lib/dovecot
May 26 09:39:00 lmtp(47593): Debug: Module loaded:
/usr/local/lib/dovecot/lib10_mailden_filter_plugin.so
May 26 09:39:00 lmtp(47593): Debug: auth input: [email protected]
home=/mailboxes/mailden.pro/contact/ uid=200 gid=6
[email protected]
May 26 09:39:00 lmtp(47593): Debug: Added userdb setting:
plugin/[email protected]
May 26 09:39:00 lmtp(47593): Debug: auth input:
[email protected] home=/mailboxes/sapienssapide.fr/stan/ uid=200
gid=6 [email protected]
May 26 09:39:00 lmtp(47593): Debug: Added userdb setting:
plugin/[email protected]
May 26 09:39:00 lmtp(47593, [email protected]): Info:
mailden_filter_plugin_init
May 26 09:39:00 lmtp(47593, [email protected]): Debug: Effective
uid=200, gid=6, home=/mailboxes/mailden.pro/contact/
May 26 09:39:00 lmtp(47593, [email protected]): Info:
mailden_filter_mail_user_created
May 26 09:39:00 lmtp(47593, [email protected]): Info:
mailden_filter_parse_setting
May 26 09:39:00 lmtp(47593, [email protected]): Debug:
mailden_filter: Filtering mailden_filter via socket
/var/run/dovecot//decrypt-filter
May 26 09:39:00 lmtp(47593, [email protected]): Info:
mailden_filter_parse_setting
May 26 09:39:00 lmtp(47593, [email protected]): Debug:
mailden_filter: Filtering mailden_filter_out via socket
/var/run/dovecot//encrypt-filter
May 26 09:39:00 lmtp(47593, [email protected]): Info: plain_pass
is null
May 26 09:39:00 lmtp(47593, [email protected]): Debug: Namespace
inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes,
subscriptions=yes location=dbox:/mailboxes/mailden.pro/contact/
May 26 09:39:00 lmtp(47593, [email protected]): Debug: fs:
root=/mailboxes/mailden.pro/contact, index=, indexpvt=, control=,
inbox=, alt=
May 26 09:39:00 lmtp(47593, [email protected]): Info:
mailden_filter_mailbox_allocated
May 26 09:39:00 lmtp(47593, [email protected]): Info:
mailden_filter_mail_allocated
May 26 09:39:00 lmtp(47593, [email protected]): Info:
mailden_filter_mail_save_begin
May 26 09:39:00 box encrypt_mail: -> Encrypt arg : [email protected]
May 26 09:39:00 lmtp(47593, [email protected]): Debug: Namespace :
Using permissions from /mailboxes/mailden.pro/contact: mode=0700
gid=default
May 26 09:39:00 lmtp(47593, [email protected]): Info:
sjhnApTvglPpuQAAz9GZsw: msgid=<[email protected]>: saved
mail to INBOX
May 26 09:39:00 lmtp(47593, [email protected]): Info:
mailden_filter_mail_allocated
May 26 09:39:00 lmtp(47593, [email protected]): Info:
mailden_filter_istream_opened
May 26 09:39:00 lmtp(47593, [email protected]): Debug: Effective
uid=200, gid=6, home=/mailboxes/sapienssapide.fr/stan/
May 26 09:39:00 lmtp(47593, [email protected]): Info:
mailden_filter_mail_user_created
May 26 09:39:00 lmtp(47593, [email protected]): Info:
mailden_filter_parse_setting
May 26 09:39:00 lmtp(47593, [email protected]): Debug:
mailden_filter: Filtering mailden_filter via socket
/var/run/dovecot//decrypt-filter
May 26 09:39:00 lmtp(47593, [email protected]): Info:
mailden_filter_parse_setting
May 26 09:39:00 lmtp(47593, [email protected]): Debug:
mailden_filter: Filtering mailden_filter_out via socket
/var/run/dovecot//encrypt-filter
May 26 09:39:00 lmtp(47593, [email protected]): Info: plain_pass
is null
May 26 09:39:00 lmtp(47593, [email protected]): Debug: Namespace
inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes,
subscriptions=yes location=dbox:/mailboxes/sapienssapide.fr/stan/
May 26 09:39:00 lmtp(47593, [email protected]): Debug: fs:
root=/mailboxes/sapienssapide.fr/stan, index=, indexpvt=, control=,
inbox=, alt=
May 26 09:39:00 lmtp(47593, [email protected]): Info:
mailden_filter_mailbox_allocated
May 26 09:39:00 lmtp(47593, [email protected]): Info:
mailden_filter_mail_allocated
May 26 09:39:00 lmtp(47593, [email protected]): Debug: Namespace
: Using permissions from /mailboxes/sapienssapide.fr/stan: mode=0700
gid=default
May 26 09:39:00 lmtp(47593, [email protected]): Info:
sjhnApTvglPpuQAAz9GZsw: msgid=<[email protected]>: saved
mail to INBOX
May 26 09:39:00 lmtp(47593): Info: Disconnect from 9.6.71.10:
Successful quit
May 26 09:39:00 box decrypt_mail: -> Decrypt arg :
[email protected],n
The last line above shows that, again, Dovecot is trying to read the
email from mailboxe and it launched the 'decypt_mail' program with
user1's params (user1 = '[email protected]'). At this stage, neither
user1 ([email protected]) nor user2 ([email protected]) are
connected and authenticated. Therefore, decrypt_mail is launched without
user1's password (decrypc args are email and user password. In the above
case, user password is set to 'n' because is missing).
Stan.