LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 05-07-2010, 03:30 PM   #1
zeos386sx
LQ Newbie
 
Registered: Oct 2004
Location: waco, tx
Distribution: Slackware
Posts: 27

Rep: Reputation: 15
postfix not receiving email from the outside world


i can't receive outside emails on a postfix server. i was able to get it to send emails with help in this thread. i can telnet into it via localhost, but not via domain name.

Code:
[root@cent ~]# telnet gandacomputers.com 25
Trying 24.155.13.116...
Connected to gandacomputers.com (24.155.13.116).
Escape character is '^]'.
Connection closed by foreign host.
[root@cent ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 cent.gandacomputers.com ESMTP Postfix
ehlo gandacomputers.com
250-cent.gandacomputers.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye
Connection closed by foreign host.
[root@cent ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavisfeed:[127.0.0.1]:10024
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 = gandacomputers.com, localhost.gandacomputers.com, localhost
mydomain = gandacomputers.com
myhostname = cent.gandacomputers.com
mynetworks = 192.168.1.0/24, 127.0.0.0/8, 24.155.13.0/23
myorigin = gandacomputers.com
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relayhost = [66.90.130.73]:25
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
[root@cent ~]# dig gandacomputers.com mx

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> gandacomputers.com mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19888
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4

;; QUESTION SECTION:
;gandacomputers.com.            IN      MX

;; ANSWER SECTION:
gandacomputers.com.     600     IN      MX      10 gandacomputers.com.

;; AUTHORITY SECTION:
gandacomputers.com.     46841   IN      NS      ns9.san.yahoo.com.
gandacomputers.com.     46841   IN      NS      yns1.yahoo.com.
gandacomputers.com.     46841   IN      NS      ns8.san.yahoo.com.
gandacomputers.com.     46841   IN      NS      yns2.yahoo.com.

;; ADDITIONAL SECTION:
ns8.san.yahoo.com.      5333    IN      A       98.136.43.32
ns9.san.yahoo.com.      5333    IN      A       66.196.84.168
yns1.yahoo.com.         70358   IN      A       98.136.43.32
yns2.yahoo.com.         70358   IN      A       66.196.84.168

;; Query time: 48 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Fri May  7 15:29:26 2010
;; MSG SIZE  rcvd: 200
 
Old 05-07-2010, 03:50 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,566

Rep: Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510
post: netstat -nap | grep :25
 
Old 05-07-2010, 04:00 PM   #3
zeos386sx
LQ Newbie
 
Registered: Oct 2004
Location: waco, tx
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
Code:
[root@cent ~]# netstat -nap | grep :25
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN      8147/master
 
Old 05-07-2010, 05:01 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,566

Rep: Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510
Post: the contents of /etc/hosts
and: /sbin/ifconfig -a (I want to see if cent actually owns and uses 24.155.13.116)

Do you have a firewall? Is it configured to allow port 25 inbound from the internet?
 
Old 05-07-2010, 05:09 PM   #5
zeos386sx
LQ Newbie
 
Registered: Oct 2004
Location: waco, tx
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6

this server is behind nat with port 25 forwarded to it and 24.155.13.116 is the public ip, i added it to dns and mx for the domain.

[root@cent ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0C:29:9E:97:E3
inet addr:192.168.1.65 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe9e:97e3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:223962 errors:7 dropped:10 overruns:0 frame:0
TX packets:326945 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:51274049 (48.8 MiB) TX bytes:428242983 (408.4 MiB)
Interrupt:177 Base address:0x1400
 
Old 05-07-2010, 05:13 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,566

Rep: Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510
On cent, does "telnet 192.168.1.65 25" work?

From different machine on your LAN, does "telnet 192.168.1.65 25" work?

Check your port forwarding, make sure it is forwarding 25 to 192.168.1.65.
 
Old 05-10-2010, 12:18 PM   #7
zeos386sx
LQ Newbie
 
Registered: Oct 2004
Location: waco, tx
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by AlucardZero View Post
On cent, does "telnet 192.168.1.65 25" work?
yes

Quote:
Originally Posted by AlucardZero View Post
From different machine on your LAN, does "telnet 192.168.1.65 25" work?
yes

Quote:
Originally Posted by AlucardZero View Post
Check your port forwarding, make sure it is forwarding 25 to 192.168.1.65.
it is forwarded properly.
 
Old 05-10-2010, 01:11 PM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,566

Rep: Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510
Does your ISP block inbound port 25?

If you switch everything to port 26 (incl the port forwarding etc), does it work?
 
Old 05-10-2010, 02:29 PM   #9
zeos386sx
LQ Newbie
 
Registered: Oct 2004
Location: waco, tx
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by AlucardZero View Post
Does your ISP block inbound port 25?
not sure

Quote:
Originally Posted by AlucardZero View Post
If you switch everything to port 26 (incl the port forwarding etc), does it work?
locally yes; by domain or public ip no

edit: just for laughs i tried disabling the firewall on the server and i still get the same problem when trying to connect by domain name.

Last edited by zeos386sx; 05-11-2010 at 11:17 AM.
 
  


Reply

Tags
postfix


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix not receiving email from outside tonyl Linux - Server 2 07-27-2009 06:57 AM
World Of Warcraft & Skype -- The receiving end hears everything :( Xel'naga666 Linux - Games 2 02-10-2008 03:58 PM
Postfix,Enforce_TLS, and Receiving Email fortezza Linux - Software 0 08-06-2005 11:07 PM
Problems receiving email via postfix ryedunn Linux - General 5 01-01-2005 07:55 PM
Problem receiving email from email server sharon Linux - Newbie 3 07-11-2003 03:57 AM


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

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