Re: [exim] Newbie Question: How to send all incoming mails t…

Góra strony
Delete this message
Reply to this message
Autor: W B Hacker
Data:  
Dla: exim users
Temat: Re: [exim] Newbie Question: How to send all incoming mails to other local mailserver
Ralf Bender wrote:
>

*SNIP*

> The other server is also localhost, the
> same machine.


You can only do that IF you can make the rig look, act, and taste like two
separate boxen.

You also need to keep the traffic actually running over an smtp session, not a
craoss-box binary.

Otherwise, only the rules in acl_not_smtp apply. Any acl's in acl_smtp_<phase>
will be ignored because there *is no* actual smtp session.

- Each MTA will need its own configuration, IP and port, or at least its own port.

- You may need to ajust DNS entries and/or interecpt them with entries in /etc/hosts

This can get harder if both are NOT Exim, as you will have two different
environments to configure, and not all MTA are as readily capable of hat-tricks
as Exim.

> And this happens:-(
>
> 2007-11-26 12:18:42 1Iwbz7-0005vn-Lw == testuser@??? R=testserver
> defer (-1): remote host address is the local host


Well it would do. Exim tries hard not to participate in loops!

Look for 'self = pass' - but do some other checking first...

Try using the rather excellent built-in debug tools, and at high verbosity, to
simulate some runs.

man exim

Exim is quite good as to telling you what it is attempting to do.

> 2007-11-26 12:18:42 1Iwbz7-0005vn-Lw Frozen
> 2007-11-26 12:18:42 1Iwbz7-0005vl-Fe Completed
>
>
> Here is my config:
> testserver:
>         driver = manualroute
>         domains = +local_domains
>         route_list = 192.168.0.21
>         transport = remote_smtp

>


What is *in* 'local_domain', i.e. - who are the 'players'?

> remote_smtp:
> driver = smtp
> port = 8025
>


Suggestion you mat want to use port 24 - which needs to be set up by root (then
privileges dropped) so things remain under tighter control.

From /etc/services:

#                24/tcp    any private mail system
#                24/udp    any private mail system


That's what it's for.

HTH,

Bill