Re: [exim] Sending mail directly to a smarthost

Top Page
Delete this message
Reply to this message
Author: Dan_Mitton
Date:  
To: Alex Carver
CC: exim-users
Subject: Re: [exim] Sending mail directly to a smarthost
Yes, very do-able. I believe you would want to do this in a router or
transport. If you had one message with 2 recipients -
foo@??? & bar@???, I assume you would not want
to change the subject for the @otherdomain.com delivery.

Check section 44.17 of the Exim manual (
http://www.exim.org/exim-html-current/doc/html/spec_html/ch44.html#SECTheadersaddrem
). There is a good example there.

You might need to create a new router to come before the current
'local_user:' router. Maybe something like 'relay_to_local_user:' or
something, that has conditions something like:

domain = + local_domains
host = + relay_from_hosts

so that only messages from your internal machines are effected.




Sent by:        exim-users-bounces@???
To:     Dan_Mitton@???
cc:     exim-users@??? 
Subject:        Re: [exim] Sending mail directly to a smarthost
LSN: Not Relevant
User Filed as: Not a Record


--- On Tue, 9/23/08, Dan_Mitton wrote:


> I would try adding router.mydomain.com:mail.mydomain.com to
> your
> local_domains list.
>


That did it, thanks! Along the same line (maybe I should start another
thread) is it possible to append a hostname to the subject line when a
smarthost receives mail from a local net machine to itself. So in this
case if I send mail from the machine machine_foo.mydomain.com to
mail.mydomain.com for local delivery, I'd like to see the subject line
read:

Subject: [machine_foo] (rest of subject is here)

But if the smarthost receives mail from anywhere else, it should not
mangle the subject line at all.




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