#1  
Old 21st August 2006, 05:08
dregan dregan is offline
Junior Member
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix fails for local IP

hi,

Thank you for the perfect installation howto... It covered almost everything that I needed.

I can happily access my new mail server from external locations but get a "Sending of message failed" from my local network ip address range.

the message says;
The message could not be sent because connecting to SMTP server fruity.realtek.net.au failed. The server may be unavailable or is refusing SMTP connections. Please very that your SMTP server setting is correct and try atain, or else contact your network administrator.

I can read emails or reveiw them in folders but cannot transfer them (or junk) into correct folders when I am using a local networ pc.

As a newbie to the form, thankyou, I don't know what other info you would like... But any suggestions will be welcome.
Reply With Quote
Sponsored Links
  #2  
Old 21st August 2006, 06:20
themachine themachine is offline
Senior Member
 
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What shows up in the mail log when this happens:

tail -f /var/log/maillog


It sounds like the clients are not enabling SMTP Authentication. By default, the Postfix server will only allow mail to be sent if the client has authenticated, or if the client's IP is listed in the '$mynetworks' variable.

That said, if you do not want users on the local network to have to authenticate, then you could simply add the local networks IP range to the '$mynetworks' variable in '/etc/postfix/main.cf':

Code:
mynetworks = 127.0.0.0/8, 192.168.0.0/24

or something like that.
__________________
themachine
5dollarwhitebox.org
Reply With Quote
  #3  
Old 21st August 2006, 13:41
dregan dregan is offline
Junior Member
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yup, that was the problem, I had 192.168.1.1 instead of 192.168.1.0 <g> Thank you very much.

I can now send emails but nothing gets to a local pc on the network (it actually dissapears) - the mail.log file has this message;

Aug 21 21:39:01 fruity postfix/smtpd[10047]: connect from unknown[192.168.1.4]
Aug 21 21:39:01 fruity postfix/smtpd[10047]: A3D391502EA: client=unknown[192.168.1.4]
Aug 21 21:39:01 fruity postfix/cleanup[10050]: A3D391502EA: message-id=<44E99B0C.6030706@realtek.net.au>
Aug 21 21:39:02 fruity postfix/qmgr[9912]: A3D391502EA: from=<dannyr@realtek.net.au>, size=654, nrcpt=1 (queue active)
Aug 21 21:39:02 fruity postfix/smtpd[10047]: disconnect from unknown[192.168.1.4]
Aug 21 21:39:02 fruity postfix/smtp[10061]: connect to realtek.net.au[220.233.28.17]: Connection refused (port 25)
Aug 21 21:39:02 fruity postfix/smtp[10061]: connect to fruity.realtek.net.au[220.233.28.17]: Connection refused (port 25)
Aug 21 21:39:02 fruity postfix/smtp[10061]: A3D391502EA: to=<dannyr@realtek.net.au>, relay=none, delay=1, status=deferred (connect to fruity.realtek.net.au[220.233.28.17]: Connection refused)

Could this be a problem with my DynaLink Modem and its NAT from the local network?

Thanks again
Reply With Quote
  #4  
Old 21st August 2006, 18:51
themachine themachine is offline
Senior Member
 
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Aug 21 21:39:02 fruity postfix/smtp[10061]: connect to realtek.net.au[220.233.28.17]: Connection refused (port 25)
Aug 21 21:39:02 fruity postfix/smtp[10061]: connect to fruity.realtek.net.au[220.233.28.17]: Connection refused (port 25)
Aug 21 21:39:02 fruity postfix/smtp[10061]: A3D391502EA: to=<dannyr@realtek.net.au>, relay=none, delay=1, status=deferred (connect to fruity.realtek.net.au[220.233.28.17]: Connection refused)

Could this be a problem with my DynaLink Modem and its NAT from the local network?

Yes, I would assume that it is a NAT issue. The request for a message going to 'realtek.net.au' is received. Postfix does a DNS lookup, which resolved to the Public IP of '220.233.28.17'. However, if the actual machine is behind the same firewall (i.e. the same NAT'd environment) then connections to the Public IP will fail. Any communication that happens between devices that are both behind the same firewall/NAT'd environment must communicate with eachother using the NAT/Private IP Addresses.

Resolution: Add an entry to the mail server's '/etc/hosts' file such as:

192.168.1.17 fruity.realtek.net.au fruity


Therefore any connections to 'fruity' or 'fruity.realtek.net.au' coming from this machine will resolve to the NAT IP. This should be done on all systems in the NAT environment, including IPs/hostsnames for all servers.

Hope that helps.
__________________
themachine
5dollarwhitebox.org
Reply With Quote
  #5  
Old 22nd August 2006, 10:07
dregan dregan is offline
Junior Member
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your comments - the host file on both mail server and posting pc appear to have correct hosts files.

Do you think I should put some reverse lookups and local domains in the stock bind files?

I have since made some vain attempts to modify the settings in the dynlink modems setup and now get the following messages;

Aug 22 20:19:49 fruity postfix/qmgr[9912]: EE7F01502FE: to=<dannyr@realtek.net.au>, relay=none, delay=15603, status=deferred (delivery temporarily suspended: connect to fruity.realtek.net.au[220.233.28.17]: Connection refused)
Aug 22 20:19:49 fruity postfix/qmgr[9912]: 764DD150304: from=<dannyr@realtek.net.au>, size=656, nrcpt=1 (queue active)
Aug 22 20:19:49 fruity postfix/qmgr[9912]: 764DD150304: to=<dannyrr@realtek.net.au>, relay=none, delay=1345, status=deferred (delivery temporarily suspended: connect to fruity.realtek.net.au[220.233.28.17]: Connection refused)
Aug 22 20:19:49 fruity postfix/qmgr[9912]: 50CB3150305: from=<rogert@e-standard.biz>, size=26389, nrcpt=1 (queue active)
Aug 22 20:19:49 fruity postfix/qmgr[9912]: 50CB3150305: to=<root@realtek.net.au>, relay=none, delay=1090, status=deferred (delivery temporarily suspended: connect to fruity.realtek.net.au[220.233.28.17]: Connection refused)

It appears that now the mail is "temporarily suspended"...... A copy is still put in the sent folder even though the actual email dissappears!

Danny

Last edited by dregan; 22nd August 2006 at 12:37.
Reply With Quote
  #6  
Old 22nd August 2006, 13:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Make sure port 25 is forwarded from your router to your server.
__________________
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 23rd August 2006, 09:17
dregan dregan is offline
Junior Member
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am an utter dill...... the main.cf line for mydestinations was ' # ' out as I had it directing to "#mydestination = $config_directory/mydestination" and with the list as in main.cf - it was also commented out...... <g take your best shot>

I have also botched an install for spamassassin and clamav - if you care to offer any more advise to me (I will not blame you if you dont!) - can you recommend a howto for spamassassin, clamav to me ---- please!

Thank you again for all your help!

Danny
Reply With Quote
  #8  
Old 23rd August 2006, 14:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

How about this one? http://www.howtoforge.com/howto_spam...lamav_procmail
It's a little bit old, but should still work (maybe with a few minor changes).
__________________
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
  #9  
Old 24th August 2006, 03:28
dregan dregan is offline
Junior Member
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thank you,

I will give that a go.

Thank you again for your support.

Danny
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
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
IMAP question - Moving servers and mail. Brenton Installation/Configuration 11 14th May 2010 14:38
Postfix with smtps fails (port 465) disasm Server Operation 1 28th May 2006 22:52
postfix starts and stops why lhatle Installation/Configuration 2 21st December 2005 15:20
postfix problem flourishing General 1 7th December 2005 17:39


All times are GMT +2. The time now is 11:57.


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