I have a LAN behind a firewall with port 25 forwarded to machine running 
postfix.  That machine sends email on to
a Domino server.  However, I am using a VM for testing and I cannot change 
the forwarded port.  So I am doing it
all from the postfix machine.  I use the command below to send an email to 
an unknown user (from command line).
But it delivers it to Domino anyway.  I have only one user defined in 
/etc/postfix/aliases file.  Do I have the right
configuration to reject unknown users?  If not, what am I missing?

Thank you,

Durwin

=== command ===
cat email.txt | nc postfix 25
=== end ===

=== email.txt ===
helo postfix.mydomain.com
mail from: u...@mydomain.com
rcpt to: unknownu...@mydomain.com
data
From: u...@mydomain.com
To: unknownu...@mydomain.com
Subject: Test
Test
.
quit
=== end email.txt ===


=== main.cf ===
compatibility_level = 2
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = postfix.mydomain.com
mydomain = mydomain.com
myorigin = $myhostname
inet_interfaces = all
inet_protocols = all
mydestination = $myhostname, localhost.$mydomain, localhost
local_recipient_maps = $alias_maps
unknown_local_recipient_reject_code = 550
mynetworks = 172.23.93.0/24
relay_domains = $mydestination
relayhost = $mydomain
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/aliases


smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
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
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix/samples
readme_directory = /usr/share/doc/postfix/README_FILES
meta_directory = /etc/postfix
shlib_directory = /usr/lib64/postfix
=== end main.cf ===


This email message and any attachments are for the sole use of the 
intended recipient(s) and may contain proprietary and/or confidential 
information which may be privileged or otherwise protected from 
disclosure. Any unauthorized review, use, disclosure or distribution is 
prohibited. If you are not the intended recipient(s), please contact the 
sender by reply email and destroy the original message and any copies of 
the message as well as any attachments to the original message.

Reply via email to