[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rejecting mail from addresses with spaces.

On Thu, Mar 06, 2003 at 04:09:08PM +0100, Artur Meski wrote:
> How can I reject mail from the sender with a space in 'mail from'?  Is
> it possible?  I can't do that with smtp-policy.spam (because of how
> that file is processed).

If you mean wanting sender to follow STRICT RFC-821 space rules,
all you need to do is to have:

  SMTPOPTIONS="-s strict -s ve -l /var/log/mail/smtpserver"

After that, sites (spam-softwares) feeding:

   MAIL FROM: <foo@bar>

will be rejected.

If you mean spaces inside the address local-parts (where quoted string
type address may well have spaces), then the case is a lot more

> -- 
> // Artur Meski // email: artur@cifrid.net // www: artur.black.pl //
/Matti Aarnio	<mea@nic.funet.fi>
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi