.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
A little OT, but now you are an exim expert...
got-hosting
post Nov 27 2004, 10:42 PM
Post #1


Advanced Member
***

Group: Members
Posts: 77
Joined: 25-February 04
Member No.: 138



I have a few problem users who mismanage their email accounts. As such, they are sonctantly filling up. When this happens, a rejection email is generated, but if it was generated from a spam, then the return address is likely firged anyway, so they are filling up in the queue, and probably a fair number being sent to people who never sent them anything.

Long story short, is there a way to get exim to check the quota prior to accepting delivery, kind of like we are with the spam score?

Thanks for any help you can provide!
Go to the top of the page
 
+Quote Post
pairote
post Nov 29 2004, 05:33 PM
Post #2


Administrator
***

Group: Admin
Posts: 4,252
Joined: 13-June 03
Member No.: 1



Under WHM / Exim configuration Editor / under options section, below switch to advanced mode button. There is an checkbox to
'Discard emails for users who have exceeded their quota instead of keeping them in the queue.'
Go to the top of the page
 
+Quote Post
got-hosting
post Nov 29 2004, 07:47 PM
Post #3


Advanced Member
***

Group: Members
Posts: 77
Joined: 25-February 04
Member No.: 138



Yeah, that prevents the message from being stored in the queue, but the system generates a bounce email telling the sender that the box is full. I was hoping to have it to that at MTA time.

If the sender field is forged, the bounce message ends up sitting in the queue.
Go to the top of the page
 
+Quote Post
pairote
post Nov 30 2004, 01:23 AM
Post #4


Administrator
***

Group: Admin
Posts: 4,252
Joined: 13-June 03
Member No.: 1



You can use Exim System filter file to igore these bounce being sit in the queue. If you post me the full header and body of the bouce message, I might come up with a solution.
Go to the top of the page
 
+Quote Post
got-hosting
post Dec 5 2004, 08:09 AM
Post #5


Advanced Member
***

Group: Members
Posts: 77
Joined: 25-February 04
Member No.: 138



Sorry for the delay, seems email notifies aren;t working and I forgot about this for a few days.

Anbyway, here is an example header:

1CaY8S-0001fm-2q-H
mailnull 47 12
<>
1102159892 0
-ident mailnull
-received_protocol local
-body_linecount 39
-allow_unqualified_recipient
-allow_unqualified_sender
-localerror
XX
1
info@casino-winner.org

156P Received: from mailnull by ephraim.got-servers.net with local (Exim 4.43)
id 1CaY8S-0001fm-2q
for info@casino-winner.org; Sat, 04 Dec 2004 06:31:32 -0500
039 X-Failed-Recipients: sales@myclientsdomain.com
031 Auto-Submitted: auto-generated
067F From: Mail Delivery System <Mailer-Daemon@ephraim.got-servers.net>
027T To: info@casino-winner.org
059 Subject: Mail delivery failed: returning message to sender
056I Message-Id: <E1CaY8S-0001fm-2q@ephraim.got-servers.net>
038 Date: Sat, 04 Dec 2004 06:31:32 -0500



Here is the body if it helps:

1CaY8S-0001fm-2q-D
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:

sales@myclientsdomain.com
mailbox is full

------ This is a copy of the message, including all the headers. ------

Return-path: <info@casino-winner.org>
Received: from [24.177.130.88] (helo=tweed.32s)
by ephraim.got-servers.net with esmtp (Exim 4.43)
id 1CaY8P-0001fe-3G
for sales@myclientsdomain.com; Sat, 04 Dec 2004 06:31:31 -0500
From: "casino-winner" <info@casino-winner.org>
To: sales@myclientsdomain.com
Subject: e-book about strategies
MIME-Version: 1.0
Precedence: bulk
Errors-To: null@tweed.32s
Content-type: text/html
Message-Id: <20041204112305.646F619FC46@tweed.32s>
Date: Sat, 4 Dec 2004 06:23:05 -0500 (EST)
X-Antivirus-Scanner: Clean mail though you should still use an Antivirus


<html><body bgcolor=#FFFFFF><center><a
href="http://casino-winner.org/ebook.html"><img
src="http://69.90.101.102/titlecw.gif" width=600 height=117
border=0></a><p><a href="http://casino-winner.org/ebook.html"><img
src="http://69.90.101.102/piccw.gif" width=584 height=372
border=0></a><p><font size=1 face="Arial"><a
href="mailto:unsubscribe@casino-winner.org">Unsubscribe here</a><p><font
color=#000099>Walter Inc<br>En Paso Real<br>San Jos<a
href="http://bxtuc63w0z.j.zzinc.info/?2848" style="color:
#000099; text-decoration: none">?</a><br>Costa
Rica</font></center></body></html>



Thanks for looking at this!!
Go to the top of the page
 
+Quote Post
Guest_S?ren_*
post Sep 8 2005, 03:45 PM
Post #6





Guests






Hi

You can do this under acl_check_rcpt:

##QUOTACHECK!
deny domains = +local_domains
verify = recipient
condition = ${run{/opt/exim/bin/eximquotacheck ${extract{Quota}{$address_data}{$value}} ${extract{Dir}{$address_data}{$value}}}}
message = $local_part: Quota exceeded - Mailbox full


/opt/exim/bin/eximquotacheck should be some kind of script which could check the users quota and return 0 if it's ok or 1 if it's exceeded...

Greetings
S?ren
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 



Lo-Fi Version Time is now: 2nd September 2010 - 10:39 PM