Re: [Exim] Masquerade needed for outbound mail.

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Xander D Harkness
Ημερομηνία:  
Προς: krelvinaz
Υ/ο: exim Users
Αντικείμενο: Re: [Exim] Masquerade needed for outbound mail.
krelvinaz@??? wrote:

>I've run into a problem that I didn't anticpate...
>
>Apparently all of our unix hosts when they send mail out the mail server, have the senders email address masquerated as just the domain name.
>
>So if the mail was from username@???, when it goes out it is username@???
>
>The Domain.name is currently always the same.
>
>send_to_smart_host:
> driver = manualroute
> domains = ! mailhost.domain.name
> route_list = * mailhost.otherdomain.name
> transport = remote_smtp
> no_more
>
>This is the end of the chain router.. so it takes everything the other routers didn't know about and smart hosts it to another server in another domain for delivery to the internet.
>
>what do I need to put in the transport which currently looks like:
>
>remote_smtp:
> driver = smtp
>
>Which I will change to (and update the above router to use)
>
>smarthost_remote_smpt:
> driver = smtp
>
>so that the outbound from is changed if needed from
>
>user@??? ->>> user@???
>
>I assume it is a
>
> headers_rewrite = ???
>
>Never done rewriting before.
>
>Or am I going to have to do something else.
>
>

At the end of the Exim configuration file you will see:

######################################################################
#                      REWRITE CONFIGURATION                         #
######################################################################


# There are no rewriting specifications in this default configuration file.

begin rewrite
#Here you can stick
*@server.domain.name      $local_part@???


# or
*@*.domain.name             $local_part@???


Kind regards
Xander

>
>
>--
>
>## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>
>
>