[exim] Is it possible to configure exim to receive emails fr…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Ariel Arelovich
Date:  
À: exim-users
Sujet: [exim] Is it possible to configure exim to receive emails from printer and relay them through gmail?
Hello:

I've work in an office with an old printer/scanner that refuses to
send its scanned files using normal smtp means (like a gmail account
configuration).

I've manged to make it work, by configuring it to send the emails our
server (which has Debian and Exim) and then use exim hubbedhosts file
to relay these emails to our networked computers. However this last
part is hard to port to other OS (will need to move our workstations,
but not our server, to CentOS soon), or even make it work on Windows
(our administrative personnel have windows computers). So I thought of
configuring exim to receive the emails from the printer and then relay
them to gmail. However most tutorials I found seemingly configure exim
to use the user email to send it thorugh gmail.

I followed this tutorial:

https://wiki.debian.org/GmailAndExim4

However in the line where it said

Set to "127.0.0.1" for "IP-addresses to listen on for incoming SMTP
connections" to refuse external connections.

I changed it to 127.0.0,1;10.255.255.51 so that exim will accept my
printers emails (that last IP is the printer address).

However I allways get a:

2015-09-10 08:00:01 socket bind() to port 25 for address 10.255.255.51
failed: Cannot assign requested address: waiting 30s before trying
again (1 more try)
2015-09-10 08:00:10 socket bind() to port 25 for address 10.255.255.51
failed: Cannot assign requested address: waiting 30s before trying
again (6 more tries)
2015-09-10 08:00:31 socket bind() to port 25 for address 10.255.255.51
failed: Cannot assign requested address: daemon abandoned

In the /etc/var/exim4/mainlog.

Is it possible to do what I want? Can anyone tell me how to do it?

I might add that I'm very new at this, so I ask for patience please.

Thanks in advance for any help.