HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Postfix Cannot Receive Email - Smtp Timed Out (http://www.howtoforge.com/forums/showthread.php?t=54264)

newbielinx 25th September 2011 11:19

Postfix Cannot Receive Email - Smtp Timed Out
 
Hi everyone,

having problems on OS centos 5.6/5.7 - postfix - dovecot - I setup my postfix using this tutorial

1. I can send email to any domain but cannot received any email from external domain (but strange I can receive email from test server - look below).
2. I can send and received email between local account (using webmin and squirrelmail).
3. I cannot connect to my smtp server using thunderbird on port 25 or 110 (always timed out).

What info should I provide?

here's postfix config
Quote:

tinypaste.com/c97d73
I'm able to test my server AND SUCCESS using this https://www.wormly.com/test_smtp_server

Quote:

Resolving hostname...
Connecting...
SMTP -> FROM SERVER:
220 newbielinx-domain.com ESMTP Postfix
SMTP -> FROM SERVER:
250-newbielinx-domain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL FROM: newbielinx-test@gmail.com
SMTP -> FROM SERVER:
250 2.1.0 Ok
RCPT TO: supp@newbielinx-domain.com
SMTP -> FROM SERVER:
250 2.1.5 Ok
Sending Mail Message Body...
SMTP -> FROM SERVER:
354 End data with .
SMTP -> FROM SERVER:
250 2.0.0 Ok: queued as EF91C4D2DD
Message completed successfully.
I received the email "SMTP Test Message" on my mailbox supp@newbielinx-domain.com

When I connect to mail.newbielinx-domain.com 25 or 995 nothing changed in maillog.
When I send email to supp@newbielinx-domain.com from gmail or yahoo no changes on the log.

Also checking my computer IP using whatismyipaddress.com/blacklist-check [not listed on blacklist]

netstat -nalp | grep master | grep "LISTEN "
Quote:

tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 3970/master
host -t MX mail.newbielinx-domain.com
Quote:

mail.newbielinx-domain.com mail is handled by 10 direct-connect.newbielinx-domain.com.
host -t mx newbielinx-domain.com
Quote:

newbielinx-domain.com has no MX record
Trying to send email to supp@mail.newbielinx-domain.com here's the log
Quote:

Sep 25 05:40:21 newbielinx-domain postfix/smtpd[4938]: connect from gateway06.websitewelcome.com[67.18.21.22]
Sep 25 05:40:21 newbielinx-domain postfix/smtpd[4938]: NOQUEUE: reject: RCPT from gateway06.websitewelcome.com[67.18.21.22]: 554 5.7.1 <supp@direct-connect.newbielinx-domain.com>: Relay access denied; from=<sls@blabla.info> to=<supp@direct-connect.newbielinx-domain.com> proto=SMTP helo=<gateway06.websitewelcome.com>
Sep 25 05:40:21 newbielinx-domain postfix/smtpd[4938]: disconnect from gateway06.websitewelcome.com[67.18.21.22]
Send email again (this time from gmail) newbielinx-test@gmail.com to supp@mail.newbielinx-domain.com
- SUCCESS Email received on mailbox

Send again from gmail but this time to supp@newbielinx-domain.com(without mail.)
Nothing on the log (FAIL)

I just changed my mx record from "mail" to "@" on cloudflare and see how it goes. And I still don't understand why the email from sls@blabla.info rejetcted.

Problem solved now I can received and and send from and to any local and external email host
here's the solution:
changed mydestination to mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

One more problem... can't connect to my smtp mail.newbielinx-domain.com

Mark_NL 26th September 2011 09:26

It got rejected because it looks to me you want to mail to @newbielinx-domain.com, but you send mail to @direct-connect.newbielinx-domain.com which is mostlikely not defined as your "mydestination" hence postfix will say "i won't relay this mail for you!" (relay access denied)

newbielinx 26th September 2011 16:24

@mark NL

I can receive any email and send email anywhere (local or external) the only problem I have now is I can only use squirrelmail, webmin mail, etc but not smpt on my computer (outlook, thunderbird, etc)

Mark_NL 26th September 2011 17:08

Does your provider allow you to send mail through another server that is not owned by them? Alot of ISP's block port 25 on their networks.

So you could try submission ..

uncomment the submission lines in master.cf of your postfix installation, then restart postfix and try to connect with port 587 instead of 25 (i think you need to enable TLS as well on the client)

newbielinx 26th September 2011 17:14

Quote:

Originally Posted by Mark_NL (Post 264225)
Does your provider allow you to send mail through another server that is not owned by them? Alot of ISP's block port 25 on their networks.

So you could try submission ..

uncomment the submission lines in master.cf of your postfix installation, then restart postfix and try to connect with port 587 instead of 25 (i think you need to enable TLS as well on the client)

Updating my iptables.. problem solved.

Thank you Mark.

===
I see no button to mark the thread solved or there is no button?


All times are GMT +2. The time now is 06:11.

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