Hello , I need postfix to reject email ids which do not have a domain name ... for example if the email address is just abc....and there is no @domainname after that . I have found articles where you can reject certain domain names but none to reject emails without a domain . Any help for the same is greatly appreciated .
Firstly, this is the help forum for Postfix Admin - a package for managing virtual domains and mailboxes. For Postfix specific help you'd be better over at postfix.org.
But you need to clarify what you mean by the rather vague term "email id". If you mean sender email address then say so ! If you do, then I suggest you look at http://www.postfix.org/postconf.5.html#smtpd_sender_restrictions and I think you'll find reject_non_fqdn_sender and reject_unknown_sender_domain quite effective. The first rejects any sender that isn't "firstname.lastname@example.org", the second will reject messages where domain.tld doesn't exist.
There are similar restrictions for smtpd_recipient_restrictions.
Here's the relevant sections from main.cf for my server (x.x.x.x hosts a PolicyD server (aka ClueBringer) which does quotas and greylisting). Between the greylisting, and the restrictions specified below, the bulk of the spam is stopped before it gets to see Amavis. By the time you've looked up what the various bits do, I think you'll have a good handle on things.
# Requirements for the HELO statement
# Requirements for the sender details
## Requirements for the connecting server
# Requirement for the recipient address
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.