Hi!

I'm trying to setup Postfix + Dovecot for virtual user delivery via LMTP. Configuration seems fine (output of postconf -nf below) but I still get "User unknown in local recipient table". Details follow:

  Apr 15 20:08:09 example postfix/smtpd[7817]: Anonymous TLS connection 
established from example2.com[XX.XX.XXX.XXX]: TLSv1.2 with cipher 
AECDH-AES256-SHA (256/256 bits)
  Apr 15 20:08:09 example postfix/smtpd[7817]: NOQUEUE: reject: RCPT from example2.com[XX.XX.XXX.XXX]: 
550 5.1.1 <cont...@example.org>: Recipient address rejected: User unknown in local recipient 
table; from=<n...@example3.net> to=<cont...@example.org> proto=ESMTP 
helo=<example2.com>
  Apr 15 20:08:09 example postfix/smtpd[7817]: disconnect from 
example2.com[XX.XX.XXX.XXX] ehlo=2 starttls=1 mail=1 rcpt=0/1 data=0/1 rset=1 
quit=1 commands=6/8

This is Postfix 3.1.4 on NetBSD 8.0.

Output of postconf -nf is:

  alias_maps =
  command_directory = /usr/sbin
  daemon_directory = /usr/libexec/postfix
  data_directory = /var/db/postfix
  debug_peer_level = 2
  debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
      $daemon_directory/$process_name $process_id & sleep 5
  html_directory = /usr/share/doc/html/postfix
  inet_protocols = all
  mail_owner = postfix
  mailq_path = /usr/bin/mailq
  manpage_directory = /usr/share/man
  message_size_limit = 31457280
  milter_default_action = accept
  milter_protocol = 2
  mydestination = $mydomain, $myhostname, localhost.$mydomain, localhost
  myhostname = example.org
  mynetworks_style = host
  myorigin = $myhostname
  newaliases_path = /usr/bin/newaliases
  non_smtpd_milters = unix:/tmp/dkim-sock
  queue_directory = /var/spool/postfix
  readme_directory = /usr/share/examples/postfix
  relay_domains = $mydestination
  sample_directory = /usr/share/examples/postfix
  sendmail_path = /usr/sbin/sendmail
  setgid_group = maildrop
  smtp_tls_security_level = may
  smtpd_client_restrictions = reject_rbl_client b.barracudacentral.org
  smtpd_milters = unix:/tmp/dkim-sock
  smtpd_tls_auth_only = yes
  smtpd_tls_cert_file = /etc/openssl/certs/mail.crt
  smtpd_tls_key_file = /etc/openssl/private/mail.key
  smtpd_tls_loglevel = 1
  smtpd_tls_security_level = may
  smtpd_use_tls = yes
  unknown_local_recipient_reject_code = 550
  virtual_transport = lmtp:unix:/tmp/lmtp

Other people also had this problem like this:
http://postfix.1071664.n5.nabble.com/Problems-with-lmtp-td89453.html

Things I tried with no success:

  mailbox_transport = lmtp:unix:/tmp/lmtp

and

  local_transport = virtual
  virtual_transport = lmtp:unix:/tmp/lmtp

I have a very similar setup in another host (Postfix 2.11.4) that works pretty fine with this configuration. The only difference is that I'm using virtual domains there, but not here (I'm only using virtual users here).

Do you have any tip?

Thanks!

Reply via email to