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


Groups > comp.lang.python > #61863

Re: Using pythons smtp server

From Grant Edwards <invalid@invalid.invalid>
Newsgroups comp.lang.python
Subject Re: Using pythons smtp server
Date 2013-12-13 20:33 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <l8fqv2$nsl$1@reader1.panix.com> (permalink)
References <mailman.4046.1386908855.18130.python-list@python.org> <l8fd9s$ssb$1@reader1.panix.com> <CALyJZZU5WfT42982yZTFGJ1zy1Q4xzdSrXs0h9wPskdYuug-wA@mail.gmail.com> <CAPTjJmqY3k4d3tsYG7RoiHWTt8o9J+c8KzG=LYSeuBQN0pKbrQ@mail.gmail.com> <mailman.4091.1386959243.18130.python-list@python.org>

Show all headers | View raw


On 2013-12-13, Vincent Davis <vincent@vincentdavis.net> wrote:
> Grant, Chris
> Thanks !!!

> I guess in the end this is a bad idea, (for my purposes) I should just use
> my gmail account smtp server.

If you're going to claim the mail is from <somebody>@gmail.com, then
yes you should definitly send it via Gmail's SMTP server.  Doing
anything else is going to be a long, losing battle involving you
learning more about SMTP and e-mail headers than you probably want to.

If you've got your own domain (which you're using as the "from"
address), a static IP, and your own MX record and corresponding SMTP
server, you should be able to set things up to send mail directly.

Many years ago (like 20), I used to configure my home Linux boxes to
send mail directly to the destination SMTP server while claiming to be
from "grante@<my-isp's-name>.com".  At first it worked fine that way.
Then about about 12-15 years ago, I started having problems with some
servers refusing my mail.  I had a static IP address with a real,
official hostname, so I set up an MX record for that hostname, and
made sure my handshaking configuration was using a hostname that
mapped back to my static IP address.  That helped for a while, but
SMTP servers continued to get more and more paranoid.  Some SMTP
servers won't accept mail from an IP if they've determined is a
"residential" IP address even if you do have a domain that matches the
"from" address, an MX record, and everything else.

Eventually, I just gave up and started routing everything through the
"official" SMTP server associated with the e-mail address from which I
wanted to send the mail.

-- 
Grant Edwards               grant.b.edwards        Yow! I'm having a MID-WEEK
                                  at               CRISIS!
                              gmail.com            

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Using pythons smtp server Vincent Davis <vincent@vincentdavis.net> - 2013-12-12 18:01 -0700
  Re: Using pythons smtp server Grant Edwards <invalid@invalid.invalid> - 2013-12-13 16:40 +0000
    Re: Using pythons smtp server Vincent Davis <vincent@vincentdavis.net> - 2013-12-13 10:13 -0700
    Re: Using pythons smtp server Chris Angelico <rosuav@gmail.com> - 2013-12-14 05:15 +1100
    Re: Using pythons smtp server Vincent Davis <vincent@vincentdavis.net> - 2013-12-13 11:27 -0700
      Re: Using pythons smtp server Grant Edwards <invalid@invalid.invalid> - 2013-12-13 20:33 +0000
    Re: Using pythons smtp server Chris Angelico <rosuav@gmail.com> - 2013-12-14 05:29 +1100
    Re: Using pythons smtp server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-12-13 19:46 -0500
      Re: Using pythons smtp server Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2013-12-14 16:48 +0100
        Re: Using pythons smtp server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-12-14 12:59 -0500

csiph-web