Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th September 2011, 12:19
newbielinx newbielinx is offline
Junior Member
 
Join Date: Sep 2011
Posts: 10
Thanks: 0
Thanked 2 Times in 2 Posts
Unhappy 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

Last edited by newbielinx; 25th September 2011 at 13:48.
Reply With Quote
Sponsored Links
  #2  
Old 26th September 2011, 10:26
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

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)
__________________
Real men don't backup... Real men cry!

http://www.e-rave.nl/
Reply With Quote
  #3  
Old 26th September 2011, 17:24
newbielinx newbielinx is offline
Junior Member
 
Join Date: Sep 2011
Posts: 10
Thanks: 0
Thanked 2 Times in 2 Posts
Default

@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)
Reply With Quote
  #4  
Old 26th September 2011, 18:08
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

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)
__________________
Real men don't backup... Real men cry!

http://www.e-rave.nl/
Reply With Quote
  #5  
Old 26th September 2011, 18:14
newbielinx newbielinx is offline
Junior Member
 
Join Date: Sep 2011
Posts: 10
Thanks: 0
Thanked 2 Times in 2 Posts
 
Default

Quote:
Originally Posted by Mark_NL View Post
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?
Reply With Quote
Reply

Bookmarks

Tags
centos, dovecot, mail, postfix

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 23:58
How cai remove amavis from postfix ? gabrix Server Operation 16 2nd October 2012 10:58
ftp authentication fails fooboo Installation/Configuration 34 26th March 2010 15:04
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 18:51
Postfix won't receive external email fred!head Server Operation 2 29th June 2008 20:30


All times are GMT +2. The time now is 09:17.


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