LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-27-2012, 04:37 AM   #1
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Rep: Reputation: 21
postfix client host rejected


i setup a postfix mail server on a fedora 14 box
I can send perfectly but i cant receive any email from outsid

I'm getting
Code:
Mar 20 12:46:42 serverlinux postfix/smtpd[11394]: connect from nm19.bullet.mail.ird.yahoo.com[77.238.189.76]
Mar 20 12:46:44 serverlinux postfix/smtpd[11394]: NOQUEUE: reject: RCPT from nm19.bullet.mail.ird.yahoo.com[77.238.189.76]: 554 5.7.1 <nm19.bullet.mail.ird.yahoo.com[77.238.189.76]>: Client host rejected: Access denied; from=<xxxx@yahoo.fr> .............

Code:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = mail.mydomain.org
mydomain =mydomain.org
myorigin = $mydomain
inet_interfaces =all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 127.0.0.0/8,192.168.1.0/24
home_mailbox = Maildir/
header_checks = regexp:/etc/postfix/header_checks
smtpd_banner = $myhostname ESMTP
mailbox_size_limit = 1073741824


# for SMTP-Auth settings

smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname

inet_protocols = all
unknown_local_recipient_reject_code = 550

#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
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-2.7.7/samples
readme_directory = /usr/share/doc/postfix-2.7.7/README_FILES
smtpd_client_restrictions =permit_mynetworks,permit_sasl_authenticated, reject_non_fqdn_helo_hostname,permit
smtpd_helo_restrictions =permit_mynetworks,reject_non_fqdn_helo_hostname,reject_unknown_helo_hostname,permit_sasl_authenticated,permit
smtpd_recipient_restrictions =reject_unauth_pipelining,reject_non_fqdn_recipient,reject_invalid_helo_hostname,reject_unknown_recipient_domain,permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,permit
smtpd_sender_restrictions =permit_sasl_authenticated,reject_non_fqdn_sender,reject_unknown_sender_domain,reject_unauth_destination,permit
and here is the output of the DIG command


Code:
[root@serverlinux morad]# dig mx mydomain.org

; <<>> DiG 9.7.2-P2-RedHat-9.7.2-2.P2.fc14 <<>> mx mydomain.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9619
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;mydomain.org.			IN	MX

;; ANSWER SECTION:
mydomain.org.		3600	IN	MX	10 mail.mydomain.org.

;; AUTHORITY SECTION:
mydomain.org.		3206	IN	NS	ns02.domaincontrol.com.
mydomain.org.		3206	IN	NS	ns01.domaincontrol.com.

;; ADDITIONAL SECTION:
ns01.domaincontrol.com.	7592	IN	A	216.69.185.1

;; Query time: 1082 msec
;; SERVER: 81.52.165.35#53(81.52.165.35)
;; WHEN: Tue Mar 20 12:56:03 2012
;; MSG SIZE  rcvd: 122
thx in advance!!!!
 
Old 03-27-2012, 08:29 AM   #2
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Original Poster
Rep: Reputation: 21
problem solved!!!!!!!!!!!!!!!!!!!
I had to comment smtpd_client_restrictions -O in the /etc/postfix/master.cf
Code:
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
my server was not permitting others MTA to establish a connction ,only authenticated users was allowed.

i hope this will save you some trouble.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix+Dovecot+MySQL+SASL/TLS : Client host rejected: Access denied CopalFreak Slackware 2 05-05-2011 07:41 PM
Mail from Postfix to hotmail: rejected ! gagou7 Linux - Server 5 10-10-2009 08:21 AM
What Does Postfix Do w/ Rejected Messages? carlosinfl Linux - Server 1 02-27-2008 01:42 AM
nVidia: client 6 rejected from local host johnny2 Linux - Hardware 0 02-01-2005 05:09 PM
Postfix error: Client host rejected: cannot find your hostname. olegarr Linux - Networking 2 06-28-2003 04:38 PM


All times are GMT -5. The time now is 10:12 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration