LinuxQuestions.org
Visit Jeremy's Blog.
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 02-04-2011, 07:26 PM   #1
pookemasterus
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
Cannot send outbound mails Connection timed out (port 25)


Hello Linux Gurus,

I've ben punding myhead on this issue. I've setup a new postifx server on rhel5. After editing the needed entries, i can't seem to send any outbound mails to yahoo or any other domains.

My postconf -n is as follows:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = bhog.placard-hewitt.tm
myhostname = smtpbhog.bhog.placard-hewitt.tm
mynetworks = 10.0.0.0/8, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name
unknown_local_recipient_reject_code = 550


Error I get connect to domain.com [ip address]: Connection timed out (port 25)

I don't have a FW installed, I have a test MS exchange on the same network and can send out just fine.

Big help please!

Thanks a lot in advance.
 
Old 02-04-2011, 07:52 PM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 780Reputation: 780Reputation: 780Reputation: 780Reputation: 780Reputation: 780Reputation: 780
When you send a message, you should get various log entries in /var/log/mail.log. Would you please post the output of an attempt to send a message? This might help to better determine what the exact cause of the problem is. Initially I was thinking that port 25 may be blocked, but as pointed out the exchange server can send which says that it is not.

Note, each message will have several log entries associated with it, but you can use the hex string ID to determine which entires belong to a particular message.

Off hand, I suspect the problem *MAY* be the relay domains and I think you may want that to be blank, but the logs will help confirm this.
 
Old 02-04-2011, 09:17 PM   #3
pookemasterus
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Original Poster
Rep: Reputation: 0
[solved]

Thanks a lot NoWay2. It seems after doing a lot of test, for some reason it seems that the echange server was allowed on the allowed relay host. We added it and it seems everything is ok.

Thanks a lot!!!
 
  


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
ssh: connection to host port: 22: Connection timed out lost connection cucolin@ Linux - Server 4 11-22-2011 07:15 AM
ssh: connect to host XXXX port 22: Connection timed out jv2112 Linux - Newbie 3 07-04-2010 05:42 PM
Mail sending problem Postfix Connection timed out (port 25) malesh Linux - Server 3 03-20-2009 06:39 PM
sendmail - Connection timed out [dsn=4.0.0 stat=Deferred: Connection timed out] ananthak Linux - Software 0 04-24-2007 08:28 AM
Open tcp port & mails that i do not send. jrfly Linux - General 1 02-02-2005 10:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:09 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration