[Dovecot] lmtp multiple recipients fail
Hello, I am having a problem with the lmtp delivery of mail addressed to multiple recipients. The first recipient receives the mail correctly but the next recipients do not. ltmp apparently tries to create a link from the subsequent recipients' mail store to the first recipient mail store and fails. This returns 451 smtp codes to the sender which then resends at some later time. Please see below for users jerry, steve, and mary. The message to jerry gets written but not steve or mary:
ul 27 11:24:41 testmailserver dovecot: lmtp(12412): Debug: none: root=, index=, control=, inbox= Jul 27 11:24:41 testmailserver dovecot: lmtp(12412): Connect from 143.112.53.4 Jul 27 11:24:41 testmailserver dovecot: lmtp(12412): Debug: auth input: jerry home=/spool/mail/j/jerry system_groups_user=jerry uid=18738 gid=4025 Jul 27 11:24:41 testmailserver dovecot: lmtp(12412): Debug: auth input: steve home=/spool/mail/s/steve system_groups_user=steve uid=9838 gid=3011 Jul 27 11:24:41 testmailserver dovecot: lmtp(12412): Debug: auth input: mary home=/spool/mail/m/mary system_groups_user=mary uid=7007 gid=3011 Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, jerry): Debug: Effective uid=18738, gid=4025, home=/spool/mail/j/jerry Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, jerry): Debug: fs: root=/spool/mail/j/jerry/mail, index=, control=, inbox=/spool/mail/j/jerry/mail/INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, jerry): Debug: Namespace : Permission lookup failed from /spool/mail/j/jerry/mail/mailboxes/INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, jerry): Debug: Namespace : Using permissions from /spool/mail/j/jerry/mail: mode=0700 gid=-1 Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, jerry): Debug: Namespace : Permission lookup failed from /spool/mail/j/jerry/mail/mailboxes/INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, jerry): Debug: Namespace : Using permissions from /spool/mail/j/jerry/mail: mode=0700 gid=-1 Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, jerry): Debug: Namespace : Permission lookup failed from /spool/mail/j/jerry/mail/mailboxes/INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, jerry): Debug: Namespace : Using permissions from /spool/mail/j/jerry/mail: mode=0700 gid=-1 Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, jerry): Debug: Namespace : Permission lookup failed from /spool/mail/j/jerry/mail/mailboxes/INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, jerry): Debug: Namespace : Using permissions from /spool/mail/j/jerry/mail: mode=0700 gid=-1 Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, jerry): +1IXBeVXME58MAAARoVNxQ: msgid=<201107271824.p6RIOPa5020900@backup.>: saved mail to INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, steve): Debug: Effective uid=9838, gid=3011, home=/spool/mail/s/steve Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, steve): Debug: fs: root=/spool/mail/s/steve/mail, index=, control=, inbox=/spool/mail/s/steve/mail/INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, steve): Debug: Namespace : Permission lookup failed from /spool/mail/s/steve/mail/mailboxes/INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, steve): Debug: Namespace : Using permissions from /spool/mail/s/steve/mail: mode=0700 gid=-1 Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, steve): Debug: Namespace : Permission lookup failed from /spool/mail/s/steve/mail/mailboxes/INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, steve): Debug: Namespace : Using permissions from /spool/mail/s/steve/mail: mode=0700 gid=-1 Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, steve): Debug: Namespace : Permission lookup failed from /spool/mail/s/steve/mail/mailboxes/INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, steve): Debug: Namespace : Using permissions from /spool/mail/s/steve/mail: mode=0700 gid=-1 Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, steve): Debug: Namespace : Permission lookup failed from /spool/mail/s/steve/mail/mailboxes/INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, steve): Debug: Namespace : Using permissions from /spool/mail/s/steve/mail: mode=0700 gid=-1 Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, steve): Error: link(/spool/mail/j/jerry/mail/INBOX/u.20423, /spool/mail/s/steve/mail/INBOX/.temp.1311791081.P12412Q2M989550.testmailserver.) failed: Permission denied Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, steve): +1IXBeVXME58MAAARoVNxQ: msgid=<201107271824.p6RIOPa5020900@backup.>: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2011-07-27 11:24:41] Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, mary): Debug: Effective uid=7007, gid=3011, home=/spool/mail/m/mary Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, mary): Debug: fs: root=/spool/mail/m/mary/mail, index=, control=, inbox=/spool/mail/m/mary/mail/INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, mary): Debug: Namespace : Permission lookup failed from /spool/mail/m/mary/mail/mailboxes/INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, mary): Debug: Namespace : Using permissions from /spool/mail/m/mary/mail: mode=0700 gid=-1 Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, mary): Debug: Namespace : Permission lookup failed from /spool/mail/m/mary/mail/mailboxes/INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, mary): Debug: Namespace : Using permissions from /spool/mail/m/mary/mail: mode=0700 gid=-1 Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, mary): Debug: Namespace : Permission lookup failed from /spool/mail/m/mary/mail/mailboxes/INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, mary): Debug: Namespace : Using permissions from /spool/mail/m/mary/mail: mode=0700 gid=-1 Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, mary): Debug: Namespace : Permission lookup failed from /spool/mail/m/mary/mail/mailboxes/INBOX Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, mary): Debug: Namespace : Using permissions from /spool/mail/m/mary/mail: mode=0700 gid=-1 Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, mary): Error: link(/spool/mail/j/jerry/mail/INBOX/u.20423, /spool/mail/m/mary/mail/INBOX/.temp.1311791081.P12412Q3M989550.testmailserver.) failed: Permission denied Jul 27 11:24:42 testmailserver dovecot: lmtp(12412, mary): +1IXBeVXME58MAAARoVNxQ: msgid=<201107271824.p6RIOPa5020900@backup.>: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2011-07-27 11:24:41] Jul 27 11:24:42 testmailserver dovecot: lmtp(12412): Disconnect from 143.112.53.4: Client quit Jul 27 11:24:42 testmailserver dovecot: lmtp(12412): Disconnect from 143.112.53.4: Client quit
I am using version 2.0.13. dovecot -n shows this:
# 2.0.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.29.1.el6.i686 i686 CentOS Linux release 6.0 (Final) ext4 auth_debug = yes auth_master_user_separator = * auth_verbose = yes auth_verbose_passwords = plain lda_mailbox_autocreate = yes mail_debug = yes mail_location = sdbox:/spool/mail/%1Ln/%Ln/mail:INBOX=/spool/mail/%1Ln/%Ln/mail/INBOX mbox_write_locks = fcntl passdb { args = /etc/dovecot/master-users driver = passwd-file master = yes } passdb { args = failure_show_msg=yes driver = pam } plugin { autocreate = INBOX autosubscribe = INBOX } service lmtp { inet_listener ltmp { port = 24 } } ssl_cert =
Thanks for any pointers, -Boris Lordis
On 28.07.2011 01:15 , flylordis flylordis wrote:
Hello, I am having a problem with the lmtp delivery of mail addressed to multiple recipients. The first recipient receives the mail correctly but the next recipients do not. ltmp apparently tries to create a link from the subsequent recipients' mail store to the first recipient mail store and fails. This returns 451 smtp codes to the sender which then resends at some later time. Please see below for users jerry, steve, and mary. The message to jerry gets written but not steve or mary:
Are you using Postfix? What are the Postfix values of:
transport_destination_concurrency_limit transport_destination_recipient_limit
-Remy
participants (2)
-
flylordis flylordis
-
Remy Zandwijk