Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th January 2007, 07:41
gabrix gabrix is offline
Senior Member
 
Join Date: Sep 2006
Location: Napoli
Posts: 186
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to gabrix Send a message via Yahoo to gabrix Send a message via Skype™ to gabrix
Question Postfix reject connections

Postfix allow logins but rejects extra lan connections for 2 diferent reasons looking at logs,first log a connection from gmail me sending a test mail:
Code:
Jan 12 06:39:04 mail postfix/smtpd[10109]: connect from ug-out-1314.google.com[66.249.92.175]
Jan 12 06:39:12 mail postfix/smtpd[10109]: NOQUEUE: reject: RCPT from ug-out-1314.google.com[66.249.92.175]: 554 <gabrix@gabrix.ath.cx>: Relay access denied; from=<sickuser@gmail.com> to=<gabrix@gabrix.ath.cx> proto=ESMTP helo=<ug-out-1314.google.com>
Jan 12 06:39:14 mail postfix/smtpd[10109]: disconnect from ug-out-1314.google.com[66.249.92.175]
the other kind of reject:
Code:
Jan 12 07:21:36 mail postfix/smtp[10968]: 962EF1BF80: to=<gabrix@gabrix.ath.cx>, relay=none, delay=1879, status=deferred (connect to gabrix.ath.cx[82.61.94.18]: Connection refused
I'm not using any kind of fancy configuration option keeping configuration as minimum as possible this is a postconf -n:
Code:
root@mail:~# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
delay_warning_time = 4h
home_mailbox = Maildir/
inet_interfaces = all
mailbox_size_limit = 0
mydestination = mail.gabrix.ath.cx, localhost.gabrix.ath.cx, argo, localhost
myhostname = mail.gabrix.ath.cx
mynetworks = 192.168.1.1/32,192.168.1.0/24,192.168.0.0/24,127.0.0.1/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtpd_banner = $myhostname ESMTP $mail_name
Thanks for help !
__________________
http://www.gabrix.ath.cx
Reply With Quote
Sponsored Links
  #2  
Old 12th January 2007, 22:18
gabrix gabrix is offline
Senior Member
 
Join Date: Sep 2006
Location: Napoli
Posts: 186
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to gabrix Send a message via Yahoo to gabrix Send a message via Skype™ to gabrix
Default

I got my mail system working this is the main.cf
Quote:
root@mail:~# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
delay_warning_time = 4h
home_mailbox = Maildir/
inet_interfaces = all
mailbox_size_limit = 0
mydestination = $mydomain, mail.gabrix.ath.cx, localhost.gabrix.ath.cx, argo, localhost
mydomain = gabrix.ath.cx
myhostname = mail.gabrix.ath.cx
mynetworks = 192.168.1.1/32,192.168.1.0/24,192.168.0.0/24,127.0.0.1/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtpd_banner = $myhostname ESMTP $mail_name
__________________
http://www.gabrix.ath.cx
Reply With Quote
  #3  
Old 13th January 2007, 08:13
gabrix gabrix is offline
Senior Member
 
Join Date: Sep 2006
Location: Napoli
Posts: 186
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to gabrix Send a message via Yahoo to gabrix Send a message via Skype™ to gabrix
Default

False allarm ! Maybe i hoped it was sorted but never say cat if it's not in the sac ... ? whatever ... Looking at logs the error is always a name resolution for interfaces i suppose , that smtpd_peer_init !
Quote:
Jan 13 01:12:04 mail postfix/smtpd[9522]: warning: smtpd_peer_init: 208.67.35.129: address not listed for hostname router.xaverian.org
Jan 13 04:01:22 mail postfix/smtpd[7470]: warning: smtpd_peer_init: 192.168.1.1: address not listed for hostname argo
Jan 13 04:01:22 mail postfix/smtpd[7470]: warning: smtpd_peer_init: 192.168.1.1: address not listed for hostname argo
The main.cf is the one you see in the previous post above do you want me to post the /etc/hosts of the mail server or the gateway machine ?They are basically the same:
Quote:
127.0.0.1 localhost.localdomain localhost
192.168.0.1 netgear router
192.168.0.2 argo.gabrix.ath.cx argo
192.168.1.1 argo
192.168.1.4 www.gabrix.ath.cx ftp.gabrix.ath.cx obefpldcq2yrz76y.onion irc.gabrix.$
192.168.1.6 mail.gabrix.ath.cx tor.gabrix.ath.cx cilentomalia.gabrix.ath.cx printer.gabrix.ath.cx m$
192.168.1.3 win WIN gabrix
192.168.1.2 makintoxik mac
__________________
http://www.gabrix.ath.cx
Reply With Quote
  #4  
Old 13th January 2007, 11:15
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

Did you setup a DNS server for your local lan 192.168.*.*? Looks like the name resolving and Reverse Name resolving is causing you problems.

Personally, I use a local DNS server to manage a xxxx.loc domain on a 172.16 IP range. It also serves rDNS requests to keep several packages happy that "require" valid responses to a rDNS request. I believe the smtpd deamon of postfix is such a program.
Reply With Quote
  #5  
Old 13th January 2007, 11:22
gabrix gabrix is offline
Senior Member
 
Join Date: Sep 2006
Location: Napoli
Posts: 186
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to gabrix Send a message via Yahoo to gabrix Send a message via Skype™ to gabrix
Default

Sure i do use dnsmasq ... serving names on the lan interface ...
__________________
http://www.gabrix.ath.cx
Reply With Quote
  #6  
Old 13th January 2007, 15:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Please try this:
Code:
postconf -e 'disable_dns_lookups = yes'
and restart Postfix.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 13th January 2007, 16:57
gabrix gabrix is offline
Senior Member
 
Join Date: Sep 2006
Location: Napoli
Posts: 186
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to gabrix Send a message via Yahoo to gabrix Send a message via Skype™ to gabrix
Default

Great falko ... i was right thinking to something like that i will let you know if it worked !
__________________
http://www.gabrix.ath.cx
Reply With Quote
  #8  
Old 15th January 2007, 18:02
gabrix gabrix is offline
Senior Member
 
Join Date: Sep 2006
Location: Napoli
Posts: 186
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to gabrix Send a message via Yahoo to gabrix Send a message via Skype™ to gabrix
Default

Bad news still same error ... dns are set and i'm generally suffering of slow internet even browsing.
Quote:
root@mail:~# tail -f /var/log/mail/warn
Jan 15 15:02:56 mail postfix/smtpd[21649]: warning: smtpd_peer_init: 192.168.1.1: address not listed for hostname argo
There is a problem apart from postfix i think:
Quote:
Jan 15 15:11:09 mail postfix/smtp[21742]: B41C81BFD3: to=<gabryfor@alice.it>, relay=none, delay=58882, status=deferred (connect to alice.it[217.169.121.251]: Connection timed out)
Jan 15 15:11:37 mail postfix/smtp[21734]: connect to gmail.com[64.233.161.83]: Connection timed out (port 25)
Jan 15 15:12:07 mail postfix/smtp[21734]: connect to gmail.com[216.239.57.83]: Connection timed out (port 25)
Jan 15 15:12:07 mail postfix/smtp[21734]: 006451BFD0: to=<sickuser@gmail.com>, relay=none, delay=59779, status=deferred (connect to gmail.com[216.239.57.83]: Connection timed out)
I'm using as dns the opendns service could it be the cause ?
__________________
http://www.gabrix.ath.cx
Reply With Quote
  #9  
Old 16th January 2007, 15:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Please check if your server is blacklisted: http://www.mxtoolbox.com/blacklists.aspx
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 16th January 2007, 19:02
gabrix gabrix is offline
Senior Member
 
Join Date: Sep 2006
Location: Napoli
Posts: 186
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to gabrix Send a message via Yahoo to gabrix Send a message via Skype™ to gabrix
 
Default

No it's not ... !
I have set opendns as my main dnsservers and they are located in london and i'm south italy.That's for privacy reasons they garantee don't record dns queries and anyway are in an another country , different laws and all that! They have powerfull computers but offcourse alice dnses are closer and my browsing is faster when i'm on alice dns.For my inside lan computers in /etc/resolv.conf file i have set my dnsmasq as first dns which is listening on eth1 gateway machine and opendsnes after .The gateway machine has opendns as first in resolv.conf.I have been changing the order too many times what do you think would be the right order ? What do you think of opendns ?
__________________
http://www.gabrix.ath.cx
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues with Postfix using "Virtual Users And Domains With Postfix, Courier And MySQL" Kyse HOWTO-Related Questions 15 6th January 2007 15:35
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36
Postfix refusing smtp connections chrisc Installation/Configuration 4 17th July 2006 15:53
postfix starts and stops why lhatle Installation/Configuration 2 21st December 2005 15:20


All times are GMT +2. The time now is 13:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.