Personal tools

Difference between revisions of "Sendmail"

From MohidWiki

Jump to: navigation, search
 
m (1 revision)
 
(No difference)

Latest revision as of 11:39, 3 December 2008

Sendmail is your smtp server for sending and receiving emails in linux.

Quick start

  • Check if sendmail is activated
> ps axf | grep sendmail
  • Here's how to activate sendmail
> chkconfig chkconfig --level 35 sendmail on
> /etc/init.d/sendmail start
  • Test sendmail by sending an email
> echo "test" | mail -s testsubject someemail@hotmailorwherever.com
  • Send files in email from command line
> afilename=somefile.ext;
> (echo "$afilename is attached" ; cat  $afilename | uuencode $afilename) | mail -s "`echo $afilename`" youraddress@yourserver.com

External links