Hi, I am trying to hold messages based on the client and sender address, but its not getting in hold queue and getting rejected :
my client address is : 192.168.40.3 sender address is santosh.malav...@example.com ( domain changed ) This is the output from postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 header_checks = regexp:/etc/postfix/customMaps/headerChecks html_directory = no inet_interfaces = all inet_protocols = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = myhostname = mailgate.example.com ( domain changed ) mynetworks = /etc/postfix/customMaps/mynetworks myorigin = $myhostname newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES relay_domains = /etc/postfix/customMaps/relayDomains relay_recipient_maps = hash:/etc/postfix/customMaps/relayRecipientMaps sample_directory = /usr/share/doc/postfix-2.6.6/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_helo_required = yes smtpd_recipient_restrictions = check_client_access hash:/etc/postfix/customMaps/clientAccessMaps, permit_mynetworks, reject_unauth_destination smtpd_restriction_classes = classValidSender transport_maps = hash:/etc/postfix/customMaps/transportMaps unknown_local_recipient_reject_code = 550 The maps are given below : [root@apmailgate1 customMaps]# cat clientAccessMaps 192.168.40.3 classValidSender # [root@apmailgate1 customMaps]# cat senderAccessMaps santosh.malav...@asianpaints.com HOLD # Log Extract : ( domain changed ) Jun 25 11:42:56 myhostname postfix/smtpd[385]: >>> START Recipient address RESTRICTIONS <<< Jun 25 11:42:56 myhostname postfix/smtpd[385]: generic_checks: name=check_client_access Jun 25 11:42:56 myhostname postfix/smtpd[385]: check_namadr_access: name test.example.com addr 192.168.40.3 Jun 25 11:42:56 myhostname postfix/smtpd[385]: check_domain_access: test.example.com Jun 25 11:42:56 myhostname postfix/smtpd[385]: check_addr_access: 192.168.40.3 Jun 25 11:42:56 myhostname postfix/smtpd[385]: check_table_result: hash:/etc/postfix/customMaps/clientAccessMaps classValidSender 192.168.40.3 Jun 25 11:42:56 myhostname postfix/smtpd[385]: >>> START Client host RESTRICTIONS <<< Jun 25 11:42:56 myhostname postfix/smtpd[385]: generic_checks: name=classValidSender Jun 25 11:42:56 myhostname postfix/smtpd[385]: >>> START Client host RESTRICTIONS <<< Jun 25 11:42:56 myhostname postfix/smtpd[385]: generic_checks: name=check_sender_access Jun 25 11:42:56 myhostname postfix/smtpd[385]: check_mail_access: santosh.malav...@example.com Jun 25 11:42:56 myhostname postfix/smtpd[385]: ctable_locate: move existing entry key santosh.malav...@example.com Jun 25 11:42:56 myhostname postfix/smtpd[385]: check_access: santosh.malav...@example.com Jun 25 11:42:56 myhostname postfix/smtpd[385]: check_table_result: hash:/etc/postfix/customMaps/senderAccessMaps HOLD santosh.malav...@example.com Jun 25 11:42:56 myhostname postfix/smtpd[385]: NOQUEUE: hold: RCPT from test.example.com[192.168.40.3]: <santosh.malav...@example.com>: Sender address triggers HOLD action; from=<santosh.malav...@example.com> to=<lastt...@testdomain.com> proto=ESMTP helo=<test.example.com> Jun 25 11:42:56 myhostname postfix/smtpd[385]: generic_checks: name=check_sender_access status=0 Jun 25 11:42:56 myhostname postfix/smtpd[385]: generic_checks: name=reject Jun 25 11:42:56 myhostname postfix/smtpd[385]: NOQUEUE: reject: RCPT from test.example.com[192.168.40.3]: 554 5.7.1 <test.example.com[192.168.40.3]>: Client host rejected: Access denied; from=<santosh.malav...@example.com> to=<lastt...@testdomain.com> proto=ESMTP helo=<test.example.com> Jun 25 11:42:56 myhostname postfix/smtpd[385]: generic_checks: name=reject status=2 Jun 25 11:42:56 myhostname postfix/smtpd[385]: generic_checks: name=classValidSender status=2 Jun 25 11:42:56 myhostname postfix/smtpd[385]: generic_checks: name=check_client_access status=2 Jun 25 11:42:56 myhostname postfix/smtpd[385]: > test.example.com[192.168.40.3]: 554 5.7.1 <test.example.com[192.168.40.3]>: Client host rejected: Access denied Jun 25 11:42:56 myhostname postfix/smtpd[385]: < test.example.com[192.168.40.3]: DATA Jun 25 11:42:56 myhostname postfix/smtpd[385]: > test.example.com[192.168.40.3]: 554 5.5.1 Error: no valid recipients Jun 25 11:42:56 myhostname postfix/smtpd[385]: < test.example.com[192.168.40.3]: RSET Jun 25 11:42:56 myhostname postfix/smtpd[385]: > test.example.com[192.168.40.3]: 250 2.0.0 Ok Jun 25 11:42:56 myhostname postfix/smtpd[385]: < test.example.com[192.168.40.3]: QUIT Jun 25 11:42:56 myhostname postfix/smtpd[385]: > test.example.com[192.168.40.3]: 221 2.0.0 Bye I have tried to search it on the google, and got one url http://comments.gmane.org/gmane.mail.postfix.user/225900 where Noel Jones replied giving the following response : HOLD is not absolute and will be overridden by a later REJECT or DISCARD action. I did not understand the said response. Rgds, Santosh Malavade