Re: [exim] Is it possible to configure exim to receive email…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Klaus Ethgen
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Is it possible to configure exim to receive emails from printer and relay them through gmail?
Hi Ariel,

First, please answer to the list, not to my address to give others a
posibility to also answer.

Am Do den 10. Sep 2015 um 15:21 schrieb Ariel Arelovich:
> On Thu, Sep 10, 2015 at 11:05 AM, Klaus Ethgen <Klaus+exim@???> wrote:
> > Am Do den 10. Sep 2015 um 14:58 schrieb Ariel Arelovich:
> >> > The address you configure there is the address the server is
> >> > listening(!). You cannot limit the senders here.
> >>
> >> I don't understand. What senders? I don't want to limit senders,
> >
> > Yes, you do.
> >
> >> I want to make sure that my server Listens to that specific address.
> >
> > That you can't. That is not possible at all. You can specify on what
> > interface (identified by IP) you want to listen but you cannot listen to
> > the traffic of just one remote IP.
>
> Ok. I really appreciate that you are trying to help, bu I'm afraid I'm
> completely lost. As I said before, adding that address to that field
> is the ONLY thing that I've tried that at least got me some sort of
> answer.
>
> I do not understand how those IP's are for "sending" something when
> the description reads "IP-addresses to listen on for incoming SMTP
> connections", incoming = receiving. How is this senders?


Well, that has nothing to do with exim. That is how the network stack
works.

Well, the sender is your printer, isn't it? So the printer uses that IP
address 10.255.255.51 on the network to connect to all outside if I
understand you correct. So you have a exim server on another machine
that, most likely, has a different network address (IP). You cannot
/listen/ on the address that is not configured for the server.

The IP address, the server is using to send to google is different too.
(It will be nat'ed as you use a private address 10.x.x.x.)

The topic on the side you posted is to not allow external hosts to use
your server to send illegitime mails. It limits to lo interface only (lo
has the address 127.0.0.1). It does that by /listening/ only on that
interface.

The reason for this is that you can create many trouble if you do not
limit mails you accept propperly.

But for that /accepting/ you cannot use only the /listening/ address
only if you use something different than 127.0.0.1 (and even then ...).
You have to use ACLs to do so.

> Is there any place that where I can read how to configure exim from
> scratch in order to do what I need?


Well, on the exim side[0]. On many systems, also your distributor does
some more or less save configuration in most times.

> All I want is to simply configure exim so as to send emails that come
> from the address 10.255.255.51 to a real life email account.


Then you should limit it to that address only /via ACLs/.

Something like:
accept hosts = 10.255.255.51
deny

> I thought of using a gmail account to do this, but any other solution
> that will solve this is welcome.


Well, as I understand you, you want to /relay/ to gmail using your
private account. That is fine. But it has nothing to do with from where
you /accept/ the mails to relay.

> Please, this has been a problem for over 3 years now and I desperately
> want a solution for it.


Maybe you want to read the documentation on [0] and/or start from the
/examples/ that come with exim and/or start from the stuff your
distribution come with.

Regards
Klaus

[0] http://www.exim.org/exim-html-current/doc/html/spec_html/index.html
- -- 
Klaus Ethgen                              http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16   Klaus Ethgen <Klaus@???>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C