On Fri, Feb 22, 2008 at 12:39:10AM -0500, Andrew Heagle wrote:
> I am a it of a Exim newbie and I am trying to figure out how to make a mail 
> sink/blackhole/something (not sure of the proper terminology) where any email 
> sent to that box will deliver to a single mailbox.
> 
> ... all the mail should end up in either the "qa" 
> mailbox or the "dev" mailbox depending on which server sent the email
> server/dev server). Also, the sysadmin for the QA/Dev lab wants to have yet 
> another mailbox for email with the local_user being "alerts" from any server 
> so he can quickly be notified of any hardware problems.

I think you want to implement this using routers - if I were you I'd ignore
headers_rewrite, and rewrite rules.  It sounds like you want to user routers
instead:

 * one router which looks for "alert" mail (using a local_parts condition),
   and sends that mail to the alert mailbox

 * and another router which uses $sender_host_address (the sender's IP
   address) as the basis for picking the destination mailbox - e.g. you could
   use a lookup on a file which says something like:

        192.168.1.1: dev
        192.168.1.2: qa

Both of these routers could use the "accept" driver.

Have a read of the spec about how routers work, and give the list a shout if
you still need help.

Good luck,

-- 
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey

Attachment: signature.asc
Description: Digital signature

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

Reply via email to