discart mail.

in my /etc/mail/access I have list of servers / domain that are
discarted.
The question I have is :
Is the e-mail still downloaded ( transferd ) first and then discarted,
or is the mail discarted on the remote server?
Has the discarted e-mail taken the bandwith or not
Many thanks for your answers.
zoot [ Do, 16 August 2007 12:57 ] [ ID #1797350 ]

Re: discart mail.

On Thu, 16 Aug 2007, SarDameAveline wrote:

>
> in my /etc/mail/access I have list of servers / domain that are
> discarted.
> The question I have is :
> Is the e-mail still downloaded ( transferd ) first and then discarted,
> or is the mail discarted on the remote server?
> Has the discarted e-mail taken the bandwith or not
> Many thanks for your answers.


The email would normally not have been accepted, it would be after the
helo/ehlo, if you use delay_checks its -
helo (ehlo)
mail from:
rcpt to:
now ill reject you before the "data" so it might cost you a few hundred
bytes in connection info, thats all, so basically its not used any
bandwith.



--

Cheers
Res
Res [ Do, 16 August 2007 13:28 ] [ ID #1797351 ]

Re: discart mail.

On 16 ao=FBt, 13:28, Res <r... [at] ausics.net> wrote:
> On Thu, 16 Aug 2007, SarDameAveline wrote:
>
> > in my /etc/mail/access I have list of servers / domain that are
> > discarted.
> > The question I have is :
> > Is the e-mail still downloaded ( transferd ) first and then discarted,
> > or is the mail discarted on the remote server?
> > Has the discarted e-mail taken the bandwith or not
> > Many thanks for your answers.
>
> The email would normally not have been accepted, it would be after the
> helo/ehlo, if you use delay_checks its -
> helo (ehlo)
> mail from:
> rcpt to:
> now ill reject you before the "data" so it might cost you a few hundred
> bytes in connection info, thats all, so basically its not used any
> bandwith.
>
> --
>
> Cheers
> Res

I might have been rejected ( discarted ) but while connected to my
server using telnet server 25.
and
mail from: me [at] yahoo.fr
-----------------> at this moment ( using tail -f /var/adm/syslog ) It
logs
Aug 16 15:41:34 dacp sendmail[13562]: [ID 801593 mail.notice]
l7GDdICi013562: ruleset=3Dcheck_mail, arg1=3Dici [at] yahoo.fr, relay=3Ddacp
[198.132.48.8], discard
BUT I can continue with
rcpt to:andre
250 2.1.5 andre ... Recipient ok
data
354 Enter mail, end with "." on a line by itself
jhdsfkljsdf
dhfgh
fgjhfhdj
ghdjdghjghdj
hgdjgdhjghd
..
250 2.0.0 l7GDdICh013562 Message accepted for delivery

so ? when is the communication "discarted "

SarDameAveline
zoot [ Do, 16 August 2007 15:46 ] [ ID #1797352 ]

Re: discart mail.

On 08/16/07 08:46, SarDameAveline wrote:
> I might have been rejected ( discarted ) but while connected to my
> server using telnet server 25.
> and
> mail from: me [at] yahoo.fr
> -----------------> at this moment ( using tail -f /var/adm/syslog ) It
> logs
> Aug 16 15:41:34 dacp sendmail[13562]: [ID 801593 mail.notice]
> l7GDdICi013562: ruleset=check_mail, arg1=ici [at] yahoo.fr, relay=dacp
> [198.132.48.8], discard
> BUT I can continue with
> rcpt to:andre
> 250 2.1.5 andre ... Recipient ok
> data
> 354 Enter mail, end with "." on a line by itself
> jhdsfkljsdf
> dhfgh
> fgjhfhdj
> ghdjdghjghdj
> hgdjgdhjghd
> .
> 250 2.0.0 l7GDdICh013562 Message accepted for delivery
>
> so ? when is the communication "discarted "

This particular message has been accepted by your server and not discarded.

220 your server ESMTP
EHLO your client
250-bla
250-...
250 ...
mail from:me [at] yahoo.fr
250 2.1.0 <me [at] yahoo.fr>... Sender ok
rcpt to:<andre [at] domain.tld>
550 5.7.1 denied

In this (mach) scenario the server rejects the message in response to
the "RCPT TO:" SMTP command never allowing the SMTP transaction to
progress to the DATA phase which is where most of the bandwidth is used
/ wasted.



Grant. . . .
gtaylor [ Do, 16 August 2007 16:46 ] [ ID #1797354 ]

Re: discart mail.

In article <1187261841.125936.104150 [at] w3g2000hsg.googlegroups.com>
SarDameAveline <ahr [at] swing.be> writes:
>in my /etc/mail/access I have list of servers / domain that are
>discarted.
>The question I have is :
>Is the e-mail still downloaded ( transferd ) first and then discarted,
>or is the mail discarted on the remote server?
>Has the discarted e-mail taken the bandwith or not

Ignore the other responses. There is no provision for discarding
messages in the SMTP protocol, it's something that just shouldn't be
done, see the RFCs. Thus the only way to do it anyway is to pretend to
accept the message and then throw it away. I.e. the message will always
be transfered when you use DISCARD in the access DB.

--Per Hedeland
per [at] hedeland.org
per [ Do, 16 August 2007 20:47 ] [ ID #1797355 ]

Re: discart mail.

On 08/16/07 13:47, Per Hedeland wrote:
> Ignore the other responses. There is no provision for discarding
> messages in the SMTP protocol, it's something that just shouldn't be
> done, see the RFCs. Thus the only way to do it anyway is to pretend
> to accept the message and then throw it away. I.e. the message will
> always be transfered when you use DISCARD in the access DB.

Ok, I'll bite.

Are you wanting to get in to a symantec discussion / disagreement over
the words "discard" and "reject" or are you thinking something else? Or
have you not had enough of your morning beverage of choice yet?

It is completely possible for a server to return a "Permanent Failure
Code (5xx series)" to any command during the SMTP Transaction to
"reject" the message entirely. This rejection usually induces the
sending host to consider the message transfer a permanent failure and
not try to deliver it again but to usually deliver a notification of
such failure to the original envelope sender of the message.

Or have I just completely missed something here? If so please enlighten
me. Thank you.



Grant. . . . .
gtaylor [ Do, 16 August 2007 23:15 ] [ ID #1797358 ]

Re: discart mail.

Grant Taylor <gtaylor [at] riverviewtech.net> wrote:

> On 08/16/07 13:47, Per Hedeland wrote:
> > Ignore the other responses. There is no provision for discarding
> > messages in the SMTP protocol, it's something that just shouldn't be
> > done, see the RFCs. Thus the only way to do it anyway is to pretend
> > to accept the message and then throw it away. I.e. the message will
> > always be transfered when you use DISCARD in the access DB.
>
> Ok, I'll bite.
>
> Are you wanting to get in to a symantec discussion / disagreement over
> the words "discard" and "reject" or are you thinking something else? Or
> have you not had enough of your morning beverage of choice yet?
>
> It is completely possible for a server to return a "Permanent Failure
> Code (5xx series)" to any command during the SMTP Transaction to
> "reject" the message entirely. This rejection usually induces the
> sending host to consider the message transfer a permanent failure and
> not try to deliver it again but to usually deliver a notification of
> such failure to the original envelope sender of the message.
>
> Or have I just completely missed something here? If so please enlighten
> me. Thank you.
>

The OP especialy used the word "discarted" and not rejected. As he is
using the "DISCARD" keyword in access db and not one of the forms of
REJECT.

The exemple of syslog he gave is exactly what I get when I test how a
"From:x [at] x DISCARD" entry works.

Per Hedeland answer is correct.

The OP most probably would be better with REJECTs though. Especialy if
he is worrying about saving bandwidth.
hugo [ Fr, 17 August 2007 08:10 ] [ ID #1798344 ]

Re: discart mail.

In article
<mailman.39.1187298746.11203.comp.mail.sendmail [at] maillists.riverviewtech.net>
Grant Taylor <gtaylor [at] riverviewtech.net> writes:
>On 08/16/07 13:47, Per Hedeland wrote:
>> Ignore the other responses. There is no provision for discarding
>> messages in the SMTP protocol, it's something that just shouldn't be
>> done, see the RFCs. Thus the only way to do it anyway is to pretend
>> to accept the message and then throw it away. I.e. the message will
>> always be transfered when you use DISCARD in the access DB.

>Or have I just completely missed something here? If so please enlighten
>me. Thank you.

Apparently that the question was about the effects of using DISCARD in
sedmail's access db.

--Per Hedeland
per [at] hedeland.org
per [ Fr, 17 August 2007 08:53 ] [ ID #1798345 ]

Re: discart mail.

On 17 ao=FBt, 08:53, p... [at] hedeland.org (Per Hedeland) wrote:
> In article
> <mailman.39.1187298746.11203.comp.mail.sendm... [at] maillists.riverviewtech.n=
et>
>
> Grant Taylor <gtay... [at] riverviewtech.net> writes:
> >On 08/16/07 13:47, Per Hedeland wrote:
> >> Ignore the other responses. There is no provision for discarding
> >> messages in the SMTP protocol, it's something that just shouldn't be
> >> done, see the RFCs. Thus the only way to do it anyway is to pretend
> >> to accept the message and then throw it away. I.e. the message will
> >> always be transfered when you use DISCARD in the access DB.
> >Or have I just completely missed something here? If so please enlighten
> >me. Thank you.
>
> Apparently that the question was about the effects of using DISCARD in
> sedmail's access db.
>
> --Per Hedeland
> p... [at] hedeland.org

Many thanks to everybody for your answer.
SarDamAveline
zoot [ Fr, 17 August 2007 11:10 ] [ ID #1798346 ]

Re: discart mail.

On 08/17/07 01:53, Per Hedeland wrote:
> Apparently that the question was about the effects of using DISCARD
> in sedmail's access db.

Ok, looking back, I'll give you that one. I guess I skimmed over that
part and just interpreted (eyes read one thing and my brain heard
another) and thought that the OP was wanting to not use the extra
bandwidth and thus would naturally want to reject messages. My mistake,
sorry for the confusion.



Grant. . . .
gtaylor [ Fr, 17 August 2007 17:15 ] [ ID #1798351 ]
Miscellaneous » comp.mail.sendmail » discart mail.

Vorheriges Thema: Secure Setup with Sendmail
Nächstes Thema: Error sending email using sendmail