On Sun, 7 Feb 2010 20:49:31 -0500 (EST)
Wietse Venema <wie...@porcupine.org> wrote:

> ferriswh...@jetechserv.com:
> > hello, 
> > 
> > 
> > i wish to change the response code for rejection of unknown user from
> > 450 to 550. all user accounts are held in dbmail and the address/user
> > maps are via pgsql queries.
> 
> unknown_local_recipient_reject_code = 550
> unknown_relay_recipient_reject_code = 550
> unknown_virtual_alias_reject_code = 550
> unknown_virtual_mailbox_reject_code = 550
> 
> The first step is to look at output from the command "postconf -n"
> instead of pasting lines from the config file. This is also suggested
> in instructions in the mailing list welcome message.
> 
> Also, you should show an actual logfile message for a non-existent
> recipient that is rejected with a 450 status code. Again, logging
> is suggested in the instructions in mailing list welcome message.
> 
>       Wietse

hello,

the reject code list was pasted from 'postconf' which i did not indicate. the 
following is the from 'postconf -n' and
i have altered some actual details for privacy.

alias_maps = hash:/opt/local/postfix/conf/lookup_tables/aliases
broken_sasl_auth_clients = yes
command_directory = /opt/local/postfix/sbin
config_directory = /opt/local/postfix/conf
daemon_directory = /opt/local/postfix/daemon
debug_peer_level = 99
default_privs = nobody
home_mailbox = Maildir/
html_directory = /opt/local/postfix/html
inet_interfaces = $myhostname, localhost
local_recipient_maps = $alias_maps
local_transport = dbmail-lmtp:127.0.0.1:24
luser_relay = catch_...@zzzserver.yyyyyy.local
mail_owner = _postfix
mailq_path = /opt/local/postfix/mailq
manpage_directory = /opt/local/postfix/man
mydestination = $myhostname, localhost
myhostname = zzzserver.yyyyyy.local
mynetworks = 192.168.1.0/24, 127.0.0.0/8
mynetworks_style = subnet
myorigin = yyyyyy.nsw.edu.au
newaliases_path = /opt/local/postfix/sbin/newaliases
proxy_interfaces = lawries.dyn.dhs.org
queue_directory = /opt/local/postfix/queue
readme_directory = /opt/local/postfix/doc
relay_domains = 
sample_directory = /opt/local/postfix/conf
sendmail_path = /opt/local/postfix/sbin/sendmail
setgid_group = _postdrop
show_user_unknown_table_name = no
smtp_helo_name = mail.$myorigin
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/opt/local/postfix/conf/lookup_tables/sasl_passwd
smtp_sasl_security_options = 
smtp_sasl_type = cyrus
smtp_tls_security_level = none
smtp_tls_session_cache_database = btree:/opt/local/postfix/data/smtp_scache
smtp_tls_session_cache_timeout = 3600s
smtpd_banner = $myorigin ESMTP
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_restrictions = permit_mynetworks
                          check_helo_access 
hash:/opt/local/postfix/conf/lookup_tables/helo_access
                          reject_unknown_helo_hostname
smtpd_recipient_restrictions = permit_mynetworks
                               reject_unauth_destination
                               permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = cyrus
smtpd_tls_CAfile = /opt/local/postfix/conf/cert/cacert.pem
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /opt/local/postfix/conf/cert/YYYYYY-cert.pem
smtpd_tls_key_file = /opt/local/postfix/conf/cert/YYYYYY_SMTP-key.pem
smtpd_tls_loglevel = 0
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:/opt/local/postfix/data/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = no
soft_bounce = yes
syslog_name = $myhostname
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
unverified_recipient_reject_code = 550
virtual_mailbox_base = /opt/local/postfix/base
virtual_mailbox_domains = 
pgsql:/opt/local/postfix/conf/lookup_tables/virtual_domain_maps.cf
virtual_mailbox_maps = 
pgsql:/opt/local/postfix/conf/lookup_tables/virtual_mailbox_maps.cf
virtual_transport = dbmail-lmtp:127.0.0.1:24


log record of rejected message
    Feb  8 13:12:21 MacServer zzzserver.yyyyyyy.local/smtpd[37260]: NOQUEUE: 
reject: RCPT from mf1.cn1.myschools.net[113.29.215.8]: 450 4.1.1   
     <aaa.xx...@yyyyyyy.nsw.edu.au>: Recipient address rejected: User unknown 
in virtual mailbox table; from=<b.qq...@rrrrrrr.edu.au> 
     to=<aaa.xx...@yyyyyy.nsw.edu.au> proto=ESMTP helo=<mf1.cn1.myschools.net>

postfix version is 2.5.2 build from source.
dbmail is 2.2.10
OS is mac osx 10.5.8 

regards

john

Reply via email to