Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd February 2010, 22:01
uKrease uKrease is offline
Junior Member
 
Join Date: Feb 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix not receiving mail.

Greetings community,

I have trawled a few of the threads on this forum regarding Postfix not being able to receive mail, and I have changed a few configuration options in main.cf, and master.cf, created a file called /etc/mailname per some suggestions, and I am not winning this battle.

I am worried that I am making all these config changes and that with the problem still existing, that I am barking up the wrong tree.

If I log in via telnet and send a message, the following occurs:

Feb 3 20:46:53 nazgul postfix/smtpd[13216]: connect from nazgul.midnightcoders.co.za[127.0.0.1]
Feb 3 20:48:39 nazgul postfix/smtpd[13216]: 9A38718F75C: client=nazgul.midnightcoders.co.za[127.0.0.1]
Feb 3 20:49:23 nazgul postfix/cleanup[13311]: 9A38718F75C: message-id=<20100203204839.9A38718F75C@nazgul.midnightcode rs.co.za>
Feb 3 20:49:23 nazgul postfix/qmgr[13194]: 9A38718F75C: from=<chris@pixcel.co.za>, size=461, nrcpt=1 (queue active)
Feb 3 20:49:23 nazgul postfix/smtp[13359]: connect to mail.pixcel.co.za[69.164.193.4]: Connection refused (port 25)
Feb 3 20:49:23 nazgul postfix/smtp[13359]: 9A38718F75C: to=<chris@pixcel.co.za>, relay=none, delay=96, delays=96/0.01/0/0, dsn=4.4.1, status=deferred (connect to mail.pixcel.co.za[69.164.193.4]: Connection refused)
Feb 3 20:49:30 nazgul postfix/smtpd[13216]: disconnect from nazgul.midnightcoders.co.za[127.0.0.1]

My main.cf is quite long, are there specific parts I should post ?
I followed the tutorials on HowtoForge for setting up ISP Config 3 on a Centos 5.4 64 bit server.

Thank you for your assistance.
Reply With Quote
Sponsored Links
  #2  
Old 3rd February 2010, 22:22
uKrease uKrease is offline
Junior Member
 
Join Date: Feb 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK sO I read a few other psots and I see this is required info :

Code:
[root@nazgul share]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 *:930                       *:*                         LISTEN      2444/rpc.statd      
tcp        0      0 nazgul.midnightcoders:10024 *:*                         LISTEN      2878/amavisd (maste 
tcp        0      0 *:mysql                     *:*                         LISTEN      2672/mysqld         
tcp        0      0 *:sunrpc                    *:*                         LISTEN      2420/portmap        
tcp        0      0 li108-4.members.lino:domain *:*                         LISTEN      2835/mydns          
tcp        0      0 nazgul.midnightcoder:domain *:*                         LISTEN      2835/mydns          
tcp        0      0 nazgul.midnightcoders.:smtp *:*                         LISTEN      13191/master        
tcp        0      0 nazgul.midnightcoders:38902 nazgul.midnightcoders:mysql TIME_WAIT   -                   
tcp        0      0 nazgul.midnightcoders:38905 nazgul.midnightcoders:mysql TIME_WAIT   -                   
tcp        0      0 nazgul.midnightcoders:38904 nazgul.midnightcoders:mysql ESTABLISHED 7899/httpd          
tcp        0      0 nazgul.midnightcoders:38907 nazgul.midnightcoders:mysql ESTABLISHED 11050/httpd         
tcp        0      0 nazgul.midnightcoders:38906 nazgul.midnightcoders:mysql TIME_WAIT   -                   
tcp        0      0 nazgul.midnightcoders:40864 nazgul.midnightcoders.:smtp ESTABLISHED 12929/httpd         
tcp        0      0 nazgul.midnightcoders:42228 nazgul.midnightcoders.:smtp ESTABLISHED 15263/httpd         
tcp        0      0 nazgul.midnightcoders:mysql nazgul.midnightcoders:38904 ESTABLISHED 2672/mysqld         
tcp        0      0 nazgul.midnightcoders:mysql nazgul.midnightcoders:38907 ESTABLISHED 2672/mysqld         
tcp        0      0 *:imaps                     *:*                         LISTEN      9450/couriertcpd    
tcp        0      0 *:pop3s                     *:*                         LISTEN      9462/couriertcpd    
tcp        0      0 *:pop3                      *:*                         LISTEN      9456/couriertcpd    
tcp        0      0 *:imap                      *:*                         LISTEN      9443/couriertcpd    
tcp        0      0 *:webcache                  *:*                         LISTEN      12920/httpd         
tcp        0      0 *:http                      *:*                         LISTEN      12920/httpd         
tcp        0      0 localhost6.localdoma:domain *:*                         LISTEN      2835/mydns          
tcp        0      0 *:ssh                       *:*                         LISTEN      2567/sshd           
tcp        0      0 *:https                     *:*                         LISTEN      12920/httpd         
tcp        0      0 li108-4.members.linode:http genkt-056-022.t-mobil:49847 TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http genkt-056-022.t-mobil:49830 TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http ::ffff:60.195.143.7:2312    TIME_WAIT   -                   
tcp        1 159140 li108-4.members.linode:http genkt-056-022.t-mobil:50845 CLOSE_WAIT  7899/httpd          
tcp        0      0 li108-4.members.linode:http ::ffff:60.195.14:ace-client TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http genkt-056-022.t-mobil:49876 TIME_WAIT   -                   
tcp        0   4096 li108-4.members.linode.:ssh dsl-185-106-65.dynami:54918 ESTABLISHED 29112/sshd: compile 
tcp        0      0 li108-4.members.linode:http genkt-056-022.t-mobil:49713 TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http genkt-056-022.t-mobil:51000 ESTABLISHED 11050/httpd         
tcp        0      0 li108-4.members.linode:http genkt-056-022.t-mobil:49725 TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http genkt-056-022.t-mobil:49980 TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http crawl-66-249-71-123.g:33835 TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http genkt-056-022.t-mobil:49726 TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http genkt-056-022.t-mobil:49696 TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http genkt-056-022.t-mobil:49699 TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http genkt-056-022.t-mobil:49706 TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http genkt-056-022.t-mobil:49685 TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http genkt-056-022.t-mobil:49684 TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http genkt-056-022.t-mobil:49783 TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http crawl-66-249-71-123.g:65102 TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http genkt-056-022.t-mobil:49758 TIME_WAIT   -                   
tcp        0      0 li108-4.members.linode:http ::ffff:60.195.143.7:amt     TIME_WAIT   -                   
[root@nazgul share]#
Reply With Quote
  #3  
Old 4th February 2010, 14:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by uKrease View Post
If I log in via telnet and send a message, the following occurs:

Feb 3 20:46:53 nazgul postfix/smtpd[13216]: connect from nazgul.midnightcoders.co.za[127.0.0.1]
Feb 3 20:48:39 nazgul postfix/smtpd[13216]: 9A38718F75C: client=nazgul.midnightcoders.co.za[127.0.0.1]
Feb 3 20:49:23 nazgul postfix/cleanup[13311]: 9A38718F75C: message-id=<20100203204839.9A38718F75C@nazgul.midnightcode rs.co.za>
Feb 3 20:49:23 nazgul postfix/qmgr[13194]: 9A38718F75C: from=<chris@pixcel.co.za>, size=461, nrcpt=1 (queue active)
Feb 3 20:49:23 nazgul postfix/smtp[13359]: connect to mail.pixcel.co.za[69.164.193.4]: Connection refused (port 25)
Feb 3 20:49:23 nazgul postfix/smtp[13359]: 9A38718F75C: to=<chris@pixcel.co.za>, relay=none, delay=96, delays=96/0.01/0/0, dsn=4.4.1, status=deferred (connect to mail.pixcel.co.za[69.164.193.4]: Connection refused)
Feb 3 20:49:30 nazgul postfix/smtpd[13216]: disconnect from nazgul.midnightcoders.co.za[127.0.0.1]
This error is about sending. Do you have problems receiving mails as well?

Please make sure your IP isn't blacklisted: http://mxtoolbox.com/blacklists.aspx

What's the output of
Code:
postconf -n
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 4th February 2010, 17:47
uKrease uKrease is offline
Junior Member
 
Join Date: Feb 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi falko, thank you for your reply,

I can send mails out from the Squirrelmail interface, and they get received by the recipient.
However, any incoming mail simply does not show up.

I checked my server against the blacklist site, the last four tests came back as follows :

FIVETEN TIMEOUT 0
ORID TIMEOUT 0
REDHAWK TIMEOUT ERROR, Reponse code=2 0
SPAMRBL TIMEOUT

All other tests passed OK.

As for the output of postconf -n, it is copied below :

================================================
[root@nazgul ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = localhost
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
================================================

Thank you for your assistance, I appreciate your time and knowledge.

Last edited by uKrease; 4th February 2010 at 17:57. Reason: Wrong command posted :)
Reply With Quote
  #5  
Old 4th February 2010, 22:08
phamels phamels is offline
Member
 
Join Date: Aug 2005
Location: Belgium
Posts: 58
Thanks: 2
Thanked 2 Times in 2 Posts
Default

My first thought:

Derived from your postfix main.cf, your server is bound to: localhost which pretty much locks it out from the rest of the world.
That's why, when you telnet from localhost to localhost, you see your mail being forwarded to "mail.pixcel.co.za" for further handling, which is the same machine, but it's approaching it from the outside world ip 69.164.193.4.

Now that's a big no go because of the following line in your main.cf:

inet_interfaces = localhost


Change that to:
inet_interfaces = localhost 69.164.193.4

Restart postfix, and your server should now be ready to be conquered by the wonderfull world of spam :-)
Reply With Quote
  #6  
Old 5th February 2010, 08:01
uKrease uKrease is offline
Junior Member
 
Join Date: Feb 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi phamels, thank you for your reply,

I made the change as you suggested, however, my server is still not ready to be conquered by the world of spam

I now get this when I send mail to the account :

=====/var/log/maillog=======

Feb 5 06:42:39 nazgul postfix/smtpd[7152]: connect from mail-bw0-f225.google.com[209.85.218.225]
Feb 5 06:42:39 nazgul postfix/smtpd[7152]: NOQUEUE: reject: RCPT from mail-bw0-f225.google.com[209.85.218.225]: 554 5.7.1 <chris@pixcel.co.za>: Relay access denied; from=<chris.blake@tauspace.com> to=<chris@pixcel.co.za> proto=ESMTP helo=<mail-bw0-f225.google.com>
Feb 5 06:42:39 nazgul postfix/smtpd[7152]: disconnect from mail-bw0-f225.google.com[209.85.218.225]
Feb 5 06:45:02 nazgul pop3d: Connection, ip=[::ffff:127.0.0.1]
Feb 5 06:45:02 nazgul pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Feb 5 06:45:02 nazgul imapd: Connection, ip=[::ffff:127.0.0.1]
Feb 5 06:45:02 nazgul imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Feb 5 06:45:02 nazgul postfix/smtpd[7356]: connect from nazgul.midnightcoders.co.za[127.0.0.1]
Feb 5 06:45:02 nazgul postfix/smtpd[7356]: lost connection after CONNECT from nazgul.midnightcoders.co.za[127.0.0.1]
Feb 5 06:45:02 nazgul postfix/smtpd[7356]: disconnect from nazgul.midnightcoders.co.za[127.0.0.1]

==============

My Google account I sent the mail from responds with a very quick :

"Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <chris@pixcel.co.za>: Relay access denied (state 14)."

I also noticed that the entries in main.cf are seperate by a comma, ie localhost, 69.164.193.4, but I tried without, as per your post, and with, still no difference. I get the same message.

Thank you for your input, I appreciate your willingness to assist with my problem.
Reply With Quote
  #7  
Old 5th February 2010, 15:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Did you create an email account for chris@pixcel.co.za on the server? If so, how?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 5th February 2010, 16:48
MxToolBox MxToolBox is offline
Junior Member
 
Join Date: Nov 2009
Location: Austin, TX
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am not sure if this problem is resolved or not, I did an SMTP Diagnostic on your IP and I sent a manual test by Telnet and everything looks to be good. Let me know if you received the test or not...or if we can try to help with anything else.

Thank you,
@MxToolBox
__________________
MxToolBox.com
@MxToolBox
Reply With Quote
  #9  
Old 5th February 2010, 17:38
uKrease uKrease is offline
Junior Member
 
Join Date: Feb 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi falko,

I created the chris@pixcel.co.za email account via the ISPConfig interface about 3 months ago, along with a whole bunch of other accounts for various domains.

At present when I tail the log the inbound message for all domains are meeting with the same fate of not being delivered.

@MxToolBox, thank for your assistance, but I did not receive any mail in my inbox.
Reply With Quote
  #10  
Old 6th February 2010, 19:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

The postconf -n output should look different if ISPConfig is installed. I suggest you install it again and let the installer reconfigure all services.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

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
421 Unexpected failure Lizard King Installation/Configuration 20 7th July 2009 20:43
Postfix problem and few questions Gimly Installation/Configuration 12 7th July 2009 16:27
Stopped receiving emails! HELP terryoleary1981 General 1 28th January 2009 11:15
can't receive mail from outgoing postfix nmy Server Operation 4 26th October 2008 15:04
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47


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


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