> DATA > 354 End data with <CR><LF>.<CR><LF> > From: j...@mailtest.example.com <mailto:j...@mailtest.example.com> > To: pa...@mailtest.example.com <mailto:pa...@mailtest.example.com> > Subject: Testing SCAM > Text: ABC123 > . > 250 2.0.0 Ok: queued as 481D6C76B6
But I'm talking about this part. So here we have DATA where I can type From:, To: and Subject: then message and e-mail will go from the "From:" instead of the one from the header "MAIL FROM:". The problem is that most of the e-mail clients will show that From in the From. I'm not sure if there is a way to block it? Or I'm missing something? Thanks 2016-10-21 16:34 GMT+01:00 Noel Jones <njo...@megan.vbhcs.org>: > On 10/21/2016 1:50 AM, Paweł Grzesik wrote: > > Hi Noel, > > > > This is how I'm doing it: > > > > [user@mailtest ~]# telnet localhost 25 > > Trying 127.0.0.1... > > Connected to localhost. > > Escape character is '^]'. > > 220 mailtest.example.com <http://mailtest.example.com> ESMTP Postfix > > HELO mailtest > > 250 mailtest.example.com <http://mailtest.example.com> > > MAIL FROM: <r...@google.com <mailto:r...@google.com>> > > 250 2.1.0 Ok > > RCPT TO: pa...@example.com <mailto:pa...@example.com> > > 250 2.1.5 Ok > > DATA > > 354 End data with <CR><LF>.<CR><LF> > > From: j...@mailtest.example.com <mailto:j...@mailtest.example.com> > > To: pa...@mailtest.example.com <mailto:pa...@mailtest.example.com> > > Subject: Testing SCAM > > Text: ABC123 > > . > > 250 2.0.0 Ok: queued as 481D6C76B6 > > > That's a header, not the body, and is not used for anything other > than display in your mail client. Looks as if you've discovered > that the From: header doesn't have any relation to the envelope > sender. This is a basic feature and requirement of mail. > > > -- Noel Jones >