# Warning: Mail Queue Size Exceeded from anonymous@xxxx

**URL:** <https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599>\
**Category:** General Inquries\
**Tags:** spam, tarpit, mail-queue-size\
**Created:** [August 11, 2014, 5:48pm UTC](https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599 "2014-08-11T17:48:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![icer](https://forums.interworx.com/letter_avatar_proxy/v4/letter/i/a9adbd/32.png) [@icer](https://forums.interworx.com/u/icer)\
**Post date:** [August 11, 2014, 5:48pm UTC](https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599/1 "2014-08-11T17:48:58Z")

</div>

Hello.

Seems i keep getting emails today (just started for 1st time) from the server notifying me:

--------------------[h=2]Warning: Mail Queue Size Exceeded[/h]  
Hello, this is an automated e-mail generated by your control panel. I’ve detected a potential problem on this server ({$hostname}). You may want to look into it. Details of the problem are below.  
Mail queue size limit of 1000 exceeded. The current number of messages in the mail queue is: 11590  
There may be a spamming problem.

* * *

I am assuming this is spam as its a low utilized server. [Anonymous@email.com](mailto:Anonymous@email.com) does not exist. I assume i have ‘allow anonymous users on’ somewhere? Anyone able to point me in the right direction to disable/stop this?

---

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [August 11, 2014, 11:56pm UTC](https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599/2 "2014-08-11T23:56:10Z")

</div>

Hi icer

I hope you don’t mind, but as these emails are in your que, cannot you just view one, to which domain they were sent to, then check if catchall is on for that domain, which if it is, turn it off

You can turn off catch all accounts as default, from nodeworx plugins I think memory

You may also want to consider spamdyke

I hope that helps a little

Many thanks

John

---

<div class="post-metadata">

**Author:** ![inodecloud](https://forums.interworx.com/user_avatar/forums.interworx.com/inodecloud/32/37_2.png) [@inodecloud](https://forums.interworx.com/u/inodecloud)\
**Post date:** [May 23, 2016, 8:00pm UTC](https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599/3 "2016-05-23T20:00:22Z")

</div>

An easier solution is using tar baby.

[http://wiki.junkemailfilter.com/index.php/Project\_tarbaby](http://wiki.junkemailfilter.com/index.php/Project_tarbaby)

Project Tarbaby helps you reduce spam and helps us at [Junk Email Filter](http://www.junkemailfilter.com/) build our [blacklist](http://wiki.junkemailfilter.com/index.php/Spam_DNS_Lists). This is done by adding a fake MX record to your existing MX lists. The fake MX record will be your highest numbered MX and it will point to one of our servers. We will not actually receive any of your email under any circumstances. We will return a 451 temporary error immediately after the DATA command. This tells the sender to come back later and try again. Good email is never lost using this method. Here’s what a connection to tarbaby looks like:

[mail.example.com](http://mail.example.com) 10  
[backup.example.com](http://backup.example.com) 20  
[tarbaby.junkemailfilter.com](http://tarbaby.junkemailfilter.com) 30

---

<div class="post-metadata">

**Author:** ![IWorx-Nathan](https://forums.interworx.com/letter_avatar_proxy/v4/letter/i/9de0a6/32.png) [@IWorx-Nathan](https://forums.interworx.com/u/IWorx-Nathan)\
**Post date:** [June 9, 2016, 12:06pm UTC](https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599/4 "2016-06-09T12:06:43Z")

</div>

“Tarpitting” has been added to InterWorx as well. Here is the configuration steps:

To enable Tarpitting edit

```auto
/etc/tcprules.d/tcp.smtp

```

Add

```auto
,GREETDELAY="5",DROP_PRE_GREET="1"

```

to end of the :allow line. For example.

```auto
:allow,LANG="en_US",QMAILQUEUE="/var/qmail/bin/simscan",CHKUSER_MBXQUOTA="99",GREETDELAY="5",DROP_PRE_GREET="1"

```

Run

```auto
~vpopmail/bin/clearopensmtp

```

Tarpitting will now be enabled. If a sender attempts to issue commands to the mail server before the banner they are dropped.

```auto
nathan@work ~ - $ telnet nate1.corp.interworx.com 25
Trying 10.1.16.140...
Connected to nate1.corp.interworx.com.
Escape character is '^]'.
HELO nate
554 SMTP protocol violation
Connection closed by foreign host.

```

---

<div class="post-metadata">

**Author:** ![inodecloud](https://forums.interworx.com/user_avatar/forums.interworx.com/inodecloud/32/37_2.png) [@inodecloud](https://forums.interworx.com/u/inodecloud)\
**Post date:** [June 9, 2016, 7:30pm UTC](https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599/5 "2016-06-09T19:30:26Z")

</div>

Hi Nathan,

Can you do a cat /etc/tcprules.d/tcp.smtp

I am getting debug2: client\_check\_window\_change: changed errors

---

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [June 10, 2016, 1:07am UTC](https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599/6 "2016-06-10T01:07:16Z")

</div>

Hi inodecloud

I just tried this this morning and it worked lovely

Centos 6.8, IW 5.1.17 RL

I am a little unclear where your getting your error - is it when your editing tcp.smtp

Many thanks

John

---

<div class="post-metadata">

**Author:** ![inodecloud](https://forums.interworx.com/user_avatar/forums.interworx.com/inodecloud/32/37_2.png) [@inodecloud](https://forums.interworx.com/u/inodecloud)\
**Post date:** [June 10, 2016, 2:34am UTC](https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599/7 "2016-06-10T02:34:44Z")

</div>

Hey John,

CentOS 6.8, IW 5.1.14 R(default)

I get that error when i test it with telnet.

---

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [June 10, 2016, 5:11am UTC](https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599/8 "2016-06-10T05:11:07Z")

</div>

Hi Inodecloud  
Many thanks, and here is my cat, and test results  
Just a thought, are you clustered and did you try restart qmail in full  
Many thanks  
John

# cat /etc/tcprules.d/tcp.smtp

127.:allow,RELAYCLIENT="",JGREYLIST=""  
::1:allow,RELAYCLIENT="",JGREYLIST=""  
:allow,LANG=“en\_US”,QMAILQUEUE="/var/qmail/bin/simscan",CHKUSER\_MBXQUOTA=“99”,JGREYLIST\_DIR="/var/qmail/jgreylist",JGREYLIST="",GREETDELAY=“5”,DROP\_PRE\_GREET=“1”  
Telnet Test  
telnet ns4.redacted.url 25  
ehlo  
554 SMTP protocol violation  
Connection to host lost.  
Telnet Good Connect after 5 secs  
220 ns4.redacted.url InterWorx-CP SMTP Server ESMTP  
helo me  
250 ns4.redacted.url InterWorx-CP SMTP Server

---

<div class="post-metadata">

**Author:** ![inodecloud](https://forums.interworx.com/user_avatar/forums.interworx.com/inodecloud/32/37_2.png) [@inodecloud](https://forums.interworx.com/u/inodecloud)\
**Post date:** [June 11, 2016, 9:45pm UTC](https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599/9 "2016-06-11T21:45:07Z")

</div>

I see what i did wrong now, thanks John.

---

<div class="post-metadata">

**Author:** ![bear](https://forums.interworx.com/letter_avatar_proxy/v4/letter/b/ac8455/32.png) [@bear](https://forums.interworx.com/u/bear)\
**Post date:** [May 10, 2020, 6:24am UTC](https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599/10 "2020-05-10T06:24:30Z")

</div>

sorry to bump up and old topic

is Tarpitting still added interworx ?  
I tried just out of interest but don’t get the 5 second delay  
thank you

---

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [May 10, 2020, 9:44am UTC](https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599/11 "2020-05-10T09:44:54Z")

</div>

Hi Bear

That’s a good question and the answer is it appears to have been dropped from been used. This appears to be on Centos 7 or later versions of IW perhaps.

However, you can add it as follows:

SSH into your server

vi /etc/tcprules.d/tcp.smtp

add the following to end of file, so it should appear as below. Note GREETDELAY= can be altered to any number of seconds you want, so 5 seconds could become 3 seconds if you alter 5 to 3 etc…

,GREETDELAY=“5”,DROP\_PRE\_GREET=“1”

so tcp.smtp should look like this:

127.:allow,RELAYCLIENT="",JGREYLIST=""  
::1:allow,RELAYCLIENT="",JGREYLIST=""  
:allow,LANG=“en\_US”,QMAILQUEUE="/var/qmail/bin/simscan",CHKUSER\_MBXQUOTA=“99”,JGREYLIST\_DIR="/var/qmail/jgreylist",JGREYLIST="",GREETDELAY=“5”,DROP\_PRE\_GR EET=“1”

Save

run the following:

~vpopmail/bin/clearopensmtp

You should see no errors, if you see erorrs then you have mistyped or missed the comma at start of addition to add

Test and you should see greeting delay matching your delay time in seconds

Many thanks and stay safe

John

---

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [May 10, 2020, 12:33pm UTC](https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599/12 "2020-05-10T12:33:25Z")

</div>

Hi Bear

Sorry I was thinking about this and reread the thread and I thnk it was added as an ability to have if you configure it.

So yes, it is still active if you configure it for use

If yours is not working, please post your error or contact IW support

Many thanks and stay safe

John

---

<div class="post-metadata">

**Author:** ![bear](https://forums.interworx.com/letter_avatar_proxy/v4/letter/b/ac8455/32.png) [@bear](https://forums.interworx.com/u/bear)\
**Post date:** [May 11, 2020, 1:57pm UTC](https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599/13 "2020-05-11T13:57:45Z")

</div>

Yes it does in fact work after re-testing, not sure if its good to have enabled or not.  
was just interested if it still worked.  
thank you for your reply

---

<div class="post-metadata">

**Author:** ![phyoe](https://forums.interworx.com/letter_avatar_proxy/v4/letter/p/57b2e6/32.png) [@phyoe](https://forums.interworx.com/u/phyoe)\
**Post date:** [June 24, 2020, 8:29am UTC](https://forums.interworx.com/t/warning-mail-queue-size-exceeded-from-anonymous-xxxx/13599/14 "2020-06-24T08:29:43Z")

</div>

> [@IWorx-Nathan](#):
>
> “Tarpitting” has been added to InterWorx as well. Here is the configuration steps:
> 
> To enable Tarpitting edit
> 
> ```auto
> /etc/tcprules.d/tcp.smtp
> 
> ```
> 
> Add
> 
> ```auto
> ,GREETDELAY="5",DROP_PRE_GREET="1"
> 
> ```
> 
> to end of the :allow line. For example.
> 
> ```auto
> :allow,LANG="en_US",QMAILQUEUE="/var/qmail/bin/simscan",CHKUSER_MBXQUOTA="99",GREETDELAY="5",DROP_PRE_GREET="1"
> 
> ```
> 
> Run
> 
> ```auto
> ~vpopmail/bin/clearopensmtp
> 
> ```
> 
> Tarpitting will now be enabled. If a sender attempts to issue commands to the mail server before the banner they are dropped.
> 
> ```auto
> nathan@work ~ - $ telnet nate1.corp.interworx.com 25
> Trying 10.1.16.140...
> Connected to nate1.corp.interworx.com.
> Escape character is '^]'.
> HELO nate
> 554 SMTP protocol violation
> Connection closed by foreign host.
> 
> ```

This solution worked fine for me. After changes dont forget to restart to take effects.
