On 11/12/2010 06:58 PM, /dev/rob0 wrote:
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:<u...@example.com>
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
Um, I think reject_non_fqdn_sender suffices...
--
J.