RV Products Forums: A little OT, but now you are an exim expert... - RV Products Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

A little OT, but now you are an exim expert...

#1 User is offline   got-hosting 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 77
  • Joined: 25-February 04

Posted 27 November 2004 - 10:42 PM

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!
0

#2 User is offline   pairote 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 4,348
  • Joined: 13-June 03

Posted 29 November 2004 - 05:33 PM

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.'
0

#3 User is offline   got-hosting 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 77
  • Joined: 25-February 04

Posted 29 November 2004 - 07:47 PM

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.
0

#4 User is offline   pairote 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 4,348
  • Joined: 13-June 03

Posted 30 November 2004 - 01:23 AM

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.
0

#5 User is offline   got-hosting 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 77
  • Joined: 25-February 04

Posted 05 December 2004 - 08:09 AM

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!!
0

#6 Guest_S?ren_*

  • Group: Guests

Posted 08 September 2005 - 03:45 PM

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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic