gmail sendmail relay

Discussion in 'Tomato Firmware' started by waeking, Jun 10, 2012.

  1. waeking

    waeking Addicted to LI Member

    I am looking for a start I am not sure exactly what I should be googling.

    I would like to have the printer send an email directly to a recipient using a google apps account However the printer does not work this way as there is no tls or ssl option available.

    Support has stated that:
    The imageCLASS MF8380CDW is able to send scanned image via a SMTP server or POP3 server configured via the unit. Bellow you will find the list of mail forwarding server software: Sendmail 8.93 or later.

    Can I setup a relay on the router (something like smtp.router.lan) using sendmail and then relay that to
    Again what am I looking for? Is there a guide that I can't find?
  2. mstombs

    mstombs Network Guru Member

    We have discussed gmail before because that would be very useful ISP independent from the router. I believe Rodney rhester72 did manage to add the extras required by BusyBox sendmaill, but that isn't a forwarder I fear, so something using optware may be the only way?
  3. waeking

    waeking Addicted to LI Member

    would postfix be able to do this? I am still trying to google to find the solution.
  4. gfunkdave

    gfunkdave LI Guru Member

    Most definitely. If you have a local Linux server you can set Postfix to be a mail relay to the LAN using a Gmail account.

    I'd venture to say that it's unlikely Toastman will add this functionality to his fork of Tomato because he's said several times he focuses on core routing functionality.
  5. ntest7

    ntest7 Network Guru Member

    Postfix is an excellent MTA, but is not well suited for the low memory and low storage requirements to run directly on a router. The "sendmail" command on the router is not the full sendmail package, rather just a command suitable for delivering messages from the router itself to some mail server, but not suitable for relaying messages from elsewhere.

    If your gmail account requires encryption, probably your best bet is to find an stunnel command for tomato so you can create an encrypted tunnel between your printer and port 465.
    waeking likes this.
  6. waeking

    waeking Addicted to LI Member

    Stunnel was the answer thanks so much.......

    ipkg install stunnel

    then in /opt/etc/stunnel/stunnel.conf add:

    [gmail] accept=5000

    Change the [gmail] to [internet@address]
    Change the printer to access the router on port 5000

    Works every time!
  7. i1135t

    i1135t Network Guru Member

    What program did you used for the Gmail SMTP authentication?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice