www.mamboteam.com
macsat.com - OpenWrt | Olegs Firmware  
Home arrow Tutorials - Oleg arrow esmtp Turorial
Friday, 09 January 2009
 
 
Main Menu
Home
About
News
Tutorials - OpenWrt (WR)
Tutorials - Oleg
Wiki (RDC Based Routers)
Online Shop
Forum
Downloads
Free Linux eBooks
Links
Search
Contact Us
We have 4 guests online
2944995 Visitors
Login
Welcome Guest.






Lost Password?
No account yet? Register
Old macsat.com
Nokia Unlock (Dansk)
Nokia Unlock (English)
XBins IRC Chat
esmtp Turorial PDF Print E-mail
(0 votes)
Written by macsat   
Friday, 25 November 2005

About esmtp

esmtp is a small Mail Transfer Agent (MTA) that can send mail using relay to a SMTP server. This means that esmtp is not a SMTP Server, it is rather a SMTP client.

Why would you want to install esmtp?

esmtp can be used to sending mails from your router. Maby you have some software like logrotate that needs to be able to mail you logs of attacks / software crashes and so on. Also it enables you to send mail from Perl Scripts, and PHP pages (see my PHP enabled web server Tutorial (thttpd) for details).

The following is a step4step guide on how to install and configure esmtp on an ASUS WL-Series device. The guide is made using a ASUS WL-500G Deluxe (or WL-500GX as it is sometimes called).

It should however apply to all the following ASUS wireless devices:

Tutorial Index

1. Prerequisites
2. Install, Configure and Use

Prerequisites

The prerequisites for using esmtp are pretty straightforward :
  • One of the above Asus Wireless devices
  • An USB Harddrive or USB Memory Stick / Keyring with some 50-100 MB space.(For the WL-HDD you just need a regular Harddrive)
  • Firmware version 1.9.2.7-4 (or higher) by Oleg
  • The ipkg package system

  • Install, Configure and Use

    To install esmtp, simply do :
    ipkg install esmtp < enter >

    esmtp and lib-esmtp are now installed. No config-file is created by default though.
    A small and simple configfile is quite easy to create :
    touch /opt/etc/esmtprc < enter >
    echo "hostname = \"smtp.yourisp.com\" " >> /opt/etc/esmtprc < enter >
    echo "username = \"yourname\" " >> /opt/etc/esmtprc < enter >
    echo "password = \"yourpass\" " >> /opt/etc/esmtprc < enter >

    Where you replace smtp.yourisp.com with the name of the SMTP server of your ISP.
    The two lines with username and password are only needed if you need to provice username and password for using your ISP SMTP server. Also here you need to replace yourname with your SMTP username, and yourpass with your SMTP password

    Now you can use either /opt/bin/esmtp or /opt/sbin/sendmail with normal sendmail syntax. To test, try to :

    echo "Test Message" | sendmail This e-mail address is being protected from spam bots, you need JavaScript enabled to view it -f This e-mail address is being protected from spam bots, you need JavaScript enabled to view it < enter >

    This will send a mail from the address specified first, from the address specified after the -f

    If you recieve a mail you are home free, and ready to send mails from your ASUS WL-500g :-)

    Last Updated ( Tuesday, 10 January 2006 )
     
    < Prev   Next >
    Buy Router
    Linksys WRTSL54GS
    Linksys WRTSL54GS
    Recent Forum Topics
    Donations

    If you appriciate this site, please consider making a small donation.

    All donations will be used to cover expenses from running macsat.com.

    Sponsored Ads
     
    Top! Top!