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

Running an SMTP server in Tomato?

Discussion in 'Tomato Firmware' started by lanmtl, Dec 2, 2009.

  1. lanmtl

    lanmtl Addicted to LI Member

    Hello all!
    Would it be possible to run the simplest SMTP server on a Tomato 1.27 router? I suppose the smtpd doesn't require much if used only by one or two users, does it?
    Thanks for replying!!
     
  2. mstombs

    mstombs Network Guru Member

    A proper mail server needs lots of disk space for buffering messages so would need a router with external hard-disk - maybe there is already an ipkg that could be downloaded with the USB mod?

    There is a small smtp client in Busybox that could be enabled at compile time, but similar can be achieved with telnet script. Would be useful for email alerts from router.

    If you just want the router to capture smtp traffic and redirect it to your ISP server that could be done - similar to the DNS capture that can be enabled from web GUI.
     
  3. lanmtl

    lanmtl Addicted to LI Member

    I am only moderately litterate in regards with SMTP.
    This is my situation: I was paying a company (not related to my ISP) to have access to a premium SMTP server at smtp.smtpserver.tld:25
    Since my beloved ISP blocked port 25, I can't access my premium SMTP server. I don't want to use my ISP's SMTP.
    So I was thinking about setting up an smtpd in my Tomtato router so I can still send emails like before.

    I assume a SMTP daemon is merely like a telnet daemon, it just forwards outgoing emails. Then the POP/IMAP/whatever server of the recipient does all the storage etc, am I mistaken?
     
  4. mstombs

    mstombs Network Guru Member

    Due to spam blocks etc, I think it unlikely your router would be accepted as a full server.

    Have you considered google? Gmail offers a secure smtp server not on port 25, but will re-write "from" to its account specific default.

    An no - I've never managed to get Busybox sendmail to work with gmail!
     
  5. lanmtl

    lanmtl Addicted to LI Member

    Ok thanks for the clarification.
    I will probably go with vfemail.net who offers SMTP-SSL amongst other things for a 15$ lifetime membership or with runbox who does pretty much the same for 5$ a year.
     
  6. jan.n

    jan.n Addicted to LI Member

    lanmtl, IMHO it would make no difference if you got an SMPT-Server on your router. Let me explain: You say your ISP blocks port 25, so you can't send email via your premium SMTP server using your eMail program.

    Behind the scenes, your mail program does the following:
    It connects to your premium SMTP server and delivers the email to that particular server. In the default configuration, this setup uses port 25 of the remote SMTP server. Which is blocked.

    Using a SMTP server on your router, it would function like this:
    Behind the scenes, your mail program would connects to your routers SMTP server and deliver the email to your router. The router in turn would then connect to the destination mail server and try to deliver the email to it. This would, in the default configuration, use port 25 of the remote SMTP server (or your premium SMTP server). Which are both blocked because of your ISP blocking port 25.

    This is why I believe your modified setup would not help you with your issue.

    A solution would be to use SMTP over SSL. Do not confuse this with SSL/TLS, as the communication uses port 25 and is encrypted after the STARTTLS command. True SMTP over SSL uses port 465 (although the should not, but that's another story)...
     
  7. lanmtl

    lanmtl Addicted to LI Member

    Yes I figured this out actually and realized this wouldn't solve my problem.
    Well I'll go with VFEmail , they offer SMTP over SSL and a 2Gb mailbox for a one off fee of 11.25$
    Thanks for your help all!
     
  8. fei2010

    fei2010 Networkin' Nut Member

    could you elaborate how to enable smtp in tomato 1.27? what I hope to do is have some script to check log message and email to my gmail account if there is any error detected.
     

Share This Page