> Andrzej, where I can read more about m4? I can understand
> it, but I needing a lessons :) I would recommend The Bat Book 3rd edition (1st and 2nd editions are "outdated"):
http://www.oreilly.com/catalog/sendmail3/
*BUT*
* It is a big book (1_000+ pages). I achieved "enlightenment" during *third pass* (of 1st edition) - it takes "some time" to "swallow the book".
* Next major version of sendmail (not sendmail 8.*.*) are going to be "quite unlike" (pretty different) than sendmail-8.
Think "a little" before investing your time in big amounts.
> And by the way, it is possible to use your script to
> select a smtp relay depends on an ip-address of local networks
> sender mashine?
It would require quite simple modification
* using $&{client_addr} instead of $&f
* other sequence different lookups - four lookups i classic sendmail way of handling "octet boundary" nets (*/32 a.b.c.d, */24 a.b.c, */16 a.b, */8 a).
No "rocket science" would be required ;-)
BTW I consider switching my "most preferred MTA" to a MTA under GPL license.