Re: [Exim] Smarthost with an alternate port

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Willie Viljoen
Date:  
À: Martin Hicks, exim-users
Sujet: Re: [Exim] Smarthost with an alternate port
I think it's time to upgrade to Exim 4. There's no easy (and efficient) way
to do this in Exim 3. In Exim 4, it can be done very easily.

Place a normal Exim 4 style router in your configuration file at a point
where routing this makes sence (after virus scanning, etc). The router
should look like this:

smarthost_router:
        driver = manualroute
        transport = remote_smtp_over_ssh
        route_list = !+local_domains  127.0.0.1


Note the difference in the transport line from the normal Exim 4 smarthost.
Here we use remote_smtp_over_ssh as opposed to remote_smtp normally used
here. Now, add this anywhere in the transports section of your configuration
file:

remote_smtp_over_ssh:
       driver = smtp
       port = 9025
       allow_localhost


This transport operates exactly like the remote_smtp transport that would
normally be used, except that it allows you to deliver to localhost, and
changes the SMTP port to 9025.

I'm sure this can be done in Exim 3, but with great difficulty. I don't have
access to a sample Exim 3 installation to try a possible set of
configurations, so I can't get into that. I recommend upgrading to Exim 4
anyway.

Hope this helps.
Will

----- Original Message -----
From: "Martin Hicks" <mort@???>
To: <exim-users@???>
Sent: Saturday, November 08, 2003 3:19 AM
Subject: [Exim] Smarthost with an alternate port


> --
>
> hello,
>
> I've got a situation where I need to use SSH port forwarding magic to
> get outbound SMTP. I want to use a smarthost, but due to some stupid
> limitation of the ISP, I'm port forwarding port 25 on a report SMTP
> server to port 9025 on the machine in question.
>
> How can I specify a specific port to the smart host? Unfortunately, the
> delimiter for multiple smart hosts is a :, which is the classic
> host:port delimiter.
>
> This is exim 3.36. If there is no way in this version, then is this
> fixed in exim 4?
>
> TIA
> mh
>
> --
> Martin Hicks || mort@??? || PGP/GnuPG: 0x4C7F2BEE
> --
> Content-Description: This is a digitally signed message part
>
> [ signature.asc of type application/pgp-signature deleted ]
> --
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim

details at http://www.exim.org/ ##
>
>
>