[lug] postfix usernames
Sean Reifschneider
jafo at tummy.com
Mon Apr 10 02:28:10 MDT 2006
On Thu, Apr 06, 2006 at 09:02:19PM -0600, Ben wrote:
>I've got what must be a common setup, and a common problem. I have
>postfix configured more or less out of the box on debian. Postfix gets
To block in the SMTP phase, you can add:
check_recipient_access hash:/etc/postfix/access-rcptto
to the end of "smtpd_recipient_restrictions" in "main.cf". Then you can
create an access-rcptto file in which you can list specific recipient
addresses with "REJECT" to blacklist that recipient. I do that for most
stages in the SMTP phase so I can blacklist remote HELO hostnames, sender
or recipient addresses, remote host IPs, etc.
You could also create an external policy filter that is a program which
looks on your system, based on the rcpt address, and gives a success or
failure based on something on the system that indicates if the user had
e-mail access or not. See the postfix documentation for more details on
it.
Thanks,
Sean
--
-rw-rw-rw-: File permissions of the beast. (Chuck Phillips)
mknod /dev/beast c 6 66
Sean Reifschneider, Member of Technical Staff <jafo at tummy.com>
tummy.com, ltd. - Linux Consulting since 1995: Ask me about High Availability
More information about the LUG
mailing list