Results 1 to 15 of 34

Thread: Email from router

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Email from router

    How do I email from my router? I have Olegs firmware version 1.9.2.7-5a installed on my router. In earlier releases (1.7.x I believe it was) sendmail was installed but I cannot find it any more. What happened to sendmail? Is there another email client available?

  2. #2
    Try mini_sendmail.
    B.

  3. #3

    Or try with esmtp..

    ..or you could try with esmtp.

    esmtp can be installed using ipkg :

    Code:
    ipkg install esmtp
    You should place a config ( esmtprc ) file in your /opt/etc directory :

    Code:
    hostname = smtp.isp.com:25
    username = "user"
    password = "password"
    where smtp.isp.com should be your ISP smtp server.
    User + password are only important if your ISP smtp server requires this.

    now you can use /opt/sbin/sendmail as you would normally use sendmail on your localhost.
    macsat
    http://www.macsat.com - Tutorials and information on using ASUS WL-500G and family.

  4. #4
    some mail servers with TTL might require adding "starttls required" into the esmtprc

  5. #5
    Join Date
    Mar 2005
    Location
    Germany
    Posts
    16
    Quote Originally Posted by macsat
    ..or you could try with esmtp.
    I've installed according your tutorial. Installation fine, but when I try to send something like:

    Code:
    $ echo "Test Message" | sendmail user@domain.com -f user@domain.com
    I do not get prompt back. When I try to exit with Ctrl-Z get an error message:

    Code:
    [1] + CPU time limit exceeded    echo "Test Message" | ...
    Tryed to remove and install again. Doesn't help.

    Could anybody help?
    Thanks.

  6. #6
    Join Date
    Mar 2005
    Location
    Germany
    Posts
    16
    Quote Originally Posted by kiewer
    When I try to exit with Ctrl-Z get an error message:

    Code:
    [1] + CPU time limit exceeded    echo "Test Message" | ...
    Tryed to remove and install again. Doesn't help.

    Could anybody help?
    Thanks.
    May be it is normal behavior on pressing Ctrl-Z (stop job), but nevertheless esmtp doesn't work.

  7. #7
    Join Date
    Mar 2005
    Location
    Germany
    Posts
    16
    Now tryed with port 587 instead of port 465 and there is some update on my problem with esmtp and gmail.com (google) account:

    with /opt/etc/esmtprc (doesn't matter whether starttls = enabled or required):

    Code:
    hostname = smtp.gmail.com:587
    
    username = "xxxxxxx.x@gmail.com"
    password = "xxxxxxx"
    starttls = enabled
    result:

    Code:
    $ echo "Test Message" | /opt/sbin/sendmail  xxxxxxxx.x@gmail.com
    Invalid peer certificate (error 20)
    0 (null)
    xxxxxxxx.x@gmail.com: 0 (null)
    and with following /opt/etc/esmtprc:

    Code:
    hostname = smtp.gmail.com:587
    
    identity = "xxx@xxxxx.xxx"
            username = "xxxxxxx.x@gmail.com"
            password = "xxxxxx"
            starttls = enabled
    result:

    Code:
    $ echo "Test Message" | /opt/sbin/sendmail  xxxxxxxx.x@gmail.com
    0 (null)
    xxxxxxxx.x@gmail.com: 0 (null)
    and no emails arrive to google.

    I've also found in Internet an advice to use stunnel especially for getting working esmtp with google account, but may be there is a more simple solution?
    Last edited by kiewer; 18-09-2005 at 08:52.

  8. #8
    Quote Originally Posted by kiewer
    I've installed according your tutorial. Installation fine, but when I try to send something like:

    Code:
    $ echo "Test Message" | sendmail user@domain.com -f user@domain.com
    I do not get prompt back. When I try to exit with Ctrl-Z get an error message:

    Code:
    [1] + CPU time limit exceeded    echo "Test Message" | ...
    Tryed to remove and install again. Doesn't help.

    Could anybody help?
    Thanks.
    Exactly same problem as you described. Do you have solved it?

  9. #9
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    There is no need to install any package for sending mail. There is utility in Oleg firmware called mini_sendmail which can send simple mail messages.

    Code:
    usage:  mini_sendmail [-f<name>] [-t] [-s<server>] [-T<timeout>] [-v] [address ...]
    Last edited by oleo; 18-04-2006 at 07:35.

Similar Threads

  1. USB Camera and Driver / Email sending ?
    By sky11 in forum WL-500g Q&A
    Replies: 5
    Last Post: 06-08-2005, 19:52
  2. open jpeg files from alert email in linux
    By xlephant in forum WL-500g Q&A
    Replies: 2
    Last Post: 10-07-2004, 13:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •