Showing posts with label email issues. Show all posts
Showing posts with label email issues. Show all posts

Wednesday, February 18, 2015

exim port check

While checking the exim logs if you are getting "timeout" error then you should check the port  as below -

1) IN to OUT port check-

[root@ns1 ~]# telnet mail.xxx.com 25
Trying 1.2.3.4...
Connected to mail.xxx.com.//you will get time-out here
Escape character is '^]'.
220 host.xxx.net ESMTP Postfix

2)Out to IN port check
check with url http://ping.eu

3)Make sure the ports 25,465,587,110 are open for server x.x.x.x on both side. 

Exim commands

# List all queued messages, grouped by sender address
exim -bpr | grep -Eo "<[^ ]*@[^ ]*>" | sort | uniq -c

# List all queued messages, grouped by recipient address
exim -bpr | grep -Eo "^\s*[^ ]*@[^ ]*$" | sort | uniq -c

# Remove all messages older than 12hrs (43000 seconds)
exiqgrep -o 43000 -i | xargs exim -Mrm

# Remove all frozen messages from the queue
exiqgrep -z -i | xargs exim -Mrm

# Remove all messages from a particular sender
exiqgrep -i -f [user]@domain.com | xargs exim -Mrm

# Remove all messages from a sender that are older than 12hrs
exiqgrep -o 43000 -i -f [user]@domain.com | xargs exim -Mrm

not able to sent mail

Not able to send mails to particular email id only x@xxx.com  and getting following logs -

2015-02-17 15:23:39 [3230] 1YNeqU-0000q1-No ** x@xxx.com F= P= R=dkim_lookuphost T=dkim_remote_smtp: SMTP error from remote mail server after initial connection: host x1x.xxx.com [192.8.186.129]: 554 x1x.xxx.com

Solution -
1)check hostname file.
2)Make sure that you have setup RDNS for the MX record.