Thank you for the information, however, it does not work File /etc/postfix/test ldap005@fake.domain OK
postmap /etc/postfix/test [root@ldap tmp.k84NGQJdRH]# postmap -q ldap007a@fake.domain hash:/etc/postfix/test [root@ldap tmp.k84NGQJdRH]# echo $? 1 [root@ldap tmp.k84NGQJdRH]# postmap -q ldap005@fake.domain hash:/etc/postfix/test OK [root@ldap tmp.k84NGQJdRH]# echo $? 0 postconf -n alias_maps = ldap:/etc/postfix/ldap_forward.cf ldap:/etc/postfix/ ldap_aliases.cf auth_lista00_only = check_sender_access ldap:/etc/postfix/ ldap_auth_lista00_only.cf auth_lista01_only = check_sender_access ldap:/etc/postfix/ ldap_auth_lista01_only.cf auth_rejected_only = check_sender_access hash:/etc/postfix/reject_list, reject command_directory = /usr/sbin config_directory = /etc/postfix 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 html_directory = no inet_interfaces = $myhostname,localhost inet_protocols = ipv4 local_recipient_maps = mail_owner = postfix mailbox_transport = lmtp:unix:private/dovecot-lmtp mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = fake.domain myhostname = ldap.home myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES relay_recipient_maps = hash:/etc/postfix/test sample_directory = /usr/share/doc/postfix-2.10.1/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_recipient_restrictions = reject_authenticated_sender_login_mismatch, check_recipient_access hash:/etc/postfix/protected_destination, check_sender_access hash:/etc/postfix/sender_checks, reject_unauth_destination smtpd_relay_restrictions = permit_sasl_authenticated, reject_unauth_destination smtpd_restriction_classes = auth_lista00_only, auth_lista01_only, auth_rejected_only smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/dovecot-auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_sender_login_maps = ldap:/etc/postfix/ldap_sender_login_maps.cf ,ldap:/etc/postfix/ldap_mapMail.cf smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch, reject_sender_login_mismatch, warn_if_reject, reject_non_fqdn_sender,reject_unknown_sender_domain unknown_local_recipient_reject_code = 550 Log Jun 12 17:34:30 ldap.home postfix/smtpd[5347]: connect from localhost[127.0.0.1] Jun 12 17:34:30 ldap.home postfix/smtpd[5347]: improper command pipelining after HELO from localhost[127.0.0.1]: AUTH PLAIN bGRhcDAwOABsZGFwMDA4AHNlY3VyZQ==\r\n Jun 12 17:34:30 ldap.home postfix/smtpd[5347]: 24396224A084: client=localhost[127.0.0.1], sasl_method=PLAIN, sasl_username=ldap008 Jun 12 17:34:30 ldap.home postfix/cleanup[5350]: 24396224A084: message-id=<20160612213430.24396224a...@ldap.home> Jun 12 17:34:30 ldap.home postfix/qmgr[5336]: 24396224A084: from=<ldap008@fake.domain>, size=346, nrcpt=1 (queue active) Jun 12 17:34:30 ldap.home postfix/smtpd[5347]: disconnect from localhost[127.0.0.1] Jun 12 17:34:30 ldap.home postfix/cleanup[5350]: 3A1F9224A096: message-id=<20160612213430.24396224a...@ldap.home> Jun 12 17:34:30 ldap.home postfix/qmgr[5336]: 3A1F9224A096: from=<owner-lista01@fake.domain>, size=480, nrcpt=2 (queue active) Jun 12 17:34:30 ldap.home postfix/local[5338]: 24396224A084: to=<lista01@fake.domain>, relay=local, delay=0.13, delays=0.09/0.02/0/0.03, dsn=2.0.0, status=sent (forwarded as 3A1F9224A096) Jun 12 17:34:30 ldap.home postfix/qmgr[5336]: 24396224A084: removed: Jun 12 17:34:30 ldap.home postfix/local[5351]: warning: error looking up passwd info for ldap007a: No such file or directory Jun 12 17:34:30 ldap.home postfix/local[5351]: 3A1F9224A096: to=<ldap007a@fake.domain>, relay=local, delay=0.05, delays=0.01/0.02/0/0.03, dsn=4.0.0, status=deferred (user lookup error) Jun 12 17:34:30 ldap.home postfix/lmtp[5352]: 3A1F9224A096: to=<ldap005@fake.domain>, relay=ldap.home[private/dovecot-lmtp], delay=0.06, delays=0.01/0/0.03/0.01, dsn=2.0.0, status=sent (250 2.0.0 <ldap005@fake.domain> yUmeEGbVXVfpFAAAFihVAQ Saved): On Sun, Jun 12, 2016 at 3:25 PM, Marko Cupać <marko.cu...@mimar.rs> wrote: > On Sun, 12 Jun 2016 14:55:11 -0400 > Il Neofita <asteriskm...@gmail.com> wrote: > > > Is there a way to let postfix know that the user does not exist? > > http://www.postfix.org/postconf.5.html#relay_recipient_maps > -- > Before enlightenment - chop wood, draw water. > After enlightenment - chop wood, draw water. > > Marko Cupać > https://www.mimar.rs/ >