Sendmail configuration (conditional smarthost?)
Hi all,
I have a pretty simple question which I haven't been able to find an answer to, or even determine if it's possible.
With sendmail, can I add a rule or change the config in such a way that: If an email gets sent through my server from address 1.2.3.4, then it gets forwarded to 5.6.7.8?
Essentially, 5.6.7.8 is an email/virus scanning service for my company, and I would like to forward only emails that come from a certain internal server (which is 1.2.3.4), to the scanning service. I know I could forward all emails using the Smart host config line, but I don't want to do that.
Is there any possible way to do this with once instance of Sendmail? I suppose I could set up another instance on another port, and just have my one internal server connect to that, but I want to exhaust all my options with one instance first.
From the documentation, it looks like the ${client_addr} variable is what I could use to determine the connecting server, but I don't know how to tell sendmail to forward the message to 5.6.7.8 when it detects a client_addr of 1.2.3.4.
Any ideas?
|