Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit4.readnews.com!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Using pythons smtp server Date: Fri, 13 Dec 2013 20:33:38 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 37 Message-ID: References: NNTP-Posting-Host: dsl.comtrol.com X-Trace: reader1.panix.com 1386966818 24469 64.122.56.22 (13 Dec 2013 20:33:38 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Fri, 13 Dec 2013 20:33:38 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) Xref: csiph.com comp.lang.python:61863 On 2013-12-13, Vincent Davis 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 @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@.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