Sure you can, I think you are over complicating it as well, it would
cost less to read in an external config file once that contains these
'variables.' It can even be something as simple as a cfg file in
/etc/mail/ with one IP per line or some such... we tie to a hashed db
config file (ours does more than set IPs) for this type of thing all the
time and it does simplify bringing up a new server quite a bit.
Something else unrelated to note... if your server talks to MUAs then
you will want to exempt any user from your helo stuff that authenticates
(we also exempt based on the senders IP if we are certain of the IP and
it is ours).
Jim
Philip Prindeville wrote:
We're talking crossed purposes. I'm saying that embedding the address
explicitly
into the config means that you can't have an identical config running
on a pool
of mail servers.
You're saying that the overhead of determining the address once at
startup is
acceptable.
Both are true, but unrelated.
-Philip
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang