Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
POSTFIX not receiving from outside.. HELP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
g4dave
n00b
n00b


Joined: 24 Apr 2002
Posts: 7
Location: Sioux Falls, SD

PostPosted: Tue Sep 17, 2002 9:00 pm    Post subject: POSTFIX not receiving from outside.. HELP Reply with quote

Okay.. I have replaced our old server running sendmail with Gentoo 1.2 running postfix for the MTA. I can send mail locally to users and from local to mail.yahoo.com and others. But I cannot receive mail from say yahoo.com or hotmail.com or my home domain. It never arrives. /var/log/ * only shows my outlook express logging in to check the mail via imap. Nothing else except when I send outgoing.
I can telnet to our IP port 25 and it connects fine. Squirrelmail works, mail works locally and outbound. Any ideas? I read all posts on here regarding [postfix receiving] and nothing seems to fix it. I setup out DNS to make sure that the MX record is ok, checked the firewall for port 25, checked the main.cf file. Still can't get mail! Here is my postconf -n.

root@sf1# postconf -n
alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
home_mailbox = .maildir/
inet_interfaces = $myhostname, localhost
local_destination_concurrency_limit = 2
mydestination = $myhostname, localhost.$mydomain, $mydomain
myhostname = sf1.asiint.com
myorigin = $mydomain

ARGH.. Any ideas? I have been dinking with this for about 5 hours now. I even read the entire FAQ at postfix.org and searched google groups/google for postfix receiving. Must-Have-Mail! :)

Thanks
_________________
-----------------------------------------------
Whip your unit out, shake it and scream "BuulahhhuwahhhhhhAAAAA!"
-----------------------------------------------
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Tue Sep 17, 2002 11:51 pm    Post subject: postfix not r'cving from outside Reply with quote

Looks to me like DNS is hosed. I can't get a mail exchanger record out of your two name servers.

sf1.asiint.com
ns1.uswest.net

Since MTA's need an authorative DNS lookup before then send emails things are stalling on the sender side.

The goods news is you have another 10-15 hours to fix this before mail starts bouncing. All mail is currently in transit. It's queued until the mail servers can get DNS. After 24 in the queue, many mail system will start bouncing email back to the sender.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
g4dave
n00b
n00b


Joined: 24 Apr 2002
Posts: 7
Location: Sioux Falls, SD

PostPosted: Wed Sep 18, 2002 3:29 am    Post subject: Re: postfix not r'cving from outside Reply with quote

kashani wrote:
Looks to me like DNS is hosed. I can't get a mail exchanger record out of your two name servers.

sf1.asiint.com
ns1.uswest.net

Since MTA's need an authorative DNS lookup before then send emails things are stalling on the sender side.

The goods news is you have another 10-15 hours to fix this before mail starts bouncing. All mail is currently in transit. It's queued until the mail servers can get DNS. After 24 in the queue, many mail system will start bouncing email back to the sender.

kashani


Gah.. I thought DNS was acting screwy. I will have to mess with it some more. I slapped the old hard drives back in with SuSE so at least people can get their E-Mail. I have another server setup at smartcrap.com and I will mess with that tomorrow.

You think that with DNS working correctly it will work then? I currently don't have a MX defined on the old system and the mail works fine there.

Thanks for the heads up!

-Dave
_________________
-----------------------------------------------
Whip your unit out, shake it and scream "BuulahhhuwahhhhhhAAAAA!"
-----------------------------------------------
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Wed Sep 18, 2002 4:58 am    Post subject: Re: postfix not r'cving from outside Reply with quote

[quote="g4dave
You think that with DNS working correctly it will work then? I currently don't have a MX defined on the old system and the mail works fine there.

Thanks for the heads up!

-Dave[/quote]

That seem odd. If there isn't an MX record for your domain you'll never get mail from the rest of the interent. I recommend the following tests once you think about switching over again.

During all of these it would be a great idea to run a tail -f against your mail log in a seperate window.

1. Verify local mail delivery.
Make sure that mail is being delivered locally to users when being sent locally. This indicates that local mail is getting to the user's spool. Things this catches:
a. postfix not running
b. bad path to users spool
c. typos esp of the domain name in the main.cf

2. Verify mail delivery via port 25 from outside the network.
Verifies that your machine can deleivery mail locally when mail in originating from outside your network. This catches things like:
a. New IP and no one updated the firewall
b. problems with $mynetwork

3. Verify mail can be relayed to your system by DNS.
You'll need a Unix system outside yours to test this.

sendmail -v user@domain.com
. <--- yep that's a dot by itself and then you hit enter.

You'll now see the conversation between the server you're logged into and the server you're sending the mail too. It'll look like this:

[para.noid.org]~% sendmail -v postmaster@asiint.com
.
postmaster@asiint.com... Connecting to asiint.com. via esmtp...
220 sf1.asiint.com ESMTP Sendmail 8.9.3/8.9.3; Tue, 17 Sep 2002 23:44:54 -0500
>>> EHLO noid.org
250-sf1.asiint.com Hello IDENT:root@para.noid.org [209.247.165.213] (may be forged), pleased to meet you
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
>>> MAIL From:<ramin@noid.org>
250 <ramin@noid.org>... Sender ok
>>> RCPT To:<postmaster@asiint.com>
250 <postmaster@asiint.com>... Recipient ok
>>> DATA
354 Enter mail, end with "." on a line by itself
>>> .
250 XAA01709 Message accepted for delivery
postmaster@asiint.com... Sent (XAA01709 Message accepted for delivery)
Closing connection to asiint.com.
>>> QUIT
221 sf1.asiint.com closing connection
[para.noid.org]~% nsl

On a side note I did all the above to your mail system and it all worked as of 12 midnight CDT, but I still can't figure out how your MX record is setup. Weird.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum