Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

allow duplicate messages

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


jonathan at fluent

Jul 3, 2009, 2:06 AM

Post #1 of 5 (385 views)
Permalink
allow duplicate messages

Hi,

I have been setting up a catchall system on my exim server.

I have a mysql table with users in for example. postmaster[at]domain.com
and then the following setup:

mysql_aliases:
driver = redirect
file_transport = address_file
pipe_transport = address_pipe
data = ${lookup mysql{SELECT destination FROM aliases,emailtable
WHERE emailtable.email = aliases.destination and (aliases.address = '$
{quote_mysql:$local_part}@${quote_mysql:$domain}' or aliases.address =
'*@${quote_mysql:$domain}')}}

This has an alias of *@domain.com to postmaster[at]domain.com to create a
catchall...

However, with this setup, duplicate mails are dropped.. so if someone
sends an email to bob[at]domain.com,eggs[at]domain.com then only one message
is delivered with Two addresses on the Envelope-to field..

How can I modify this so that two seperate messages are delivered to
the Maildir? I need this method to work as I am delivering the
messages via SMTP from the Maildir to Exchange Servers.

Kind Regards,

Jonathan Gilpin
fluent Ltd
www.fluent.ltd.uk
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


warren at decoy

Jul 3, 2009, 2:17 AM

Post #2 of 5 (349 views)
Permalink
Re: allow duplicate messages [In reply to]

2009/7/3 Jonathan Gilpin <jonathan[at]fluent.ltd.uk>

> Hi,
>
> I have been setting up a catchall system on my exim server.
>
> I have a mysql table with users in for example. postmaster[at]domain.com
> and then the following setup:
>
> mysql_aliases:
> driver = redirect
> file_transport = address_file
> pipe_transport = address_pipe
> data = ${lookup mysql{SELECT destination FROM aliases,emailtable
> WHERE emailtable.email = aliases.destination and (aliases.address = '$
> {quote_mysql:$local_part}@${quote_mysql:$domain}' or aliases.address =
> '*@${quote_mysql:$domain}')}}
>
> This has an alias of *@domain.com to postmaster[at]domain.com to create a
> catchall...
>
> However, with this setup, duplicate mails are dropped.. so if someone
> sends an email to bob[at]domain.com,eggs[at]domain.com then only one message
> is delivered with Two addresses on the Envelope-to field..
>
> How can I modify this so that two seperate messages are delivered to
> the Maildir? I need this method to work as I am delivering the
> messages via SMTP from the Maildir to Exchange Servers.
> <http://wiki.exim.org/>



How are you delivering from maildir to the exchange servers? Both
envelope-to addresses should be sent in the SMTP session when delivering to
the exchange server.


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


jonathan at fluent

Jul 3, 2009, 2:37 AM

Post #3 of 5 (349 views)
Permalink
Re: allow duplicate messages [In reply to]

On 3 Jul 2009, at 10:17, Warren Baker wrote:

> 2009/7/3 Jonathan Gilpin <jonathan[at]fluent.ltd.uk>
> Hi,
>
> I have been setting up a catchall system on my exim server.
>
> I have a mysql table with users in for example. postmaster[at]domain.com
> and then the following setup:
>
> mysql_aliases:
> driver = redirect
> file_transport = address_file
> pipe_transport = address_pipe
> data = ${lookup mysql{SELECT destination FROM aliases,emailtable
> WHERE emailtable.email = aliases.destination and (aliases.address = '$
> {quote_mysql:$local_part}@${quote_mysql:$domain}' or aliases.address =
> '*@${quote_mysql:$domain}')}}
>
> This has an alias of *@domain.com to postmaster[at]domain.com to create a
> catchall...
>
> However, with this setup, duplicate mails are dropped.. so if someone
> sends an email to bob[at]domain.com,eggs[at]domain.com then only one message
> is delivered with Two addresses on the Envelope-to field..
>
> How can I modify this so that two seperate messages are delivered to
> the Maildir? I need this method to work as I am delivering the
> messages via SMTP from the Maildir to Exchange Servers.
>
>
> How are you delivering from maildir to the exchange servers? Both
> envelope-to addresses should be sent in the SMTP session when
> delivering to the exchange server.

I'm using serialmail and a fifo socket and some bridging code.. But
thats not the issue. The issue is I want seperate emails delivered to
the Maidlir with a single Envelope-To instead
fo one email with multple addresses seperated by a comma for the
Envelope To.


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


warren at decoy

Jul 3, 2009, 5:09 AM

Post #4 of 5 (349 views)
Permalink
Re: allow duplicate messages [In reply to]

2009/7/3 Jonathan Gilpin <jonathan[at]fluent.ltd.uk>

>
>
> I'm using serialmail and a fifo socket and some bridging code.. But thats
> not the issue. The issue is I want seperate emails delivered to the Maidlir
> with a single Envelope-To instead
> fo one email with multple addresses seperated by a comma for the Envelope
> To.
>


Besides the increased disk space usage and increased I/O for each message,
you can look at the batch_max and batch_id options. Also consider possibly
delivering the mail into BSMTP format (into a maildir structure) which can
the be replayed at a later stage.


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


jonathan at fluent

Jul 3, 2009, 5:30 AM

Post #5 of 5 (353 views)
Permalink
Re: allow duplicate messages [In reply to]

Any points on where to figure this approach out?

Jonathan

On 3 Jul 2009, at 13:09, Warren Baker wrote:

> 2009/7/3 Jonathan Gilpin <jonathan[at]fluent.ltd.uk>
>
>
> I'm using serialmail and a fifo socket and some bridging code.. But
> thats not the issue. The issue is I want seperate emails delivered
> to the Maidlir with a single Envelope-To instead
> fo one email with multple addresses seperated by a comma for the
> Envelope To.
>
>
> Besides the increased disk space usage and increased I/O for each
> message, you can look at the batch_max and batch_id options. Also
> consider possibly delivering the mail into BSMTP format (into a
> maildir structure) which can the be replayed at a later stage.
>
>
> warren.

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

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.