Discussion:
Recipient address rejected: User unknown in local recipient table
(too old to reply)
l***@gmail.com
2019-03-29 09:10:39 UTC
Permalink
Hi,

I'm new to postfix, and I use postfix + dovecot, and I add MX/A/PTR.

I use Mariadb as Dovecot passdb.

And I configure email client (MUA) and try to send email to another user, it says,

"Recipient address rejected: User unknown in local recipient table"

I can read literally this user does not exist on this machine. How can I solve this problem?

I also read docs of postfix, which is quite difficult for me.

# postconf -n
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
compatibility_level = 2
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/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
default_privs = nobody
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_transport = lmtp:unix:/usr/var/run/dovecot/lmtp local_recipient_maps =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
meta_directory = /etc/postfix
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = ad.pthl.hk
myhostname = mail.ad.pthl.hk
mynetworks = 172.16.0.0/12, 127.0.0.0/8, 172.16.81.0/24
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains = $mydestination
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
shlib_directory = /usr/lib/postfix
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/dovecot.pem
smtpd_tls_key_file = /etc/ssl/certs/dovecot.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
unknown_local_recipient_reject_code = 550


What else do I have to setup?

Thanks,
skhohlov
2019-03-30 07:55:34 UTC
Permalink
Post by l***@gmail.com
Hi,
I'm new to postfix, and I use postfix + dovecot, and I add MX/A/PTR.
I use Mariadb as Dovecot passdb.
And I configure email client (MUA) and try to send email to another user, it says,
"Recipient address rejected: User unknown in local recipient table"
I can read literally this user does not exist on this machine. How can I solve this problem?
I also read docs of postfix, which is quite difficult for me.
# postconf -n
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
compatibility_level = 2
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/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
default_privs = nobody
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_transport = lmtp:unix:/usr/var/run/dovecot/lmtp local_recipient_maps =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
meta_directory = /etc/postfix
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = ad.pthl.hk
myhostname = mail.ad.pthl.hk
mynetworks = 172.16.0.0/12, 127.0.0.0/8, 172.16.81.0/24
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains = $mydestination
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
shlib_directory = /usr/lib/postfix
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/dovecot.pem
smtpd_tls_key_file = /etc/ssl/certs/dovecot.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
unknown_local_recipient_reject_code = 550
What else do I have to setup?
Thanks,
part of mail.info log plz
l***@gmail.com
2019-03-30 08:45:38 UTC
Permalink
Post by l***@gmail.com
Hi,
I'm new to postfix, and I use postfix + dovecot, and I add MX/A/PTR.
I use Mariadb as Dovecot passdb.
And I configure email client (MUA) and try to send email to another user, it says,
"Recipient address rejected: User unknown in local recipient table"
I can read literally this user does not exist on this machine. How can I solve this problem?
I also read docs of postfix, which is quite difficult for me.
# postconf -n
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
compatibility_level = 2
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/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
default_privs = nobody
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_transport = lmtp:unix:/usr/var/run/dovecot/lmtp local_recipient_maps =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
meta_directory = /etc/postfix
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = ad.pthl.hk
myhostname = mail.ad.pthl.hk
mynetworks = 172.16.0.0/12, 127.0.0.0/8, 172.16.81.0/24
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains = $mydestination
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
shlib_directory = /usr/lib/postfix
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/dovecot.pem
smtpd_tls_key_file = /etc/ssl/certs/dovecot.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
unknown_local_recipient_reject_code = 550
What else do I have to setup?
Thanks,
I got an answer, details logged http://postfix.1071664.n5.nabble.com/Recipient-address-rejected-User-unknown-in-local-recipient-table-td100769.html
Thanks anyway.

Continue reading on narkive:
Loading...