Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.networking > #2262
| From | "Jonathan N. Little" <lws4art@gmail.com> |
|---|---|
| Newsgroups | comp.os.linux.networking |
| Subject | Re: Trying to utilize mailx to send mail via apython script |
| Date | 2013-09-07 16:54 -0400 |
| Organization | LITTLE WORKS STUDIO |
| Message-ID | <l0g3pu$cc0$1@dont-email.me> (permalink) |
| References | (4 earlier) <l0c5tp$sh$1@dont-email.me> <l0d5qs$jlk$1@dont-email.me> <l0edrv$l50$1@dont-email.me> <l0f6eo$47f$1@dont-email.me> <l0g21u$1pp$1@dont-email.me> |
Ferrous Cranus wrote: > Στις 7/9/2013 3:33 μμ, ο/η Jonathan N. Little έγραψε: >> Ferrous Cranus wrote: >>> Στις 6/9/2013 9:10 μμ, ο/η Jonathan N. Little έγραψε: >>>> Ferrous Cranus wrote: >>>>> Στις 6/9/2013 11:50 πμ, ο/η Jorgen Grahn έγραψε: >>>>>>> Why i can only send mail to local server addresses an not to an >>>>>>> external >>>>>>> mail address? >>>>>> Don't know, but remember that local mail is a lot easier. As long as >>>>>> you have an MTA (e.g. sendmail) running and its config is not >>>>>> horribly >>>>>> broken, local->local will work. >>>>> >>>>> >>>>> I have managed already to make it work local=>local >>>>> >>>>> But then how about local => internet >>>> >>>> If you are only going it that direction "local => internet" and >>>> "internet" is gmail a simple solution is sSMTP. >>>> >>>> https://wiki.debian.org/sSMTP >>>> https://wiki.archlinux.org/index.php/SSMTP >>>> >>>> I use it for remote servers to send error messages and info via scripts >>>> to an "admin" gmail account. >>>> >>>> Very simple to setup and works with gmail. Works for me to keep tabs on >>>> various servers I maintain. >>>> >>>> >>> Can i use my own FROM field with sSMTP? >> >> >> Yes. I even add "X-*" headers for sorting done within my scripts, Perl >> and shell scripts so would be no problem with Python. >> >>> But connecting to google's smtp server will still add a Sender header. >> >> >> Not for the from From field, but the hostname is recorded in Received >> field...but maybe I am misunderstanding your question. >> > is there a way to send mail from the mail address i specify and without > the hostname of my server being revealed? > Well reading the man it says <http://linux.die.net/man/5/ssmtp.conf> it says: "Hostname The full qualified name of the host. If not specified, the host is queried for its hostname. " So to test I used "bogus.nowhere.invalid" and that is what is in the header for "Received:" fields. This is independent of the "From:" field which you can set with your script if your enable it in the ssmtp.conf. But note your external IP will be recorded though, no way around that I would guess without a proxy. -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com
Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 19:11 +0300
Re: Trying to utilize mailx to send mail via apython script Jorgen Grahn <grahn+nntp@snipabacken.se> - 2013-09-05 18:13 +0000
Re: Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-06 09:19 +0300
Re: Trying to utilize mailx to send mail via apython script Jorgen Grahn <grahn+nntp@snipabacken.se> - 2013-09-06 08:50 +0000
Re: Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-06 12:06 +0300
Re: Trying to utilize mailx to send mail via apython script "Jonathan N. Little" <lws4art@gmail.com> - 2013-09-06 14:10 -0400
Re: Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-07 08:33 +0300
Re: Trying to utilize mailx to send mail via apython script "Jonathan N. Little" <lws4art@gmail.com> - 2013-09-07 08:33 -0400
Re: Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-07 23:24 +0300
Re: Trying to utilize mailx to send mail via apython script "Jonathan N. Little" <lws4art@gmail.com> - 2013-09-07 16:54 -0400
Re: Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-08 09:58 +0300
Re: Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-08 10:57 +0300
Re: Trying to utilize mailx to send mail via apython script "Jonathan N. Little" <lws4art@gmail.com> - 2013-09-08 10:11 -0400
Re: Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-08 17:16 +0300
Re: Trying to utilize mailx to send mail via apython script Todd <Todd@invalid.invalid> - 2013-09-08 18:23 -0700
Re: Trying to utilize mailx to send mail via apython script Todd <Todd@invalid.invalid> - 2013-09-08 18:35 -0700
Re: Trying to utilize mailx to send mail via apython script "Jonathan N. Little" <lws4art@gmail.com> - 2013-09-09 17:11 -0400
Re: Trying to utilize mailx to send mail via apython script Todd <Todd@invalid.invalid> - 2013-09-09 14:40 -0700
Re: Trying to utilize mailx to send mail via apython script "Jonathan N. Little" <lws4art@gmail.com> - 2013-09-09 18:15 -0400
Re: Trying to utilize mailx to send mail via apython script David Brown <david.brown@removethis.hesbynett.no> - 2013-09-08 16:42 +0200
Re: Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-08 18:41 +0300
Re: Trying to utilize mailx to send mail via apython script Whiskers <catwheezel@operamail.com> - 2013-09-08 17:56 +0100
Re: Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-09 11:09 +0300
Re: Trying to utilize mailx to send mail via apython script Whiskers <catwheezel@operamail.com> - 2013-09-09 21:31 +0100
Re: Trying to utilize mailx to send mail via apython script Jorgen Grahn <grahn+nntp@snipabacken.se> - 2013-09-09 19:35 +0000
Re: Trying to utilize mailx to send mail via apython script Todd <Todd@invalid.invalid> - 2013-09-06 00:22 -0700
Re: Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-06 11:09 +0300
Re: Trying to utilize mailx to send mail via apython script Todd <Todd@invalid.invalid> - 2013-09-07 15:39 -0700
Re: Trying to utilize mailx to send mail via apython script Todd <Todd@invalid.invalid> - 2013-09-07 15:41 -0700
Re: Trying to utilize mailx to send mail via apython script Todd <Todd@invalid.invalid> - 2013-09-07 16:20 -0700
Re: Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-08 09:54 +0300
Re: Trying to utilize mailx to send mail via apython script Todd <Todd@invalid.invalid> - 2013-09-08 13:15 -0700
Re: Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-09 11:29 +0300
Re: Trying to utilize mailx to send mail via apython script Todd <Todd@invalid.invalid> - 2013-09-09 11:44 -0700
Re: Trying to utilize mailx to send mail via apython script Whiskers <catwheezel@operamail.com> - 2013-09-09 22:07 +0100
Re: Trying to utilize mailx to send mail via apython script "Jonathan N. Little" <lws4art@gmail.com> - 2013-09-09 17:33 -0400
Re: Trying to utilize mailx to send mail via apython script Whiskers <catwheezel@operamail.com> - 2013-09-10 16:38 +0100
Re: Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-10 22:37 +0300
Re: Trying to utilize mailx to send mail via apython script David Brown <david.brown@removethis.hesbynett.no> - 2013-09-10 23:04 +0200
Re: Trying to utilize mailx to send mail via apython script Whiskers <catwheezel@operamail.com> - 2013-09-10 22:05 +0100
Re: Trying to utilize mailx to send mail via apython script David Brown <david@westcontrol.removethisbit.com> - 2013-09-06 11:10 +0200
Re: Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-06 12:17 +0300
Re: Trying to utilize mailx to send mail via apython script David Brown <david.brown@removethis.hesbynett.no> - 2013-09-08 16:34 +0200
Re: Trying to utilize mailx to send mail via apython script Ferrous Cranus <nikos@superhost.gr> - 2013-09-08 18:37 +0300
Re: Trying to utilize mailx to send mail via apython script David Brown <david.brown@removethis.hesbynett.no> - 2013-09-09 01:57 +0200
csiph-web