Click here to Skip to main content
15,899,313 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Fake SMTP Pin
Jochen Arndt7-Jun-18 3:23
professionalJochen Arndt7-Jun-18 3:23 
GeneralRe: Fake SMTP Pin
Sander Rossel7-Jun-18 8:31
professionalSander Rossel7-Jun-18 8:31 
GeneralRe: Fake SMTP Pin
Jochen Arndt6-Jun-18 23:09
professionalJochen Arndt6-Jun-18 23:09 
GeneralRe: Fake SMTP Pin
the goat in your machine6-Jun-18 23:19
the goat in your machine6-Jun-18 23:19 
GeneralRe: Fake SMTP Pin
Sander Rossel6-Jun-18 23:20
professionalSander Rossel6-Jun-18 23:20 
GeneralRe: Fake SMTP Pin
Jochen Arndt7-Jun-18 0:24
professionalJochen Arndt7-Jun-18 0:24 
GeneralRe: Fake SMTP Pin
Sander Rossel7-Jun-18 0:50
professionalSander Rossel7-Jun-18 0:50 
GeneralRe: Fake SMTP Pin
Jochen Arndt7-Jun-18 1:27
professionalJochen Arndt7-Jun-18 1:27 
Sander Rossel wrote:
You set it up for your test environment and an email is send to the SMTP server, but the SMTP server simply doesn't send it to the recipient
I understand that. But if it is not talking to the recipients SMTP server (and it seems so after having a quick look), you would not even know if the recipient address exists.

So all you are testing is the email sending code on your web page (without authentication). If you only have a single recipient address (like with contact forms on web pages), it is better to send and deliver mails to real addresses.

From my point of view such a fake server would be only useful for testing the code that sends to multiple recipients like newsletters or the notificaton mails here at CP. But the first case (newsletters to a list of registered users) can be also done without a fake server when using a small test list.

A quick introduction what is happening when sending mails:
  • A DNS query is initiated for the domain part of the recipients address asking for the MX (Mail eXchange) record
  • A connection to the returned IP address is establish on port 25 (SMTP)
  • Using the SMTP protocol the mail is passed to the server
To avoid abuse and spamming, SMTP servers use nowadays a lot of checks before accepting a mail. This includes checking of the source IP address to be black listed or to be a dialup (dynamic) IP. So you usually do not use the above direct sending anymore but send the mail to a so called forwarding SMTP server. That is what you setup in your email client software or on a web server. For security and anti spam reasons, these require nowadays secure connections and authentication. The forwarding server will then establish the connection to the recipients SMTP server. If that fails, you will get a notification mail send to the account used for authentication (nowadays) and containing the error response from the recipients server.

A fake SMTP server is nothing else than a forwarding SMTP server that simply does not forward (does not connect to the recipients SMTP server or - if a better one - quits the SMTP dialog before pushing the mail content up).

Not much to do today at work. So I have plenty of time to write such long posts.
GeneralRe: Fake SMTP Pin
F-ES Sitecore7-Jun-18 1:36
professionalF-ES Sitecore7-Jun-18 1:36 
GeneralRe: Fake SMTP Pin
Sander Rossel7-Jun-18 8:34
professionalSander Rossel7-Jun-18 8:34 
GeneralRe: Fake SMTP Pin
stoneyowl27-Jun-18 4:02
stoneyowl27-Jun-18 4:02 
GeneralRe: Fake SMTP Pin
RichardGrimmer7-Jun-18 4:14
RichardGrimmer7-Jun-18 4:14 
GeneralRe: Fake SMTP Pin
Sander Rossel7-Jun-18 8:36
professionalSander Rossel7-Jun-18 8:36 
GeneralRe: Fake SMTP Pin
RichardGrimmer11-Jun-18 3:20
RichardGrimmer11-Jun-18 3:20 
RantWhy is Git so complicated? Pin
AndyStephens6-Jun-18 22:01
AndyStephens6-Jun-18 22:01 
GeneralRe: Why is Git so complicated? Pin
megaadam6-Jun-18 22:23
professionalmegaadam6-Jun-18 22:23 
GeneralRe: Why is Git so complicated? Pin
megaadam6-Jun-18 22:31
professionalmegaadam6-Jun-18 22:31 
GeneralRe: Why is Git so complicated? PinPopular
Rage6-Jun-18 23:29
professionalRage6-Jun-18 23:29 
GeneralRe: Why is Git so complicated? Pin
Johnny J.6-Jun-18 23:35
professionalJohnny J.6-Jun-18 23:35 
GeneralRe: Why is Git so complicated? Pin
den2k887-Jun-18 0:11
professionalden2k887-Jun-18 0:11 
GeneralRe: Why is Git so complicated? Pin
Marc Clifton7-Jun-18 1:42
mvaMarc Clifton7-Jun-18 1:42 
GeneralRe: Why is Git so complicated? Pin
F-ES Sitecore7-Jun-18 1:43
professionalF-ES Sitecore7-Jun-18 1:43 
GeneralRe: Why is Git so complicated? Pin
dandy728-Jun-18 7:34
dandy728-Jun-18 7:34 
GeneralRe: Why is Git so complicated? Pin
Maximilien7-Jun-18 3:23
Maximilien7-Jun-18 3:23 
GeneralRe: Why is Git so complicated? Pin
RichardGrimmer7-Jun-18 4:19
RichardGrimmer7-Jun-18 4:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   454 votes