Chapter 8, Making Your Program Send Email

  1. What port does SMTP operate on?

SMTP does mail transmission over TCP port 25. Many providers use alternative ports for mail submission.

  1. How do you determine which SMTP server receives mail for a given domain?

The mail servers responsible for receiving mail for a given domain are given by MX-type DNS records.

  1. How do you determine which SMTP server sends mail for a given provider?

It's not possible to determine that in the general case. In any case, several servers could be responsible. Sometimes these servers will be listed under a TXT-type DNS record using SPF, but that is certainly not universal.

  1. Why won't an SMTP server relay mail without authentication?

Open relay SMTP servers are targeted by spammers. SMTP servers require authentication to prevent abuse.

  1. How are binary files sent as email attachments when SMTP is a text-based protocol?

Binary files must be re-encoded as plain text. The most common method is with Content-Transfer-Encoding: base64.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.113.193