1 (edited by wphax 2012-05-16 09:30:21)

Topic: Not receiving emails, but can send them

==== Provide required information to help troubleshoot and get quick answer ====
- iRedMail version: 0.7.4
- Linux/BSD distribution name and version: CentOS 6
- Any related log? Log is helpful for troubleshooting.

May 16 01:27:28 host postfix/postfix-script[15338]: stopping the Postfix mail system
May 16 01:27:28 host postfix/postfix-script[15341]: waiting for the Postfix mail system to terminate
May 16 01:27:28 host postfix/master[32526]: terminating on signal 15
May 16 01:27:30 host postfix/postfix-script[15421]: starting the Postfix mail system
May 16 01:27:30 host postfix/master[15422]: daemon started -- version 2.6.6, configuration /etc/postfix

====

Currently I can send mail to my gmail, but when I reply to it, nothing is sent back and nothing is added to maillog in /var/log/maillog, it just doesn't get delivered.

How can I trouble shoot this? I cleared the log, restarted the postfix service, and sent an email to my account from gmail. The entire log from those actions is above.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Not receiving emails, but can send them

- make sure you have correct DNS records (A and MX) first
- check your firewall/router between your server and internet
- make sure you ISP doesn't block port 25

3

Re: Not receiving emails, but can send them

ZhangHuangbin wrote:

- make sure you have correct DNS records (A and MX) first
- check your firewall/router between your server and internet
- make sure you ISP doesn't block port 25

I apologize, I don't know how to do any of these (I'm learning). Not sure if my MX and A records are correct (A must be fine, I can visit the domain name and a website appears).

4

Re: Not receiving emails, but can send them

You need to dig out the MX records for your domain dear...

try: dig MX yourdomain.com and see if it points to public IP address
then make sure the public IP address points to your mail server.

5

Re: Not receiving emails, but can send them

This is the output of dig MX wphax.com, I'm not sure if it's correct.

[~] $ dig MX wphax.com

; <<>> DiG 9.8.1-P1 <<>> MX wphax.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50948
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;wphax.com.            IN    MX

;; ANSWER SECTION:
wphax.com.        300    IN    MX    10 host.wphax.com.

;; Query time: 45 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu May 17 13:24:14 2012
;; MSG SIZE  rcvd: 48

6

Re: Not receiving emails, but can send them

wphax wrote:

wphax.com.        300    IN    MX    10 host.wphax.com.

So your mail server is set to be "host.wphax.com", does it has correct IP address?

7

Re: Not receiving emails, but can send them

ZhangHuangbin wrote:
wphax wrote:

wphax.com.        300    IN    MX    10 host.wphax.com.

So your mail server is set to be "host.wphax.com", does it has correct IP address?

I believe so. Here is the output of some other things that may help.

[root@host ~]# nmap -sT -O host.wphax.com

Starting Nmap 5.21 ( http://nmap.org ) at 2012-05-18 16:29 UTC
Nmap scan report for host.wphax.com (127.0.0.1)
Host is up (0.000047s latency).
Hostname host.wphax.com resolves to 2 IPs. Only scanned 127.0.0.1
Not shown: 985 closed ports
PORT      STATE SERVICE
22/tcp    open  ssh
25/tcp    open  smtp
80/tcp    open  http
110/tcp   open  pop3
143/tcp   open  imap
443/tcp   open  https
587/tcp   open  submission
631/tcp   open  ipp
993/tcp   open  imaps
995/tcp   open  pop3s
3306/tcp  open  mysql
7777/tcp  open  unknown
9998/tcp  open  unknown
10024/tcp open  unknown
10025/tcp open  unknown
No exact OS matches for host (If you know what OS is running on it, see http://nmap.org/submit/ ).
TCP/IP fingerprint:
OS:SCAN(V=5.21%D=5/18%OT=22%CT=1%CU=42974%PV=N%DS=0%DC=L%G=Y%TM=4FB67911%P=
OS:x86_64-unknown-linux-gnu)SEQ(SP=105%GCD=1%ISR=10D%TI=Z%CI=Z%II=I%TS=A)OP
OS:S(O1=M400CST11NW4%O2=M400CST11NW4%O3=M400CNNT11NW4%O4=M400CST11NW4%O5=M4
OS:00CST11NW4%O6=M400CST11)WIN(W1=8000%W2=8000%W3=8000%W4=8000%W5=8000%W6=8
OS:000)ECN(R=Y%DF=Y%T=40%W=8018%O=M400CNNSNW4%CC=Y%Q=)T1(R=Y%DF=Y%T=40%S=O%
OS:A=S+%F=AS%RD=0%Q=)T2(R=N)T3(R=Y%DF=Y%T=40%W=8000%S=O%A=S+%F=AS%O=M400CST
OS:11NW4%RD=0%Q=)T4(R=Y%DF=Y%T=40%W=0%S=A%A=Z%F=R%O=%RD=0%Q=)T5(R=Y%DF=Y%T=
OS:40%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)T6(R=Y%DF=Y%T=40%W=0%S=A%A=Z%F=R%O=%RD=0
OS:%Q=)T7(R=Y%DF=Y%T=40%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)U1(R=Y%DF=N%T=40%IPL=1
OS:64%UN=0%RIPL=G%RID=G%RIPCK=G%RUCK=G%RUD=G)IE(R=Y%DFI=N%T=40%CD=S)

Network Distance: 0 hops

OS detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 11.97 seconds
[root@host ~]# dig host.wphax.com

; <<>> DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6_2.2 <<>> host.wphax.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3797
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;host.wphax.com.            IN    A

;; ANSWER SECTION:
host.wphax.com.        300    IN    A    108.171.185.92

;; AUTHORITY SECTION:
wphax.com.        3389    IN    NS    dns2.stabletransit.com.
wphax.com.        3389    IN    NS    dns1.stabletransit.com.

;; ADDITIONAL SECTION:
dns1.stabletransit.com.    55    IN    A    69.20.95.4
dns2.stabletransit.com.    55    IN    A    65.61.188.4

;; Query time: 30 msec
;; SERVER: 72.3.128.240#53(72.3.128.240)
;; WHEN: Fri May 18 16:32:22 2012
;; MSG SIZE  rcvd: 132