1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

gmail sendmail relay

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

  1. waeking

    waeking Networkin' Nut 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 smtp.gmail.com..... 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 smtp.gmail.com?
    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 Networkin' Nut 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 smtp.gmail.com port 465.
     
    waeking likes this.
  6. waeking

    waeking Networkin' Nut Member

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

    ipkg install stunnel

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

    [gmail] accept=5000 connect=smtp.gmail.com:465

    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?
     

Share This Page