Re: From in Body mail

2016-10-21 Thread Noel Jones
On 10/21/2016 10:41 AM, Paweł Grzesik wrote: >> DATA >> 354 End data with . >> From: j...@mailtest.example.com > > >> To: pa...@mailtest.example.com >

Re: From in Body mail

2016-10-21 Thread Ralph Seichter
On 21.10.16 17:41, Paweł Grzesik wrote: > 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:". No. Postfix - the MTA - uses the envelope sender address (which you can verify on the

Re: From in Body mail

2016-10-21 Thread Paweł Grzesik
> DATA > 354 End data with . > From: j...@mailtest.example.com > To: 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

Re: From in Body mail

2016-10-21 Thread Noel Jones
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 ESMTP Postfix > HELO mailtest > 250

Re: From in Body mail

2016-10-21 Thread /dev/rob0
On Thu, Oct 20, 2016 at 02:46:15PM +0100, Paweł Grzesik wrote: > I noticed that it's really easy to send an e-mail as a real user > by simply typing in the mail body: > > From: > > Is there any way to prevent from this? I checked that even when > w

Re: From in Body mail

2016-10-21 Thread Ralph Seichter
On 21.10.2016 08:50, Paweł Grzesik wrote: > [user@mailtest ~]# telnet localhost 25 > [...] > mynetworks_style = host You're conducting your test from the machine Postfix is running on, which is a member of 'mynetworks'... > smtpd_recipient_restrictions =

Re: From in Body mail

2016-10-21 Thread Paweł Grzesik
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 ESMTP Postfix HELO mailtest 250 mailtest.example.com MAIL FROM: 250 2.1.0 Ok RCPT TO: pa...@example.com 250

Re: From in Body mail

2016-10-20 Thread Noel Jones
On 10/20/2016 3:08 PM, Paweł Grzesik wrote: > Just telnet on any host on 25 port and type From: some_real_email > and email will be send. I think thats how scam works. That doesn't work with postfix. Either your description or your test method is wrong. $ telnet localhost 25 Trying

Re: From in Body mail

2016-10-20 Thread Paweł Grzesik
noticed that it's really easy to send an e-mail as a real user by > > simply > > typing in the mail body: > > > > From: > > > > Is there any way to prevent from this? I checked that even when we > > specify > > MAIL FROM: > > > &g

Re: From in Body mail

2016-10-20 Thread Noel Jones
On 10/20/2016 8:46 AM, Paweł Grzesik wrote: > Hi All, > > I noticed that it's really easy to send an e-mail as a real user by > simply > typing in the mail body: > > From: > > Is there any way to prevent from this? I checked that even when we > specify > MAIL

From in Body mail

2016-10-20 Thread Paweł Grzesik
Hi All, I noticed that it's really easy to send an e-mail as a real user by simply typing in the mail body: From: Is there any way to prevent from this? I checked that even when we specify MAIL FROM: and then in the body: From: postfix will send an e-mail with From: , the one from the body