how to send email without password?












1















This might be naive.



But is it possible in Ubuntu to have a script send out emails without requiring passwords? (via a dummy mail server, maybe)



I was hoping to use this to allow my account to periodically send info to myself (a real email account), for example, when certain task is completed. And I don't really want to risk storing the password for a real, external email account on the hard drive.










share|improve this question























  • Possibly. My ISP allows me to send mail with the only validation being my sending IP address. ie. I can telnet smtp.myisp.net 25 into their mail server & enter details for email then exit, which of course allowed me to script it & use it for myself. I've even had scripts send externally (not to isp email), but I've also had these rejected (I didn't explore; it was sent externally because of a typo).

    – guiverc
    Jan 18 at 3:10
















1















This might be naive.



But is it possible in Ubuntu to have a script send out emails without requiring passwords? (via a dummy mail server, maybe)



I was hoping to use this to allow my account to periodically send info to myself (a real email account), for example, when certain task is completed. And I don't really want to risk storing the password for a real, external email account on the hard drive.










share|improve this question























  • Possibly. My ISP allows me to send mail with the only validation being my sending IP address. ie. I can telnet smtp.myisp.net 25 into their mail server & enter details for email then exit, which of course allowed me to script it & use it for myself. I've even had scripts send externally (not to isp email), but I've also had these rejected (I didn't explore; it was sent externally because of a typo).

    – guiverc
    Jan 18 at 3:10














1












1








1








This might be naive.



But is it possible in Ubuntu to have a script send out emails without requiring passwords? (via a dummy mail server, maybe)



I was hoping to use this to allow my account to periodically send info to myself (a real email account), for example, when certain task is completed. And I don't really want to risk storing the password for a real, external email account on the hard drive.










share|improve this question














This might be naive.



But is it possible in Ubuntu to have a script send out emails without requiring passwords? (via a dummy mail server, maybe)



I was hoping to use this to allow my account to periodically send info to myself (a real email account), for example, when certain task is completed. And I don't really want to risk storing the password for a real, external email account on the hard drive.







email






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 18 at 1:59









tinlyxtinlyx

82621224




82621224













  • Possibly. My ISP allows me to send mail with the only validation being my sending IP address. ie. I can telnet smtp.myisp.net 25 into their mail server & enter details for email then exit, which of course allowed me to script it & use it for myself. I've even had scripts send externally (not to isp email), but I've also had these rejected (I didn't explore; it was sent externally because of a typo).

    – guiverc
    Jan 18 at 3:10



















  • Possibly. My ISP allows me to send mail with the only validation being my sending IP address. ie. I can telnet smtp.myisp.net 25 into their mail server & enter details for email then exit, which of course allowed me to script it & use it for myself. I've even had scripts send externally (not to isp email), but I've also had these rejected (I didn't explore; it was sent externally because of a typo).

    – guiverc
    Jan 18 at 3:10

















Possibly. My ISP allows me to send mail with the only validation being my sending IP address. ie. I can telnet smtp.myisp.net 25 into their mail server & enter details for email then exit, which of course allowed me to script it & use it for myself. I've even had scripts send externally (not to isp email), but I've also had these rejected (I didn't explore; it was sent externally because of a typo).

– guiverc
Jan 18 at 3:10





Possibly. My ISP allows me to send mail with the only validation being my sending IP address. ie. I can telnet smtp.myisp.net 25 into their mail server & enter details for email then exit, which of course allowed me to script it & use it for myself. I've even had scripts send externally (not to isp email), but I've also had these rejected (I didn't explore; it was sent externally because of a typo).

– guiverc
Jan 18 at 3:10










2 Answers
2






active

oldest

votes


















-1














Use MSMTP.



MSMTP is a program which delivers email from a local computer to a configured mailhost (mailhub). It is not a mail server (like feature-rich mail server sendmail) and does not receive mail, expand aliases or manage a queue. One of its primary uses is for forwarding automated email (like system alerts) off your machine and to an external email address.



Upstream: https://marlam.de/msmtp/



Man Page in Ubuntu: http://manpages.ubuntu.com/manpages/bionic/man1/msmtp.1.html






share|improve this answer
























  • This does not address the issue of password storage, since you have to store the password to your account on the mailhub.

    – fkraiem
    Jan 18 at 3:30











  • All modern smtp, requires an authentication, unless you build an SMTP and that authentication is canceled (crazy) or that is open on your network. This option is the best, I think.

    – Carlos Dagorret
    Jan 18 at 3:36



















-1














Possibly, or at least it's worked for me...



My [home] ISP allows me to send mail with the only validation being my sending IP address (that I send the email from my home & not elsewhere).



I can



telnet smtp.myisp.net 25



into their mail server & enter commands needed to send email (as if I was a MUA) then exit, which of course allowed me to script it & use it for myself (alert me to jobs, events etc).



I've even had scripts send externally (not to my isp's email address), but I've also had these rejected (I didn't explore; it was sent externally because of a typo, not intentionally).



--
My use of telnet was NOT intended to be the end result; it was only to prove that it's possible. My script calls functions & does not shell out to telnet. Telnet was just to prove the idea worked before I wasted time scripting it, but YES this is a dirty hack.






share|improve this answer


























  • I have to -1, this is a terrible thing to do. If you want to do this, you should properly configure your mail system to use smtp.myisp.net as a smarthost, not hack with telnet.

    – fkraiem
    Jan 18 at 3:25











  • My use of telnet was NOT intended to be the end result; it was only to prove that it's possible. My script uses functions & does not shell out to telnet. Telnet was just to prove the idea worked before I scripted it.

    – guiverc
    Jan 18 at 3:36











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1110719%2fhow-to-send-email-without-password%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









-1














Use MSMTP.



MSMTP is a program which delivers email from a local computer to a configured mailhost (mailhub). It is not a mail server (like feature-rich mail server sendmail) and does not receive mail, expand aliases or manage a queue. One of its primary uses is for forwarding automated email (like system alerts) off your machine and to an external email address.



Upstream: https://marlam.de/msmtp/



Man Page in Ubuntu: http://manpages.ubuntu.com/manpages/bionic/man1/msmtp.1.html






share|improve this answer
























  • This does not address the issue of password storage, since you have to store the password to your account on the mailhub.

    – fkraiem
    Jan 18 at 3:30











  • All modern smtp, requires an authentication, unless you build an SMTP and that authentication is canceled (crazy) or that is open on your network. This option is the best, I think.

    – Carlos Dagorret
    Jan 18 at 3:36
















-1














Use MSMTP.



MSMTP is a program which delivers email from a local computer to a configured mailhost (mailhub). It is not a mail server (like feature-rich mail server sendmail) and does not receive mail, expand aliases or manage a queue. One of its primary uses is for forwarding automated email (like system alerts) off your machine and to an external email address.



Upstream: https://marlam.de/msmtp/



Man Page in Ubuntu: http://manpages.ubuntu.com/manpages/bionic/man1/msmtp.1.html






share|improve this answer
























  • This does not address the issue of password storage, since you have to store the password to your account on the mailhub.

    – fkraiem
    Jan 18 at 3:30











  • All modern smtp, requires an authentication, unless you build an SMTP and that authentication is canceled (crazy) or that is open on your network. This option is the best, I think.

    – Carlos Dagorret
    Jan 18 at 3:36














-1












-1








-1







Use MSMTP.



MSMTP is a program which delivers email from a local computer to a configured mailhost (mailhub). It is not a mail server (like feature-rich mail server sendmail) and does not receive mail, expand aliases or manage a queue. One of its primary uses is for forwarding automated email (like system alerts) off your machine and to an external email address.



Upstream: https://marlam.de/msmtp/



Man Page in Ubuntu: http://manpages.ubuntu.com/manpages/bionic/man1/msmtp.1.html






share|improve this answer













Use MSMTP.



MSMTP is a program which delivers email from a local computer to a configured mailhost (mailhub). It is not a mail server (like feature-rich mail server sendmail) and does not receive mail, expand aliases or manage a queue. One of its primary uses is for forwarding automated email (like system alerts) off your machine and to an external email address.



Upstream: https://marlam.de/msmtp/



Man Page in Ubuntu: http://manpages.ubuntu.com/manpages/bionic/man1/msmtp.1.html







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 18 at 3:26









Carlos DagorretCarlos Dagorret

510214




510214













  • This does not address the issue of password storage, since you have to store the password to your account on the mailhub.

    – fkraiem
    Jan 18 at 3:30











  • All modern smtp, requires an authentication, unless you build an SMTP and that authentication is canceled (crazy) or that is open on your network. This option is the best, I think.

    – Carlos Dagorret
    Jan 18 at 3:36



















  • This does not address the issue of password storage, since you have to store the password to your account on the mailhub.

    – fkraiem
    Jan 18 at 3:30











  • All modern smtp, requires an authentication, unless you build an SMTP and that authentication is canceled (crazy) or that is open on your network. This option is the best, I think.

    – Carlos Dagorret
    Jan 18 at 3:36

















This does not address the issue of password storage, since you have to store the password to your account on the mailhub.

– fkraiem
Jan 18 at 3:30





This does not address the issue of password storage, since you have to store the password to your account on the mailhub.

– fkraiem
Jan 18 at 3:30













All modern smtp, requires an authentication, unless you build an SMTP and that authentication is canceled (crazy) or that is open on your network. This option is the best, I think.

– Carlos Dagorret
Jan 18 at 3:36





All modern smtp, requires an authentication, unless you build an SMTP and that authentication is canceled (crazy) or that is open on your network. This option is the best, I think.

– Carlos Dagorret
Jan 18 at 3:36













-1














Possibly, or at least it's worked for me...



My [home] ISP allows me to send mail with the only validation being my sending IP address (that I send the email from my home & not elsewhere).



I can



telnet smtp.myisp.net 25



into their mail server & enter commands needed to send email (as if I was a MUA) then exit, which of course allowed me to script it & use it for myself (alert me to jobs, events etc).



I've even had scripts send externally (not to my isp's email address), but I've also had these rejected (I didn't explore; it was sent externally because of a typo, not intentionally).



--
My use of telnet was NOT intended to be the end result; it was only to prove that it's possible. My script calls functions & does not shell out to telnet. Telnet was just to prove the idea worked before I wasted time scripting it, but YES this is a dirty hack.






share|improve this answer


























  • I have to -1, this is a terrible thing to do. If you want to do this, you should properly configure your mail system to use smtp.myisp.net as a smarthost, not hack with telnet.

    – fkraiem
    Jan 18 at 3:25











  • My use of telnet was NOT intended to be the end result; it was only to prove that it's possible. My script uses functions & does not shell out to telnet. Telnet was just to prove the idea worked before I scripted it.

    – guiverc
    Jan 18 at 3:36
















-1














Possibly, or at least it's worked for me...



My [home] ISP allows me to send mail with the only validation being my sending IP address (that I send the email from my home & not elsewhere).



I can



telnet smtp.myisp.net 25



into their mail server & enter commands needed to send email (as if I was a MUA) then exit, which of course allowed me to script it & use it for myself (alert me to jobs, events etc).



I've even had scripts send externally (not to my isp's email address), but I've also had these rejected (I didn't explore; it was sent externally because of a typo, not intentionally).



--
My use of telnet was NOT intended to be the end result; it was only to prove that it's possible. My script calls functions & does not shell out to telnet. Telnet was just to prove the idea worked before I wasted time scripting it, but YES this is a dirty hack.






share|improve this answer


























  • I have to -1, this is a terrible thing to do. If you want to do this, you should properly configure your mail system to use smtp.myisp.net as a smarthost, not hack with telnet.

    – fkraiem
    Jan 18 at 3:25











  • My use of telnet was NOT intended to be the end result; it was only to prove that it's possible. My script uses functions & does not shell out to telnet. Telnet was just to prove the idea worked before I scripted it.

    – guiverc
    Jan 18 at 3:36














-1












-1








-1







Possibly, or at least it's worked for me...



My [home] ISP allows me to send mail with the only validation being my sending IP address (that I send the email from my home & not elsewhere).



I can



telnet smtp.myisp.net 25



into their mail server & enter commands needed to send email (as if I was a MUA) then exit, which of course allowed me to script it & use it for myself (alert me to jobs, events etc).



I've even had scripts send externally (not to my isp's email address), but I've also had these rejected (I didn't explore; it was sent externally because of a typo, not intentionally).



--
My use of telnet was NOT intended to be the end result; it was only to prove that it's possible. My script calls functions & does not shell out to telnet. Telnet was just to prove the idea worked before I wasted time scripting it, but YES this is a dirty hack.






share|improve this answer















Possibly, or at least it's worked for me...



My [home] ISP allows me to send mail with the only validation being my sending IP address (that I send the email from my home & not elsewhere).



I can



telnet smtp.myisp.net 25



into their mail server & enter commands needed to send email (as if I was a MUA) then exit, which of course allowed me to script it & use it for myself (alert me to jobs, events etc).



I've even had scripts send externally (not to my isp's email address), but I've also had these rejected (I didn't explore; it was sent externally because of a typo, not intentionally).



--
My use of telnet was NOT intended to be the end result; it was only to prove that it's possible. My script calls functions & does not shell out to telnet. Telnet was just to prove the idea worked before I wasted time scripting it, but YES this is a dirty hack.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 18 at 3:42

























answered Jan 18 at 3:13









guivercguiverc

4,57721522




4,57721522













  • I have to -1, this is a terrible thing to do. If you want to do this, you should properly configure your mail system to use smtp.myisp.net as a smarthost, not hack with telnet.

    – fkraiem
    Jan 18 at 3:25











  • My use of telnet was NOT intended to be the end result; it was only to prove that it's possible. My script uses functions & does not shell out to telnet. Telnet was just to prove the idea worked before I scripted it.

    – guiverc
    Jan 18 at 3:36



















  • I have to -1, this is a terrible thing to do. If you want to do this, you should properly configure your mail system to use smtp.myisp.net as a smarthost, not hack with telnet.

    – fkraiem
    Jan 18 at 3:25











  • My use of telnet was NOT intended to be the end result; it was only to prove that it's possible. My script uses functions & does not shell out to telnet. Telnet was just to prove the idea worked before I scripted it.

    – guiverc
    Jan 18 at 3:36

















I have to -1, this is a terrible thing to do. If you want to do this, you should properly configure your mail system to use smtp.myisp.net as a smarthost, not hack with telnet.

– fkraiem
Jan 18 at 3:25





I have to -1, this is a terrible thing to do. If you want to do this, you should properly configure your mail system to use smtp.myisp.net as a smarthost, not hack with telnet.

– fkraiem
Jan 18 at 3:25













My use of telnet was NOT intended to be the end result; it was only to prove that it's possible. My script uses functions & does not shell out to telnet. Telnet was just to prove the idea worked before I scripted it.

– guiverc
Jan 18 at 3:36





My use of telnet was NOT intended to be the end result; it was only to prove that it's possible. My script uses functions & does not shell out to telnet. Telnet was just to prove the idea worked before I scripted it.

– guiverc
Jan 18 at 3:36


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1110719%2fhow-to-send-email-without-password%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

File:DeusFollowingSea.jpg