Personal tools

Sendmail

From MohidWiki

(Redirected from Smtp)
Jump to: navigation, search

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