On 2/16/2011 3:03 PM, Scott Fitzhugh wrote:
Noel Jones<njo...@megan.vbhcs.org> 2/16/2011 12:30 PM>>>
On 2/16/2011 11:32 AM, Scott Fitzhugh wrote:
Thanks a lot Noel - I seem to be on the right track with this, but
am
having a problem.
I have set up my system as you described, but with one change. I
set
up the virtual_alias file with the line: "@pisd.edu
@oldpisd.edu,@newpisd.edu" rather than every email address - I have
a
dynamic userlist of over 6000 users!
When I send an email to a "@pisd.edu" address, it changes the
@oldpisd.edu address correctly, but the @newpisd.edu address is
missing
the username. For example, if a mail is sent to b...@pisd.edu, one
email
is generated& sent to b...@oldpisd.edu, but the 2nd email is
generated
to go to "@newpisd.edu" (no username), which then bounces because no
such user exists.
What can I do to correct this?
[the convention on this list is to bottom-post]
You shouldn't use wildcard rewrites since they disable
recipient validation. No recipient validation will make your
server a backscatter source and get you blacklisted.
If your users are stored in a *SQL or LDAP table, construct a
query that returns the desired result when the input is a
valid user.
If you have or can obtain a list of valid users, use your
favorite scripting language to generate the required postfix
entries. Then automate the procedure so the tables are
updated automatically every so often.
-- Noel Jones
---------------------------------------------------------------------
Since my postfix server will not have direct access to the internet to
send or receive email, it would never be able to be used by anyone else.
All received email flows through our Proofpoint servers, which do
recipient checks already. All email that these server would hand off to
the postfix server will be as 'good' an email as you can get. I just
need it to then be directed to 2 different places. How can I turn off
the recipient validation, since this has already been done?
Thanks,
Scott
If recipient validation has already been done, you can use:
# main.cf
virtual_alias_maps = regexp:/etc/postfix/virtual.regexp
# virtual.regexp
/^(.*)@example\.com$/ $1...@one.example.com $1...@two.example.com
The rest of the setup remains as I outlined earlier.
-- Noel Jones