Hi,
I've recently switched to LMTP as I'm now using mdbox. However since switching, mails sent to the root account do not get delivered due to the following error:
May 1 18:20:17 Server1 postfix/lmtp[13019]: CAEE91F851: to=<root@test.com>, relay=mail.test.com[private/dovecot-lmtp], delay=1097, delays=1096/0.45/0.43/0.46, dsn=4.3.0, status=deferred (host mail.test.com[private/dovecot-lmtp] said: 451 4.3.0 <root@test.com> Invalid user settings. Refer to server log for more information. (in reply to RCPT TO command))
This obviously fills up my mail queue.
All other mails to all other mailboxes deliver fine.
I'm obviously missing something in my config... any ideas?
I'm using Dovecot 2.2.12 on NetBSD 5.2.2.
Many thanks,
-Mark
dovecot -n
# 2.2.12: /usr/pkg/etc/dovecot/dovecot.conf # OS: NetBSD 5.2.2 cobalt auth_username_format = %Ln doveadm_password = secret doveadm_port = 12345 first_valid_uid = 1010 last_valid_uid = 1020 listen = 192.168.1.1 login_greeting = test.com mail_location = mdbox:~/mdbox mail_plugins = " notify replication" namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { driver = passwd } passdb { driver = passwd } plugin { mail_replica = tcp:Server2.test.com } protocols = imap lmtp service aggregator { fifo_listener replication-notify-fifo { mode = 0666 } unix_listener replication-notify { mode = 0600 } } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } user = root } service imap-login { inet_listener imap { port = 0 } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } service replicator { process_min_avail = 1 unix_listener replicator-doveadm { mode = 0777 } } ssl_cert = </etc/openssl/certs/mail.test.com.crt ssl_key = </etc/openssl/private/mail.test.com.key userdb { driver = passwd } userdb { driver = passwd } protocol lda { postmaster_address = postmaster@test.com }
- IT geek 31 <itgeek31@googlemail.com> 2014.05.01 18:35:
May 1 18:20:17 Server1 postfix/lmtp[13019]: CAEE91F851: to=<root@test.com>, relay=mail.test.com[private/dovecot-lmtp], delay=1097, delays=1096/0.45/0.43/0.46, dsn=4.3.0, status=deferred (host mail.test.com[private/dovecot-lmtp] said: 451 4.3.0 <root@test.com> Invalid user settings. Refer to server log for more information. (in reply to RCPT TO command))
What about the Dovecot log? The error in the _Postfix_ log is pretty self-explanatory, have a look what Dovecot says.
userdb { driver = passwd } userdb { driver = passwd
On 1 May 2014 18:56, Thomas Leuxner <tlx@leuxner.net> wrote:
What about the Dovecot log? The error in the _Postfix_ log is pretty self-explanatory, have a look what Dovecot says.
Um, I was under the impression Dovecot logged to /var/log/maillog like Postfix. I'm not aware of any other log for Dovecot?
I also forgot to add the relevant command in my Postfix main.cf:
mailbox_transport = lmtp:unix:private/dovecot-lmtp
-Mark
- IT geek 31 <itgeek31@googlemail.com> 2014.05.01 19:21:
Um, I was under the impression Dovecot logged to /var/log/maillog like Postfix. I'm not aware of any other log for Dovecot?
Obviously not, or you missed the detail in maillog. When the syslog line starts with _postfix_ it's postfix.
$ doveadm log find
On 1 May 2014 19:27, Thomas Leuxner <tlx@leuxner.net> wrote:
Obviously not, or you missed the detail in maillog. When the syslog line starts with _postfix_ it's postfix.
$ doveadm log find
Everything logs to /var/log/maillog.
The line I think I missed was:
May 1 19:31:50 Server1 dovecot: lmtp(13770): Error: user root: Invalid settings in userdb: userdb returned 0 as uid
Any idea what this means?
-Mark
Am 01.05.2014 19:36, schrieb IT geek 31:
On 1 May 2014 19:27, Thomas Leuxner <tlx@leuxner.net> wrote:
Obviously not, or you missed the detail in maillog. When the syslog line starts with _postfix_ it's postfix.
$ doveadm log find
Everything logs to /var/log/maillog.
The line I think I missed was:
May 1 19:31:50 Server1 dovecot: lmtp(13770): Error: user root: Invalid settings in userdb: userdb returned 0 as uid
Any idea what this means?
that you are working with unix-accounts and the root uid 0 is prohibited for (good) saftey reasons
- Reindl Harald <h.reindl@thelounge.net> 2014.05.01 19:41:
May 1 19:31:50 Server1 dovecot: lmtp(13770): Error: user root: Invalid settings in userdb: userdb returned 0 as uid
Any idea what this means?
that you are working with unix-accounts and the root uid 0 is prohibited for (good) saftey reasons
If that has worked before then now is a good time to rewrite it to one of your IMAP users (best done on the Postfix end).
Am 01.05.2014 19:21, schrieb IT geek 31:
On 1 May 2014 18:56, Thomas Leuxner <tlx@leuxner.net> wrote:
What about the Dovecot log? The error in the _Postfix_ log is pretty self-explanatory, have a look what Dovecot says.
Um, I was under the impression Dovecot logged to /var/log/maillog like Postfix. I'm not aware of any other log for Dovecot?
depends on your configuration
but even if - you need to read that since you only provided the postfix line which refers clearly to the dovecot log because postfix can't know anything more than the response of the destination which tells you where to look
participants (3)
-
IT geek 31
-
Reindl Harald
-
Thomas Leuxner