Kenevel | 1 Feb 2006 01:00
Picon
Favicon

Need to generate a "reject" message with correct headers

Hi everyone,

I'm not sure if this has been covered before or is indeed included in the
online docs. If so, my apologies for failing to do my homework before
posting.

I have a Java web-app through which a club administrator can send out an
invite to someone via email. The "reply-to" address is currently set to a
"noreply", non-existent mailbox, so if someone does try to reply, their
email should bounce and they should be aware that this has happened.

However, sometimes the invitation email is undeliverable (I had a couple
bounce off Yahoo today) and would like to be able to do two things:

    a) capture the undeliverable notifications but bounce
    replies by a human user to a properly-delivered invitation

    b) add an identifier to each invitation email, which is
    invisible to the addressee, but which is reliably included
    in an "undeliverable" notification

Could you advise on the best strategy to deal with this using Exim? In
particular I'd appreciate your thoughts on

- which headers could I expect to be set in an undeliverable notification so
that I can differentiate between one that is undeliverable and one that
someone has just replied to? What sort of thing would I need in my config to
route these?

- how would you include an invitation "identifier"? Could I add a header to
(Continue reading)

Chris Knadle | 1 Feb 2006 05:33
Picon

alternative to local_part_suffix in ACL?

Greetings.

   I'm trying to figure out a way to do LDAP lookups using a portion of 
$local_part in an ACL, similar to using $local_part_prefix in a router.  This 
following lookup works just fine for normal exact matches:

  accept
    condition = ${lookup ldap {ldap://localhost/dc=example,dc=com??sub?\
                 (|(mailLocalAddress=$local_part <at> $domain))} {yes}{no}}

  What I would like to do is something similar to this:

  accept
    local_parts_suffix = -*
    condition = ${lookup ldap {ldap://localhost/dc=example,dc=com??sub?\
                 (|(mailLocalAddress=$local_part_prefix <at> $domain))} {yes}{no}}

  This isn't possible currently because local_parts_suffix is not a possible 
option during an ACL.  I would like to have some method of extracting part of 
the value in $local_part to allow for an LDAP lookup on a selected portion of 
the value.

   I'm looking for hints as to how I might go about doing this.  [Perhaps 
something can be done with ACL variables and regexes?]

	- Chris

--

-- 

Chris Knadle
(Continue reading)

Chris Purves | 1 Feb 2006 06:15
Picon

synchronization error when sender and receiver are same address

Hello,

I am running exim 4.5 on Debian Sarge.  I have a problem where if I send
a message to myself using an external SMTP server, when my exim receives
the message it removes all the headers and changes the subject to:

aaazzzaaazzzaaazzzaaazzzaaazzz

The same happens with other users on the system.  I can send to a
different user on the same system, but no one can send to themselves.  I
can also send to myself with no problems if I use exim as the SMTP
server.

Here is mainlog when the problem happens:

2006-02-01 12:40:43 1F49nP-0004KE-Lg SA: Debug: SAEximRunCond expand
returned: '1'
2006-02-01 12:40:43 1F49nP-0004KE-Lg SA: Debug: check succeeded, running
spamc
2006-02-01 12:40:52 1F49nP-0004KE-Lg SA: Debug: SAEximRejCond expand
returned: '1'
2006-02-01 12:40:52 1F49nP-0004KE-Lg SA: Action: flagged as Spam but
accepted: score=6.4 required=5.0 (scanned in 9/9 secs | Message-Id:
1F49nP-0004KE-Lg). From <chris <at> northfolk.ca>
(host=out4.smtp.messagingengine.com [66.111.4.28]) for
chris <at> northfolk.ca
2006-02-01 12:40:52 1F49nP-0004KE-Lg <= chris <at> northfolk.ca
H=out4.smtp.messagingengine.com [66.111.4.28] P=esmtp S=1461
2006-02-01 12:40:52 SMTP protocol violation: synchronization error (next
input sent too soon: pipelining was advertised): rejected
(Continue reading)

Fauzan Azhary | 1 Feb 2006 13:36
Picon
Favicon

Config Exim as SMTP and in-MTA Simultaneously

Dear all,
This is simple question, but I think it needed more effort to do. Can 
Exim deployed as SMTP and in-MTA simultaneously in one server ? What I 
have to do and what I have to set with its configuration to match this 
requirement ?

Thank you in advance before

--

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Marc Sherman | 1 Feb 2006 13:57
Picon

Re: Need to generate a "reject" message with correct headers

Kenevel wrote:
> 
> I have a Java web-app through which a club administrator can send out an
> invite to someone via email. The "reply-to" address is currently set to a
> "noreply", non-existent mailbox, so if someone does try to reply, their
> email should bounce and they should be aware that this has happened.

What you're asking for is technically possible with Exim (or most any
MTA, for that matter), but it sounds an awful lot like spam to me; are
these "invitations" solicited or unsolicited?  Where do the "club
administrators" get these addresses in the first place?

- Marc

--

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Marc Sherman | 1 Feb 2006 14:08
Picon

Re: alternative to local_part_suffix in ACL?

Chris Knadle wrote:
> 
>   What I would like to do is something similar to this:
> 
>   accept
>     local_parts_suffix = -*
>     condition = ${lookup ldap {ldap://localhost/dc=example,dc=com??sub?\
>                  (|(mailLocalAddress=$local_part_prefix <at> $domain))} {yes}{no}}

Two options:
1) use $sg in the ACL statement to remove the suffix using a regex
2) set address_data in the router where you use local_parts_suffix, and
use $address_data in the ACL after recipient verification

The second feels cleaner to me -- it puts all the address manipulation
in the router where it belongs, so if you change your suffix logic, you
only have to change it in one place.

Both of these options are documented in chapter 11:
http://exim.org/exim-html-4.60/doc/html/spec.html/ch11.html

- Marc

--

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Kenevel | 1 Feb 2006 14:51
Picon
Favicon

Re: Need to generate a "reject" message with correct headers

Hi Marc,

The club would be a sports club and the invitees would be its players. In
the sense that the players want to manage their availability through my site
they are solicited.

The club managers inevitably have distribution lists for their club members
and the site provides a means for them to manage their players.

Cheers

Mike

PS if it were spam, surely I would be interested in capturing every reply-to
response? If it were spam, wouldn't I ensure that the reply-to address was a
live mailbox?

----- Original Message ----- 
From: "Marc Sherman" <msherman <at> projectile.ca>
To: <exim-users <at> exim.org>
Sent: Wednesday, February 01, 2006 12:57 PM
Subject: Re: [exim] Need to generate a "reject" message with correct headers

> Kenevel wrote:
> >
> > I have a Java web-app through which a club administrator can send out an
> > invite to someone via email. The "reply-to" address is currently set to
a
> > "noreply", non-existent mailbox, so if someone does try to reply, their
> > email should bounce and they should be aware that this has happened.
(Continue reading)

Tony Finch | 1 Feb 2006 15:00
Picon
Favicon

Re: Config Exim as SMTP and in-MTA Simultaneously

On Wed, 1 Feb 2006, Fauzan Azhary wrote:

> This is simple question, but I think it needed more effort to do. Can Exim
> deployed as SMTP and in-MTA simultaneously in one server ? What I have to do
> and what I have to set with its configuration to match this requirement ?

I guess you mean as an outgoing relay (or submission server) and MX host.
Yes it is possible. The default configuration is appropriate for many
situations, if you adjust relay_from_hosts. At the other end of the scale
if you want to be really pedantic about your requirements, have a look at
http://www.cus.cam.ac.uk/~fanf2/hermes/doc/talks/2005-02-eximconf/

Tony.
-- 
<fanf <at> exim.org>   <dot <at> dotat.at>   http://dotat.at/   ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

--

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Marc Sherman | 1 Feb 2006 15:08
Picon

Re: Need to generate a "reject" message with correct headers

Kenevel wrote:
> 
> The club would be a sports club and the invitees would be its
> players. In the sense that the players want to manage their
> availability through my site they are solicited.

Ok.  Your fake name and hotmail address made your initial request sound
pretty shady.

> I have a Java web-app through which a club administrator can send out
> an invite to someone via email. The "reply-to" address is currently
> set to a "noreply", non-existent mailbox, so if someone does try to
> reply, their email should bounce and they should be aware that this
> has happened.

What you want to do is send a message with the Reply-To header set to
the noreply address (which you already have set up to bounce correctly),
but with the envelope sender set to a VERP address.

Setting up VERP with Exim is documented in chapter 44:
http://exim.org/exim-html-4.60/doc/html/spec.html/ch44.html#id2685805

- Marc

--

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

(Continue reading)

Chris Knadle | 1 Feb 2006 16:19
Picon

Re: alternative to local_part_suffix in ACL?

On Wednesday 01 February 2006 08:08, Marc Sherman wrote:
> Chris Knadle wrote:
> >   What I would like to do is something similar to this:
> >
> >   accept
> >     local_parts_suffix = -*
> >     condition = ${lookup ldap {ldap://localhost/dc=example,dc=com??sub?\
> >                  (|(mailLocalAddress=$local_part_prefix <at> $domain))}
> > {yes}{no}}
>
> Two options:
> 1) use $sg in the ACL statement to remove the suffix using a regex

   Listing this as well as the relevent chapter greatly helped.  I've 
implemented this, which does what I was looking for:

  accept
    domains = example.net
    condition = ${lookup ldap {ldap://localhost/dc=ofobscurity,dc=com??sub?\
                 (|(mailLocalAddress=${extract{1}{-}{$local_part}} <at> $domain))
		 	{yes}{no}}

Examples:
   Marc-Sherman <at> example.net   -> looks up Marc <at> example.net
   Marc.Sherman <at> example.net   -> looks up Marc.Sherman <at> example.net

   This is the behavior I wanted.

> 2) set address_data in the router where you use local_parts_suffix, and
> use $address_data in the ACL after recipient verification
(Continue reading)


Gmane