Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380
Rep:
Where is Postfix getting stuck?
Hello All,
I'm trying to get postfix to work, and I have it running internally without any problems. But, now I want to mail externally (of course) and I believe I'm having problems with my router+adsl modem.
My setup:
I have my linux servers hooked up to a broadband router, and this router gets its adsl connection from a modem I got from my ISP.
If I try to connect to localhost port 25, I can. If I try to connect via the adsl router port 25, I can't and same thing if I try via the router. I'm new to MTA's so I don't know if that is default security from postfix or if I need to able to connect from the outside? But anyways, i'm assuming that the issue is if Postfix can get outbound connections going...but how can I check that????
This is what I get when I try to mail to the outside:
---------------------------------------
The Postfix program
<XxXxXxXxXx@gmail.com>: Host or domain name not found. Name service error for
name=gmail.com type=MX: Host not found, try again
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380
Original Poster
Rep:
This is the error message I get in the mail log file when I try to send to gmail (same problem I posted earlier):
Mar 13 12:00:25 DomainName postfix/qmgr[22935]: B4050B01EF: from=<UserName@DomainName.com>, siz
e=355, nrcpt=1 (queue active)
Mar 13 12:00:25 DomainName postfix/smtp[32625]: B4050B01EF: to=<UserName@gmail.com>, relay=
none, delay=57, status=deferred (Host or domain name not found. Name service error for name=gma
il.com type=MX: Host not found, try again)
Mar 13 12:00:34 DomainName postfix/smtpd[32549]: disconnect from DomainName.com[127.0.0.1]
So basically the problem is:
"(Host or domain name not found. Name service error for name=gma
il.com type=MX: "
Would this mean that Postfix cannot make an outbound connection?
So I checked the docs in my adsl modem and it says:
"Static NAPT
For outgoing connections, NAPT entries are created dynamically when they try to reach a foreign host. "
So I assume this means that postifix will be able to get out if he tries....would this be right?
If that it is so, how can it not find the domain name?
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380
Original Poster
Rep:
Big step forward!
I can now send emails out to the internet!!!
The problem was that the address set in the postfix resolv.conf file was incorrect; I fixed it and now it works!....partly...:-(
The problem that I have now is that if I respond to the email I sent to myself, from the gmail account (or yahoo for that matter), he can't find his way back...
Any ideas on what I could check the inbound path of an email to know where it's getting stuck?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.