Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #2268

Re: Trying to utilize mailx to send mail via apython script

From Ferrous Cranus <nikos@superhost.gr>
Newsgroups comp.os.linux.networking
Subject Re: Trying to utilize mailx to send mail via apython script
Date 2013-09-08 10:57 +0300
Organization A noiseless patient Spider
Message-ID <l0halk$ip5$1@dont-email.me> (permalink)
References (6 earlier) <l0edrv$l50$1@dont-email.me> <l0f6eo$47f$1@dont-email.me> <l0g21u$1pp$1@dont-email.me> <l0g3pu$cc0$1@dont-email.me> <l0h763$4i1$1@dont-email.me>

Show all headers | View raw


Στις 8/9/2013 9:58 πμ, ο/η Ferrous Cranus έγραψε:
> Στις 7/9/2013 11:54 μμ, ο/η Jonathan N. Little έγραψε:
>> 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.
>>
>>
> I want to avoid using GMail's service because it adds up a Sender:
> header saying that the mail originating from my gmail accoutn while i
> want to use the FROM field that the visitor used in my html web form to
> fill in his email
>
> Also it would be nice if the hostname would appear too. Pehars by using
> a proxy.
> Can ssmtp handle this?
>
> I cannot even download ssmtp when i 'yum install ssmtp'
>
> where can i find it as a package and can you please provide me a
> ssmtp.conf file that does the above( set its own FROM field and alter
> hostname)
>
> Thank you.
>
I cannot evn decide if i need an external mail server or setup my own 
mail server.

-- 
Webhost <http://superhost.gr>

Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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