allow duplicate messages

View: New views
5 Messages — Rating Filter:   Alert me  

allow duplicate messages

by JonathanGilpin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

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

I have a mysql table with users in for example. postmaster@...
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@... to create a
catchall...

However, with this setup, duplicate mails are dropped.. so if someone
sends an email to bob@...,eggs@... 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/

Re: allow duplicate messages

by wagonza :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/7/3 Jonathan Gilpin <jonathan@...>

> Hi,
>
> I have been setting up a catchall system on my exim server.
>
> I have a mysql table with users in for example. postmaster@...
> 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@... to create a
> catchall...
>
> However, with this setup, duplicate mails are dropped.. so if someone
> sends an email to bob@...,eggs@... 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/

Re: allow duplicate messages

by JonathanGilpin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

> 2009/7/3 Jonathan Gilpin <jonathan@...>
> Hi,
>
> I have been setting up a catchall system on my exim server.
>
> I have a mysql table with users in for example. postmaster@...
> 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@... to create a
> catchall...
>
> However, with this setup, duplicate mails are dropped.. so if someone
> sends an email to bob@...,eggs@... 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/

Re: allow duplicate messages

by wagonza :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/7/3 Jonathan Gilpin <jonathan@...>

>
>
> 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/

Re: allow duplicate messages

by JonathanGilpin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...>
>
>
> 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/