Thanks a lot Jones.
I am using /etc/postfix/mynetworks where I can list "trusted" network addresses (IPADDRESS) is it? Postconf -n output bounce_queue_lifetime = 1d command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 header_checks = regexp:/etc/postfix/header_checks html_directory = no inet_interfaces = all mail_owner = postfix mailq_path = /usr/bin/mailq manpage_directory = /usr/local/man maximal_queue_lifetime = 1d message_size_limit = 20971520 mydomain = cyberia.net.sa myhostname = mailgate5.cyberia.net.sa newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = no relay_domains = hash:/etc/postfix/relay_domains sample_directory = /etc/postfix sendmail_path = /usr/sbin/sendmail setgid_group = postdrop smtpd_banner = smtp.cyberia.net.sa smtpd_client_restrictions = check_client_access hash:/etc/postfix/access, check_client_access cidr:/etc/postfix/mynetworks, reject_rbl_client bl.spamcop.vnet,zen.spamhaus.org transport_maps = hash:/etc/postfix/transport unknown_local_recipient_reject_code = 550 following Logs appear in /var/log/maillog Apr 10 11:21:02 smtp2 postfix/smtpd[25385]: NOQUEUE: reject: RCPT from unknown[212.119.65.13]: 554 5.7.1 <ejaz...@hotmail.com>: Relay access denied; from=<me...@cyberia.net.sa> to=<ejaz...@hotmail.com> proto=ESMTP helo=<EJAZ> Ejaz -----Original Message----- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Noel Jones Sent: Monday, April 11, 2011 3:05 PM To: postfix-users@postfix.org Subject: Re: smptd_client_restriction On 4/11/2011 1:08 AM, mejaz wrote: > Hello, > > Many thanks for your feedback it works for me after replacing > "hash" with "cidr" but after that whenever I was trying to > send emails to outside domains it says relay access denied > although the trusted IPs are listed in my network file. > > Please help > > Ejaz Please don't top post. Please show us "postconf -n" output, postfix logging of the unwanted behavior, and why you think that IP is in mynetworks. -- Noel Jones -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.