← Back to team overview

sslug-teknik team mailing list archive

Re: Jeg ryger i mit eget spam filter (Debian 5/ Spamassassin)...

 

"Jesper K. Pedersen" <linux@xxxxxxxxx> writes:

> Selv laver jeg spam scan efter modtagelse af email - da såvidt jeg
> husker smtp standarden ikke tillader at modtage en email for derefter
> at afvise den. Den tillader kun at modtage "goddag" signalerne med
> efterfølgende afvisning.

Min læsning af RFC 5321 tillader at man afviser en mail efter at have
modtaget den. Se afsnit 3.3:

   If the verb is initially accepted and the 354 reply issued, the DATA
   command should fail only if the mail transaction was incomplete (for
   example, no recipients), if resources were unavailable (including, of
   course, the server unexpectedly becoming unavailable), or if the
   server determines that the message should be rejected for policy or
   other reasons.

Det vil sige, efter DATA kommandoen er accepteret har modtagerserveren
stadigvæk mulighed for at afvise mailen af policy-grunde. Tilsvarende
formulering findes i RFC 2821, men 821 siger:

   The end of mail data indicator also confirms the mail
   transaction and tells the receiver-SMTP to now process the
   stored recipients and mail data.  If accepted, the
   receiver-SMTP returns a 250 OK reply.  The DATA command should
   fail only if the mail transaction was incomplete (for example,
   no recipients), or if resources are not available.

Men 2821 er selvfølgelig noget nymoderne noget at holde sig til..

//Makholm


References