On 4/20/2011 5:04 PM, Jay G. Scott wrote:
On Wed, Apr 20, 2011 at 02:58:29PM -0500, Noel Jones wrote:
You can use a regexp or pcre map for wildcard subdomains.
/^user@.*\.arlut\.utexas\.edu$/ OK
i tried this. assuming i did it right, it didn't work.
i put this in my "known users" file, did the postmap
on it. restarted postfix. the same thing happens.
"didn't work" doesn't give us much to go on for debugging.
Use this as a relay_recipients_maps like so:
# main.cf
relay_recipients_maps = regexp:/path/to/file
where file contains the expression from above. No need to
postmap regexp tables.
this server (internal) hands the msg off to the external
postfix server, which, i presume, then checks w/ ns6
to see if the user is legit. (the external server has
no list of "known users".) it bounces, and the user
isn't in the recip table.
If the internal servers reject unknown recipients during SMTP, you can
let postfix automatically build the user list by using active recipient
verification.
Examples are with the docs.
http://www.postfix.org/ADDRESS_VERIFICATION_README.html#recipient
i read this. just checked it again. i don't see what i'm doing wrong.
there's probably something i should be telling you that i don't know
that i need to tell you. sorry.
Important note: when using recipient verification, turn off
the relay_recipient_maps feature (set it empty).
Recipient verification is only a valid option if your server
talks directly to the destination without any intermediate relays.
-- Noel Jones
j.
It's also possible to limit the scope of the verification probes to
specific recipient domains by using a check_recipient_access map, similar
to this example (but using the recipient, not the sender)
http://www.postfix.org/ADDRESS_VERIFICATION_README.html#forged_sender
-- Noel Jones