Marc Langer | 1 Aug 2004 14:48
Picon

Bug in Exim 4.41: "Cannot lock: Invalid Argument"

Hi,

after upgrading from Exim 4.10 to 4.41 every incoming mail produces
the following output:

2004-08-01 14:37:03 1BrFaI-0001y0-PD Cannot lock /var/spool/exim/input//1BrFaI-0001y0-PD-D (22):
Invalid argument

strace shows:

[pid  7540] open("/var/spool/exim/input//1BrFaI-0001y0-PD-D",
O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0640) = 1
[pid  7540] fchown(1, 8, 12)            = 0
[pid  7540] fchmod(1, 0640)             = 0
[pid  7540] fcntl(1, F_GETFL)           = 0x8002 (flags O_RDWR|O_LARGEFILE)
[pid  7540] fstat(1, {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
[pid  7540] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
[pid  7540] _llseek(1, 0, [0], SEEK_CUR) = 0
[pid  7540] fcntl(1, 0xd /* F_??? */, 0xbfffee90) = -1 EINVAL (Invalid argument)

permissions are correct and empty spool files are created.

System: Redhat 7.0, glibc 2.1.92, gcc version 2.96 20000731 (Red Hat Linux 7.0)

I had to downgrade to 4.10 to get it working again.

Marc

--

(Continue reading)

Benedikt Hochstrasser | 1 Aug 2004 15:27
Picon

ANN: eximadm.php

Hello all,

years ago I wrote a simple shell script to ease up exim's queue administration. Now I re-thought the whole
bit and ported it to a
(similarly simple) php applet; now you can monitor your queue wherever you are. (be sure to
password-protect the pages, of course).

The code is GPL and can be downloaded from http://www.hochstrasser.org/wiki/pmwiki.php?pagename=Linux.EximAdm

Comments (to eximadm <at> hochstrasser.org) are welcome.

If someone thinks it'd be worthwile to put it in some "contrib" section on the exim page, feel free to do so.

--
Ben

eximadm <at> hochstrasser.org

--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at
http://www.exim.org/ ##

Stephen Gran | 1 Aug 2004 17:41

Re: DNSBL - Local User Problem

On Sat, Jul 31, 2004 at 12:33:49PM -0700, Lloyd Tennison said:
> ----- Original Message ----- From: "Lloyd F. Tennison"
> <lists <at> viplist.us>
> ><snip> Any thoughts on how to allow authorized users to "bypass" the
> >DNSBL checking?
> >
>
> Sure.  Accept authenticated BEFORE doing DNSBL checks.
>
> Jim Roberts Punster Productions, Inc.
>
> I have not bee able to figure out a way to do that. I thought that
> might be the answer but have not found the correct placement in the
> config file.

This is what I use:
acl_smtp_rcpt = acl_check_rcpt
...
begin acl
...
acl_check_rcpt:
accept hosts = :
accept hosts = +relay_from_hosts
accept authenticated = *

And then I begin my checks with dnsbl's, helo checks, etc.

HTH,
--
 --------------------------------------------------------------------------
(Continue reading)

Jeremy Harris | 1 Aug 2004 18:54

bug in transport-filter parsing?

Hi,

    I was trying to use a expansion to specify the entire content
of a transport-filter specification, but it seems that the trick
of putting double-quotes round the expansion-item (which contains
spaces) to prevent it being split by the parsing into an argv
only operates after the first arg.

That is,

   transport_filter =    /some/path "${if = {${lookup pgsql{select blah} {$value}fail}} {1}\
{/path/to/command arg1 arg2} {}}"

does the lookup, but

   transport_filter =    "${if = {${lookup pgsql{select blah} {$value}fail}} {1}\
{/path/to/command arg1 arg2} {}}"

does not.

Has anyone else seen this?    What's a good way to transport-filter depending on
a lookup, but avoid the overhead when it's not needed?

Thanks,
    Jeremy

--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at
http://www.exim.org/ ##
(Continue reading)

Ralf G. R. Bergs | 1 Aug 2004 17:09

Re: Bug in Exim 4.41: "Cannot lock: Invalid Argument"

Marc Langer wrote:

> Hi,
>
> after upgrading from Exim 4.10 to 4.41 every incoming mail produces
> the following output:
>
> 2004-08-01 14:37:03 1BrFaI-0001y0-PD Cannot lock /var/spool/exim/input//1BrFaI-0001y0-PD-D
(22): Invalid argument
>
> strace shows:
>
> [pid  7540] open("/var/spool/exim/input//1BrFaI-0001y0-PD-D",
O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0640) = 1
> [pid  7540] fchown(1, 8, 12)            = 0
> [pid  7540] fchmod(1, 0640)             = 0
> [pid  7540] fcntl(1, F_GETFL)           = 0x8002 (flags O_RDWR|O_LARGEFILE)
> [pid  7540] fstat(1, {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
> [pid  7540] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
> [pid  7540] _llseek(1, 0, [0], SEEK_CUR) = 0
> [pid  7540] fcntl(1, 0xd /* F_??? */, 0xbfffee90) = -1 EINVAL (Invalid argument)
>
> permissions are correct and empty spool files are created.
>
> System: Redhat 7.0, glibc 2.1.92, gcc version 2.96 20000731 (Red Hat Linux 7.0)
>
> I had to downgrade to 4.10 to get it working again.

FWIW -- I'm not seeing these errors. I'm running my self-built Debian
package.
(Continue reading)

Barry H | 2 Aug 2004 04:52
Picon
Favicon

relaying for specific hosts

Hi,

Freebsd 4.9-RELEASE-p5
Exim: exim-4.22-1

Trying to allow relaying from a few specific hosts.
The relevant configs look like:
>>>>>>>>>>>>>>
hostlist relay_from_hosts = 10.1.1.1/32 10.2.2.2/32
begin acl

acl_check_rcpt:
accept hosts = +relay_from_hosts
>>>>>>>>>>>>>>Doesn't work. Get rejects saying
relaying denied.

Everything I've seen online makes me think this config
should work.

Any thoughts?

Thanks,
Barry

__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

--
(Continue reading)

Andre Nicholson | 2 Aug 2004 04:58

Re: relaying for specific hosts

> hostlist relay_from_hosts = 10.1.1.1/32 10.2.2.2/32

I believe the hostlist entries should be colon separated, like so:

hostlist relay_from_hosts = 10.1.1.1/32 : 10.2.2.2/32

--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at
http://www.exim.org/ ##

Barry H | 2 Aug 2004 05:06
Picon
Favicon

Re: relaying for specific hosts - CORRECTION

THe hosts in the relay_from_hosts line are actually
(correctly) colon seperated:

hostlist relay_from_hosts = 10.1.1.1/32 : 10.2.2.2/32

Barry
--- Barry H <met_boy04 <at> yahoo.com> wrote:

> Hi,
>
> Freebsd 4.9-RELEASE-p5
> Exim: exim-4.22-1
>
> Trying to allow relaying from a few specific hosts.
> The relevant configs look like:
> >>>>>>>>>>>>>>
> hostlist relay_from_hosts = 10.1.1.1/32 10.2.2.2/32
> begin acl
>
> acl_check_rcpt:
> accept hosts = +relay_from_hosts
> >>>>>>>>>>>>>>Doesn't work. Get rejects saying
> relaying denied.
>
> Everything I've seen online makes me think this
> config
> should work.
>
> Any thoughts?
>
(Continue reading)

Peter Bowyer | 2 Aug 2004 06:55
Gravatar

Re: relaying for specific hosts

Barry H <met_boy04 <at> yahoo.com> wrote:
> Hi,
>
> Freebsd 4.9-RELEASE-p5
> Exim: exim-4.22-1
>
> Trying to allow relaying from a few specific hosts.
> The relevant configs look like:
>>>>>>>>>>>>>>>
> hostlist relay_from_hosts = 10.1.1.1/32 10.2.2.2/32
> begin acl
>
> acl_check_rcpt:
> accept hosts = +relay_from_hosts
>>>>>>>>>>>>>>> Doesn't work. Get rejects saying relaying denied.
>
> Everything I've seen online makes me think this config
> should work.
>
> Any thoughts?

Try some debugging with exim -bh - this will tell you what comparisons are
going on with the hostlist and why they're failing.

Peter

--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at
http://www.exim.org/ ##
(Continue reading)

Anand Renake | 2 Aug 2004 08:31

Smtp-auth for localhost?

Hi!

If i am using exim 3/4 or any other MTA, is smtp-auth necessary for localhost
also?
Or do people keep smtp-auth for localhost itself too.

If i have relaying disabled does SMTP-auth helps in any way for the local machine.

Are there any performance or speed issues if SMTP-auth is enabled i.e. all the
clients _should_ authenticate thru various allowed smtp-auth mechanisms.

Please reply to this basic question because i will not find the answer to this
in any of the docs.

Thanks!

Regards,
Anand.
p.s.
Enabling SMTP-auth for everything will mean sending mails thru php mailer on
the localhost will also need password??Right? Is this really required in any
scenario. Or logical?

--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at
http://www.exim.org/ ##


Gmane