Re: [exim] Rejecting over quota at RCPT time - revisited

2012-11-29 Thread Robert Blayzor
On Nov 28, 2012, at 10:47 PM, Todd Lyons tly...@ivenue.com wrote: Tomorrow, I will be experimenting with jamming the following into a perl function (I use the embedded perl a lot) and call it as a condition for a verify_only router, and then defer with an appropriate quota related message is

[exim] Fwd: Rejecting over quota at RCPT time - revisited

2012-11-29 Thread Nikita Koshikov
I have used perl for many years for current task. Here is my code, one of it's task is to check smtp time RCPT TO. There are 3 different functions - one to calculate quota from maildir file, another one to use - doveadm exec() logic - it's bad and slow. And final one - to use dovecot internal

[exim] authenticating all users.

2012-11-29 Thread Han Boetes
Hi, We have a webserver running suphp. Very nice since it's no longer apache sending emails but the actual user and now we really can block spamming. All outgoing mail -- even local mail -- is sent through a an antispam server and then delivered where it should. To find the authentication of

Re: [exim] authenticating all users.

2012-11-29 Thread exim-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 29/11/12 10:20, Han Boetes wrote: We have a webserver running suphp. Very nice since it's no longer apache sending emails but the actual user and now we really can block spamming. All outgoing mail -- even local mail -- is sent through a an

Re: [exim] authenticating all users.

2012-11-29 Thread exim-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 29/11/12 12:18, exim-us...@lists.grepular.com wrote: Change all instances of: $sender_address To: $sender_address Then in your exim_auth file, surround all email addresses with angled brackets. The bounce/null email address would

Re: [exim] Rejecting over quota at RCPT time - revisited

2012-11-29 Thread Todd Lyons
On Thu, Nov 29, 2012 at 3:08 AM, Robert Blayzor rblayzor.b...@inoc.net wrote: On Nov 28, 2012, at 10:47 PM, Todd Lyons tly...@ivenue.com wrote: Tomorrow, I will be experimenting with jamming the following into a perl function (I use the embedded perl a lot) and call it as a condition for a

Re: [exim] Rejecting over quota at RCPT time - revisited

2012-11-29 Thread Robert Blayzor
On Nov 29, 2012, at 9:22 AM, Todd Lyons tly...@ivenue.com wrote: In my system, I don't yet know the homedir/maildir because it's part of the SQL lookup in the router. I can however construct it because I know how it's built, but I'd prefer the results from the lookup to be used. I dunno if

Re: [exim] Non ascii characters in recipient address creates frozen bounce

2012-11-29 Thread Marcin Mirosław
W dniu 29.11.2012 02:17, Phil Pennock pisze: Hi Phil, hi Jeremy, hi all! Jeremy, I thought that MUA received 550 in session. I was wrong, my fault, MUA session was completed without error. So it's completly ok for me that exim generated bounce. Now I'm concentrating on error code 1. On

Re: [exim] Rejecting over quota at RCPT time - revisited

2012-11-29 Thread Todd Lyons
On Thu, Nov 29, 2012 at 6:22 AM, Todd Lyons tly...@ivenue.com wrote: In my system, I don't yet know the homedir/maildir because it's part of the SQL lookup in the router. I can however construct it because I know how it's built, but I'd prefer the results from the lookup to be used. I dunno

Re: [exim] Rejecting over quota at RCPT time - revisited

2012-11-29 Thread Robert Blayzor
On Nov 29, 2012, at 11:03 AM, Todd Lyons tly...@ivenue.com wrote: I've hit a major obstacle: We have our maildirs on a Netapp, nfs mounted with root squash, and everything owned by a single unprivileged user. Exim is running as euid 0, uid for exim and the path/to/Maildir/ is mode 700 all

Re: [exim] Rejecting over quota at RCPT time - revisited

2012-11-29 Thread Robert Blayzor
On Nov 29, 2012, at 11:03 AM, Todd Lyons tly...@ivenue.com wrote: Dammit. I'm right back where we were before I started experimenting. ...Todd I'm actually in the same situation here. Without being able to trap the first over condition hit by Exim there is no way to just check people who

Re: [exim] Rejecting over quota at RCPT time - revisited

2012-11-29 Thread Todd Lyons
On Thu, Nov 29, 2012 at 8:07 AM, Robert Blayzor rblayzor.b...@inoc.net wrote: On Nov 29, 2012, at 11:03 AM, Todd Lyons tly...@ivenue.com wrote: I've hit a major obstacle: We have our maildirs on a Netapp, nfs mounted with root squash, and everything owned by a single unprivileged user. Exim

Re: [exim] Non ascii characters in recipient address creates frozen bounce

2012-11-29 Thread Marcin Mirosław
W dniu 29.11.2012 16:15, Marcin Mirosław pisze: Configuration of virtual_delivery transport is defined as below: virtual_user: driver = accept domains = +local_domains condition = ${lookup pgsql{SQL_CZY_ISTNIEJE_UZYTK}}

Re: [exim] Rejecting over quota at RCPT time - revisited

2012-11-29 Thread Todd Lyons
On Thu, Nov 29, 2012 at 8:23 AM, Robert Blayzor rblayzor.b...@inoc.net wrote: On Nov 29, 2012, at 11:03 AM, Todd Lyons tly...@ivenue.com wrote: Dammit. I'm right back where we were before I started experimenting. I'm actually in the same situation here. Without being able to trap the first

Re: [exim] Rejecting over quota at RCPT time - revisited

2012-11-29 Thread Cyborg
I'm envisioning an external daemon to check for over_quota condition: 1. Listen on $port. 2. Accept requests such as CHECK_QUOTA local_part domain 3. Check for key in memcache for this email address, return 1 if found and is overquota (has value bigger than zero). 4. If not found, or has value

Re: [exim] which package contains the sendmail binary?

2012-11-29 Thread Andreas Metzler
Britton Kerin britton.ke...@gmail.com wrote: I know exim sometimes contains a sendmail binary because on one system I get this: [...] But on my debian box (current stable distribution), there is no /usr/bin/sendmail binary even though I have exim installed. There is a /usr/sbin/sendmail

Re: [exim] Rejecting over quota at RCPT time - revisited

2012-11-29 Thread Robert Blayzor
On Nov 29, 2012, at 11:59 AM, Todd Lyons tly...@ivenue.com wrote: I'm envisioning an external daemon to check for over_quota condition: 1. Listen on $port. 2. Accept requests such as CHECK_QUOTA local_part domain 3. Check for key in memcache for this email address, return 1 if found and is

Re: [exim] Non ascii characters in recipient address creates frozen bounce

2012-11-29 Thread Phil Pennock
On 2012-11-29 at 17:51 +0100, Marcin Mirosław wrote: W dniu 29.11.2012 16:15, Marcin Mirosław pisze: Configuration of virtual_delivery transport is defined as below: virtual_user: driver = accept domains = +local_domains

Re: [exim] Rejecting over quota at RCPT time - revisited

2012-11-29 Thread Phil Pennock
On 2012-11-29 at 08:03 -0800, Todd Lyons wrote: It would appear that unless I remove root squash for my mail servers, my only option is to have a cheap daemon running as that unprivileged user which will simply listen on a port for a command, do the calculation, and return the answer.

Re: [exim] authenticating all users.

2012-11-29 Thread Phil Pennock
On 2012-11-29 at 11:20 +0100, Han Boetes wrote: We have a webserver running suphp. Very nice since it's no longer apache sending emails but the actual user and now we really can block spamming. All outgoing mail -- even local mail -- is sent through a an antispam server and then delivered

Re: [exim] authenticating all users.

2012-11-29 Thread Han Boetes
I'm sorry but that doesn't really answer my question although I admit I already ran into that problem, did notice that solution, didn't really like it since you still have to allow spoofing and chose this one instead. http://datadisk.co.uk/html_docs/exim/address_header.htm#rewriting On Thu,