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
  #11  
Old 4th July 2009, 14:09
aberrio aberrio is offline
Senior Member
 
Join Date: Sep 2007
Posts: 150
Thanks: 13
Thanked 3 Times in 3 Posts
Default

Nope, same problem, Does Amavis has to do anything with conecting to the server?

Something that I noticed is that the for a reason postfix connect and disconnect every 2 minuts...

Jul 4 20:02:54 mail postfix/smtpd[30733]: connect from localhost[127.0.0.1]
Jul 4 20:02:54 mail postfix/smtpd[30733]: disconnect from localhost[127.0.0.1]
Jul 4 20:04:16 mail postfix/smtpd[30733]: connect from localhost[127.0.0.1]
Jul 4 20:04:54 mail postfix/smtpd[30749]: connect from localhost[127.0.0.1]
Jul 4 20:04:54 mail postfix/smtpd[30749]: disconnect from localhost[127.0.0.1]
Jul 4 20:05:03 mail postfix/smtpd[30733]: disconnect from localhost[127.0.0.1]
Jul 4 20:06:54 mail postfix/smtpd[30795]: connect from localhost[127.0.0.1]
Jul 4 20:06:54 mail postfix/smtpd[30795]: disconnect from localhost[127.0.0.1]
Jul 4 20:08:55 mail postfix/smtpd[30824]: connect from localhost[127.0.0.1]
Jul 4 20:08:55 mail postfix/smtpd[30824]: disconnect from localhost[127.0.0.1]
Jul 4 20:10:56 mail postfix/smtpd[30866]: connect from localhost[127.0.0.1]
Jul 4 20:10:56 mail postfix/smtpd[30866]: disconnect from localhost[127.0.0.1]

Regads

AL

Last edited by aberrio; 5th July 2009 at 03:14.
Reply With Quote
Sponsored Links
  #12  
Old 5th July 2009, 09:37
aberrio aberrio is offline
Senior Member
 
Join Date: Sep 2007
Posts: 150
Thanks: 13
Thanked 3 Times in 3 Posts
Default

Hello,

I fixed this issues. I remove localhost from inet_interfaces and add 127.0.0.1.

Does this will have any implication on security latter?

Best regards,

AL

Last edited by aberrio; 5th July 2009 at 18:53.
Reply With Quote
  #13  
Old 6th July 2009, 11:57
Tezux Tezux is offline
Member
 
Join Date: Jun 2009
Posts: 38
Thanks: 0
Thanked 2 Times in 2 Posts
Default

127.0.0.1 is localhost, there the same thing, so you haven't really changed anything. Thats weird how that fixed your problem
Are you sure your /etc/hosts file is correctly configured? Do you have 127.0.0.1 in there aswell? Just curious

As for it being a security issue, considering its the same thing as before I can't see how it could be, correct me if im wrong though?

What gave you the idea that was the problem? What OS are you using by the way?

I would love to see your /etc/hosts file config if you dont mind sharing

Anyway its cool you got it working, great job
Reply With Quote
  #14  
Old 6th July 2009, 14:53
aberrio aberrio is offline
Senior Member
 
Join Date: Sep 2007
Posts: 150
Thanks: 13
Thanked 3 Times in 3 Posts
Default

I know that was weird but is working now, I amble to telnet port 25 and I can see transaction on the queue. This configuration works for more that a year with out problem. I move my server my ISP give me a new set of IP and since that time my master and main file corrupted so I restore my backup but server did not works since.

I was able to receive email locally from monit and rootkit and able to send email, but not from external IP.

I change 127.0.0.0 in my host file but postfix complaint, so I decide to change in the main cfg.


Here is my host file

#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#
127.0.0.1 localhost

# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
zz.zzz.zz.zz mail.xxxxxxx.net mail
127.0.0.2 mail.xxxxxxx.net mail
Reply With Quote
  #15  
Old 7th July 2009, 13:42
Tezux Tezux is offline
Member
 
Join Date: Jun 2009
Posts: 38
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Have you tried changing the hosts file to something like this (changes in bold) and removing the last line at the bottom altogether which, why is it also stating localhost as 127.0.0.2 but at the top as 127.0.0.1? Wouldn't it be better to just keep it as 127.0.0.1 throughout ? Or do you have a need for this like that?


#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#
127.0.0.1 localhost.localdomain localhost

# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
zz.zzz.zz.zz mail.xxxxxxx.net mail
127.0.0.2 mail.xxxxxxx.net mail <<<<< Why is this line needed at all??
Reply With Quote
  #16  
Old 7th July 2009, 20:10
aberrio aberrio is offline
Senior Member
 
Join Date: Sep 2007
Posts: 150
Thanks: 13
Thanked 3 Times in 3 Posts
Default

I believe that line was added when I installed Amavis.

Regards,

AL
Reply With Quote
  #17  
Old 8th July 2009, 10:26
Tezux Tezux is offline
Member
 
Join Date: Jun 2009
Posts: 38
Thanks: 0
Thanked 2 Times in 2 Posts
 
Default

So if you remove it and then change the inet config back to normal are all your problems solved?
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
libWand.so.10 error Taxick Installation/Configuration 8 3rd May 2009 01:27
hotmail rejects outgoing email nzimas Server Operation 3 1st May 2009 03:39
unable to receive email from postfix/ISPconfig with Microcrap Outlook 2007 fireman71 Installation/Configuration 6 9th December 2007 16:49
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29


All times are GMT +2. The time now is 10:04.


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