| esmtp Turorial |
|
|
|
| Written by macsat | |
| Friday, 25 November 2005 | |
About esmtpesmtp 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 Index1. Prerequisites2. Install, Configure and Use PrerequisitesThe prerequisites for using esmtp are pretty straightforward :Install, Configure and UseTo 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 > |
|---|







