> On Jun 20, 2008, at 6:44 AM, Duane Hill wrote:
>> On Fri, 20 Jun 2008, Monah Baki wrote:
>>> Hi all,
>>> Where in postfix.conf can I say any, email coming from the outside
>>> with my domain in the "From" field, Reject.
Why would you want to do this?
Header checks like this one would reject a lot of legitimate mail
including things sent through the sendmail command if no sender is used
among other things like Wietse pointed out.
> mydestination = $mydomain, $myhostname
> mydomain = vixaroy.com
> virtual_alias_domains = vixaroy.com
As http://www.postfix.org/VIRTUAL_README.html says: "NEVER list a
virtual alias domain name as a mydestination domain!"
Please choose one or the other.
Assuming you control the following domains, /etc/postfix/sender would
look like this:
example.com REJECT Sender domain is for authorized users only.
example.org REJECT Sender domain is for authorized users only.
example.net REJECT Sender domain is for authorized users only.
Remember to postmap the file and reload postfix.
If you look at the order of restrictions, you can see that only
authenticated users or machines in $mynetworks can bypass this
restriction. It's safe for mailing lists (it's enabled on the account
I'm using now). However, it may not be safe for all networks, depending
on the complexity of the domain's mail infrastructure. Only you can
tell. As for its effectiveness, these messages seem to come in waves, so
it's nice to have it around to kick in when you need it, if it's
appropriate for your site and its users.