Exim mail issues “554 rejected due to spam content”
Hi Guys, I had a pleasant surprise to you all.. I’m very glad to explain you about the mail “delivery failed : 554 rejected due to spam content ” issues which i was faced for the past 6 days and I had found-out the root causes of issues and resolved the same. In our concern, one new employee was joined and i had received the mail from HR department to create the email account for that employee. At that time,I had just copied and paste the person’s name (The name contains capital letter – I know Linux is case sensitive) and created the email account but I didn’t cared about it but after creating the email account, its shows the result as use only small letters. Then I had send the details to corresponding employee and he had configured the email account to outlook and continued his jobs. After 2 to 3 days later he was not able to send mails to some of the domains but able to send mails to few domains and he had been getting bounce back error messages.
I asked him to forward the bounce back error message and he had transferred those to me. I had investigated the mail and found that the mail was rejected due to “554 rejected due to spam content” on recipient end, then we have asked the recipient end to add our domain to whitelist but they replied that they couldn’t banned anybody till. I’m totally confused about the issue, that time i have analyzed the “exim_mainlog” file and found that the other person in our concern sent the mail to the same recipient. Now i’m shocked, what was the issues and what is going on in that concern person’s email account. Suddenly I came to know the mistake which was done by me while creating that email account that i had used upper case instead of using lower one and also send the same email id to that person and without knowing the reason that person also had started to work as it is how I had submitted to him.
Atlast, i had changed the outlook configuration settings like from “G[email protected]” to “g[email protected]” to continue the work with the same id itself but unluckily it didn’t accept.Then i had deleted the email account from server and recreated and restarted the exim service and try to send it, now it’s success. So for,that time only I had realized that this kind of simple mistaken issues might causes such kind of bigger problems.
1) The Bounce back error message.
This is the bounce back error message which i was got from our employee and I have investigated the mail and found that the mail was rejected due to “554 rejected due to spam content” on recipient end. Its clearly showing there is no issues in our server end. I have checked both mail server IP’s and there is no blocks.
-----Original Message----- From: Mail Delivery System [mailto:[email protected]] Sent: Monday, December 16, 2013 4:28 PM To: [email protected] Subject: Mail delivery failed: returning message to sender This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: [email protected] SMTP error from remote mail server after end of data: host bc.newgen.co.in [18.104.22.168]: 554 rejected due to spam content ------ This is a copy of the message, including all the headers. ------ ------ The body of the message is 1503837 characters long; only the first ------ 106496 or so are included here. Return-path:
Received: from [22.214.171.124] (port=52796 helo=jrexPC) by server.2daygeek.com with esmtpa (Exim 4.82) (envelope-from ) id 1VsVs6-0000NV-VW; Mon, 16 Dec 2013 10:58:17 +0000 From: "Gopi" To:
2) The exim mail log of failure
The below exim mail log is clearly showing the mails are rejected due to “554 rejected due to spam content” from mentioned recipient ([email protected]).
2013-12-11 10:30:21 1Vqh3M-0000Ph-W5 <= [email protected] H=(jrexPC) [126.96.36.199]:58542 P=esmtpa A=dovecot_login:[email protected] S=1503366 [email protected] T="Greetings From Anantha Cybertech Private Ltd - Recruitement Proposal" for [email protected] [email protected] [email protected] 2013-12-11 10:30:21 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1Vqh3M-0000Ph-W5 2013-12-11 10:30:21 1Vqh3M-0000Ph-W5 SMTP connection outbound 1386757821 1Vqh3M-0000Ph-W5 2daygeek.com [email protected] 2013-12-11 10:30:21 1Vqh3M-0000Ph-W5 SMTP connection outbound 1386757821 1Vqh3M-0000Ph-W5 2daygeek.com [email protected] 2013-12-11 10:30:22 1Vqh3M-0000Ph-W5 => aruna
R=virtual_user T=virtual_userdelivery 2013-12-11 10:30:23 1Vqh3M-0000Ph-W5 => [email protected] R=dkim_lookuphost T=dkim_remote_smtp H=gmail-smtp-in.l.google.com [188.8.131.52] X=TLSv1:RC4-SHA:128 C="250 2.0.0 OK 1386757824 p6si2504382wiw.65 - gsmtp" 2013-12-11 10:30:24 SMTP connection from (jrexPC) [184.108.40.206]:58542 closed by QUIT 2013-12-11 10:30:30 1Vqh3M-0000Ph-W5 ** [email protected] R=dkim_lookuphost T=dkim_remote_smtp: SMTP error from remote mail server after end of data: host antispam-us.trigyn.com [220.127.116.11]: 554 rejected due to spam content 2013-12-11 10:30:30 cwd=/var/spool/exim 7 args: /usr/sbin/exim -t -oem -oi -f <> -E1Vqh3M-0000Ph-W5 2013-12-11 10:30:30 1Vqh3m-0000X7-GY <= <> R=1Vqh3M-0000Ph-W5 U=mailnull P=local S=108319 T="Mail delivery failed: returning message to sender" for [email protected] 2013-12-11 10:30:30 1Vqh3M-0000Ph-W5 Completed
3) The exim mail log of success
The below exim mail log is clearly showing the mails are perfectly delivered to mentioned recipient.
2013-12-11 12:03:51 1VqiVo-0008K4-2X <= [email protected] H=(ACT14) [18.104.22.168]:52673 P=esmtpa A=dovecot_login:[email protected] S=1527853 T="Greetings From Anantha Cybertech Private Ltd - Recruitement Proposal" for [email protected] [email protected] [email protected] 2013-12-11 12:03:51 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1VqiVo-0008K4-2X 2013-12-11 12:03:51 1VqiVo-0008K4-2X SMTP connection outbound 1386763431 1VqiVo-0008K4-2X 2daygeek.com [email protected] 2013-12-11 12:03:52 1VqiVo-0008K4-2X => ram.g
R=virtual_user T=virtual_userdelivery 2013-12-11 12:03:52 1VqiVo-0008K4-2X => aruna R=virtual_user T=virtual_userdelivery 2013-12-11 12:03:54 SMTP connection from (ACT14) [22.214.171.124]:52673 closed by QUIT 2013-12-11 12:04:00 1VqiVo-0008K4-2X => [email protected] R=dkim_lookuphost T=dkim_remote_smtp H=antispam-us.trigyn.com [126.96.36.199] X=TLSv1:AES256-SHA:256 C="250 Ok: queued as 38E3F2B80A5" 2013-12-11 12:04:00 1VqiVo-0008K4-2X Completed
Now, he is sent and received the mail without any issues. This is one of the reason mail rejected from recipient “554 rejected due to spam content” which i was faced. So anybody make sure while creating email id which you giving small letters.