I want to be able to send email from my home computer to the outside world. I want to do that from a script, when certain events happen, so I can't use graphical clients like evolution. I have to use mail with sendmail or a replacement as postfix or qmail. Since sendmail comes by default with fedora, I thought I'd start with that.
My provider is verizon fios, and I do not have a static IP (although it only changes if I reboot the router), nor a fully qualified domain name. I also have a dyndns account, only the free dns service though, nothing else.
I imagine I have to configure my sendmail to forward the email to verizon's mail server. I got some inspiration from Evolution and from this guide:
http://fedoraproject.org/wiki/Docs/Drafts/AdministrationGuide/Servers/ MailServer/Sendmail
Besides the defaults, in sendmail.mc I have
define(`SMART_HOST', `outgoing.verizon.net')dnl
and
MASQUERADE_AS(`verizon.net')dnl FEATURE(masquerade_envelope)dnl FEATURE(allmasquerade)dnl
I did
echo "test" | /usr/sbin/sendmail amadeus84@verizon.net
It bounced back:
The original message was received at Thu, 6 Nov 2008 22:38:19 -0500 from phoenix [127.0.0.1]
----- The following addresses had permanent fatal errors ----- amadeus84@verizon.net (reason: 550 5.7.1 Authentication Required)
which makes sense. How do I tell sendmail to send my verizon password along with the email?
Thanks!
On Thu, 6 Nov 2008, Amadeus W.M. wrote:
I want to be able to send email from my home computer to the outside world. I want to do that from a script, when certain events happen, so I can't use graphical clients like evolution. I have to use mail with sendmail or a replacement as postfix or qmail. Since sendmail comes by default with fedora, I thought I'd start with that.
msmtp is a better choice in my opinion. It's installable with yum. Here's the website,
HTH, Ian
On Fri, 2008-11-07 at 03:42 +0000, Amadeus W.M. wrote:
I want to be able to send email from my home computer to the outside world. I want to do that from a script, when certain events happen, so I can't use graphical clients like evolution. I have to use mail with sendmail or a replacement as postfix or qmail. Since sendmail comes by default with fedora, I thought I'd start with that.
Unless you really want to learn about sendmail or postfix, there's no need to install a full-blown MTA just to send messages upstream. I've found the foll wing useful in these circumstances:
http://caspian.dotconf.net/menu/Software/SendEmail/
It's a neat little Perl script that does exactly what you want.
poc
Patrick O'Callaghan wrote:
On Fri, 2008-11-07 at 03:42 +0000, Amadeus W.M. wrote:
I want to be able to send email from my home computer to the outside world. I want to do that from a script, when certain events happen, so I can't use graphical clients like evolution. I have to use mail with sendmail or a replacement as postfix or qmail. Since sendmail comes by default with fedora, I thought I'd start with that.
Unless you really want to learn about sendmail or postfix, there's no need to install a full-blown MTA just to send messages upstream. I've found the foll wing useful in these circumstances:
http://caspian.dotconf.net/menu/Software/SendEmail/
It's a neat little Perl script that does exactly what you want.
poc
If you want to avoid installing more stuff, just shut off sendmail, and any other MTA stuff you have running, and edit the submit.mc or submit.cf file to add in your smart host. Looking at the SMART_HOST line you provided, just dump that in the submit file.
SMTP auth is rather straightforward, but since I haven't done it in a while, here is a link for it: http://www.sendmail.org/m4/smtp_auth.html
As a side note, when sending through an ISP mail relay, you need to get the Auth Details from the ISP, usually this is a webmail/account access username/password.
~Seann