1757969 Members
2694 Online
108866 Solutions
New Discussion юеВ

sendmail

 
SOLVED
Go to solution
Fabian Brise├▒o
Esteemed Contributor

sendmail

Hi.
This is a simple question but how do I use sendmail

Knowledge is power.
5 REPLIES 5
spex
Honored Contributor
Solution

Re: sendmail

# man 1m sendmail
IT_2007
Honored Contributor

Re: sendmail

Do you want to send mail from server or want to recieve?

If you want to send out e-mail, don't have to run sendmail daemon.

use mailx, mail or elm utility to send e-mails.

If you want to recieve e-mails to the server then you have to configure sendmail
Fabian Brise├▒o
Esteemed Contributor

Re: sendmail

I want to send an email from my server to an email accout.

example@yahoo.com

Knowledge is power.
Geoff Wild
Honored Contributor

Re: sendmail

mailx -s "your subject" you@yourmail.com
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Victor BERRIDGE
Honored Contributor

Re: sendmail

Hi Fabian,
Test first:
$ sendmail -d0.1 Version 8.9.3 (PHNE_34936)
Compiled with: LDAPMAP MAP_REGEX LOG MATCHGECOS MIME7TO8 MIME8TO7
NAMED_BIND NDBM NETINET NETUNIX NEWDB NIS NISPLUS QUEUE SCANF
SMTP USERDB XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = ant
(canonical domain name) $j = ant.ce.etat-ge.ch
(subdomain name) $m = ce.etat-ge.ch
(node name) $k = ant
========================================================

----
You neesd to configure a minimum /etc/mail/sendmail.cf:
especially the line which starts by DS:
# "Smart" relay host (may be null)
#DS
DS.


All the best
Victor