On Fri, Nov 12, 2010 at 10:15:03AM -0600, Noel Jones wrote:
> On 11/12/2010 6:47 AM, Mingliang Zu wrote:
>> smtpd_sender_restrictions = reject_non_fqdn_sender
>
> Good, that setting does what you have asked. Testing that here gives:
> ...
> MAIL FROM:<sender>
> 250 2.1.0 Ok
> RCPT TO:<[email protected]>
> 504 5.5.2 <sender>: Sender address rejected: need fully-qualified address
Strictly speaking, what the OP asked for is to reject all senders
without "@", just <sender>, where <sen...@nonfqdn> would be fine.
AFAIK the only way to do that would be with a regexp/pcre type
lookup:
/\@/ DUNNO
/./ REJECT
The problem with doing that is <>, the null sender, does not contain
the "@" sign. Not a good idea, don't do this. Perhaps we should find
out more about the real-world problem and goal? Where are you seeing
this mail?
Another thing the OP has missed is what Noel has demonstrated above,
that the default smtpd_delay_reject means smtpd_sender_restrictions
won't be evaluated until the RCPT TO: command.
--
Offlist mail to this address is discarded unless
"/dev/rob0" or "not-spam" is in Subject: header