Old 17th January 2006, 17:20
onesandtwos onesandtwos is offline
Junior Member
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Red face postfix help please


Bit new to PostFix and am having trouble setting it up.

I am trying to set up a null server that can send mail but not receive mail. The server running Postfix is on DMZ of network. We have an exchange Server on the LAN of the network that handles all receiving of mail. The postfix is for my webserver to send confirmation emails to internet users and that's it.

I followed the basic config and standard config for a null client in the documentation but its left me with some problems.

Program works fine sending mail to external mail addresses like hotmail, gmail, etc but when I try to send mail to mydomain.co.uk i get an error of "connect to mail.mydomain.co.uk[xxx.xxx.xxx.xxx]: Connection timed out" where xxx.xxx.xxx.xxx is the address of my router.

This is having a knock on effect of my mailq filling up with mail from root. Anybody have any ideas how to force emails to my domain to be sent externally? This should resolve the root@mydomain.co.uk problem shouldn't it? Really really need a hand...

Here are changes to config i've made....

in master.cf i've commented out local delivery agent (local) as per documentation instructions.

A printout of postconf -n is as follows...

command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
html_directory = /usr/share/doc/postfix-2.2.5/html
inet_interfaces =
local_transport = error:local delivery is disabled
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = mydomain = co.uk
myhostname = mydomain
mynetworks =
mynetworks_style = host
myorigin = mydomain.co.uk
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.2.5/README_FILES relay_domains =
relayhost =
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
Reply With Quote
Sponsored Links
Old 17th January 2006, 18:35
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts

I guess the problem is that mail.mydomain.co.uk points to your router which then forwards the request to your Postfix server which cannot respond because you set inet_interfaces to .

The solution is to change the A record for mail.mydomain.co.uk so that it points to another server which can handle those mails.
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
Old 19th January 2006, 07:29
themachine themachine is offline
Senior Member
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts

YTou may not actually want to change the DNS entry of the mail.mydomain.co.uk .

Answer these first...

Is this a NAT Firewall that is passing traffic to a NAT IP?

Where is mail for the "mydomain.co.uk" domain suppose to go? Is it suppose to go to the mail server which is behind the firewall?

If this box is on the DMZ and it is a NAT'd network... and you're trying to send mail to "mail.mydomain..." then it is trying to go out, and come back in which isn't going to work. If it is a NAT'd network, I would just try adding "w.x.y.z mail.mydomain.co.uk" to your '/etc/hosts' file where 'w.x.y.z' is your NAT'd IP Address. You will also need to verify your '/etc/nsswitch.conf' file to ensure that the line exists "hosts: files dns" this will ensure that files [/etc/hosts] are queried before DNS and therefore would send the message to the NAT'd IP host and not out and then in.

Does that make sense?
Reply With Quote


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
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota... killfrog HOWTO-Related Questions 3 25th September 2009 22:45
postfix starts and stops why lhatle Installation/Configuration 2 21st December 2005 16:20
please help: postfix design and configuration jaguar Installation/Configuration 1 9th December 2005 12:46
postfix problem flourishing General 1 7th December 2005 18:39
Removed PostFix, Now MySql Problems!!! sapient Installation/Configuration 10 24th October 2005 08:11

All times are GMT +2. The time now is 09:58.

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