View Single Post
  #3  
Old 24th May 2013, 08:32
sharkey sharkey is offline
Junior Member
 
Join Date: Nov 2012
Posts: 22
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I have answered the questions within the quote.

Edit: A port scan shows port 25 is closed.

Quote:
Originally Posted by monkfish View Post
You would need to get straight in your own head what you mean by "cannot send or receive email" - that covers a multitude!!

- Have you tested from your machine to another mailbox on the same machine?

Yes

- Are your MX records correct and current?

Yes, however they weren't at first because I failed to add an A name record for my nameservers NS1.XXXXXXXX.co. and NS2.XXXXXXX.co I tested after they were fixed.

- From the mail logs it appears your dovecot is working and you can log into it, do you have squirrelmail or roundcube or similar installed, what happens when you submit a mail from there? Is it accepted, is it rejected?

Squirelmail: Server replied is blank

ERROR:
Message not sent. Server replied:


Parts of the log that jump out are:

Code:
May 23 03:43:50 server1 postfix/qmgr[2334]: 9D61D1A2259: from=<root@XXXXXX.co>, size=1616, nrcpt=1 (queue active)
May 23 03:43:50 server1 postfix/qmgr[2334]: 948851A2204: from=<root@XXXXXX.co>, size=1616, nrcpt=1 (queue active)
See the "from" part - xxx.co. Does the FQDN of the machine acutally end in just .co or have you simply masked that part. An incorrect FQDN can cause hotmail to refuse connections, as well as incorrect reverse DNS.

The FQDN name ends in .co
Arin is incorrect as my ISP errors when I try to update it.


See there's connections timed out to hotmail those mails should be queued - do a "postqueue -p" and see what it says for the reason. Can you telnet manually on port 25 to any of those addresses, do you have any firewall in the way that could be blocking you.

I'm not sure where web2 is coming from, I did not set that up.

Code:
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
505DC1A203B     2049 Thu May 23 02:37:43  web2@XXXXXX.com
           (connect to mx1.hotmail.com[65.54.188.72]:25: Connection timed out)
                                         XXXXXX@msn.com

1ADD91A21CC     1873 Tue May 21 07:08:33  web2@server1.XXXXXX.co
(conversation with 0.0.0.0[0.0.0.0] timed out while receiving the initial server greeting)
                                         temp@temp.com

9D61D1A2259     1616 Thu May 23 01:09:24  root@XXXXXX.co
           (connect to mx2.hotmail.com[65.55.92.184]:25: Connection timed out)
                                         XXXXXX@msn.com

948851A2204     1616 Thu May 23 00:09:24  root@XXXXXX.co
           (connect to mx3.hotmail.com[65.54.188.72]:25: Connection timed out)
                                         XXXXXX@msn.com

9F4751A225A     2716 Thu May 23 01:20:07  root@XXXXXX.co
           (connect to mx3.hotmail.com[65.55.92.184]:25: Connection timed out)
                                         XXXXXX@msn.com

DDBE21A21C8     1873 Tue May 21 07:04:59  web2@server1.XXXXXX.co
(conversation with 0.0.0.0[0.0.0.0] timed out while receiving the initial server greeting)
                                         temp@temp.com

DAD881A21FE     1616 Wed May 22 23:09:24  root@XXXXXX.co
           (connect to mx4.hotmail.com[65.55.92.168]:25: Connection timed out)
                                         XXXXXX@msn.com

3918E1A2201     1616 Wed May 22 23:39:23  root@XXXXXX.co
            (connect to mx3.hotmail.com[65.55.37.72]:25: Connection timed out)
                                         XXXXXX@msn.com

85BD01A21FB     1616 Thu May 23 00:39:23  root@XXXXXX.co
           (connect to mx3.hotmail.com[65.54.188.72]:25: Connection timed out)
                                         XXXXXX@msn.com

457921A203E     1616 Thu May 23 02:39:04  root@XXXXXX.com
            (connect to mx3.hotmail.com[65.55.37.88]:25: Connection timed out)
                                         XXXXXX@msn.com

2C6AD1A21CE     1610 Thu May 23 03:09:05  root@XXXXXX.com
           (connect to mx3.hotmail.com[65.55.92.136]:25: Connection timed out)
                                         XXXXXX@msn.com

-- 24 Kbytes in 11 Requests.
I can telnet but when I ehlo connection is closed by foreign host

Port 25 is open on my IP block.

Seems to me the mail's being submitted to postfix but its unable to relay on.

Code:
fail2ban-dovecot-pop3imap  tcp  --  anywhere             anywhere             multiport dports pop3,pop3s,imap2,imaps
fail2ban-pureftpd  tcp  --  anywhere             anywhere             multiport dports ftp
fail2ban-sasl  tcp  --  anywhere             anywhere             multiport dports smtp
fail2ban-ssh  tcp  --  anywhere             anywhere             multiport dports ssh

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain fail2ban-dovecot-pop3imap (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain fail2ban-pureftpd (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain fail2ban-sasl (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain fail2ban-ssh (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere

Last edited by sharkey; 24th May 2013 at 08:39.
Reply With Quote