Thanks for all the help that you have provided so far to help me
resolve my configuration issues.
As stated previously:
---
Recently i configured my primary sendmail server to use the
mailertable to
send all non local email out through an external spam filter
appliance.
The mailertable looks like this:
host1.internal.example.com smtp:[host1.internal.example.com]
host2.internal.example.com smtp:[host2.internal.example.com]
. smtp[IP_OF_SPAM_FILTER]
---
I've discovered an unwanted side effect of making this change in the
mailertable. Of course it's my fault as sendmail is only doing exactly
what i told it to do :-)
If the primary sendmail host needs to bounce back a DSN to a host in
the internal.example.com subdomain and if that host isn't in the
mailertable, then the primary sendmail host sends the DSN out to the
SPAM filters because of the catchall entry in the mailertable. Not
what i'd want to happen in this instance
What i'd like to see happen is that DSN messages addressed to "root@"
any host in the internal.example.com subdomain get sent to
ro...@loghost.internal.example.com
I guess I could put all server names in class w on the sendmail host,
and put a virtusertable entry in which would mean all emails to
ro...@anyhost.internal.example.com get sent to
ro...@loghost.internal.example.com but that would mean that I'd be
continually updating the
local-host-names and virtusertable files as servers come and go.
Can anyone suggest an alternative configuration that would mean that
these DSN emails, addressed to ro...@server.internal.example.com are
sent to ro...@loghost.internal.example.com, without having to
explicitly specify every server instance in the internal.example.com
subdomain?
Cheers,
ram.
Am i missing something exceedingly obvious? or has the US presidential
election debate got everyone looking elsewhere :-)
Cheers,
ram.
Not directly.
> Am i missing something exceedingly obvious? or has the US
> presidential election debate got everyone looking elsewhere :-)
No, I don't think you are missing any thing obvious. What you are
really asking to do is alter the SMTP envelope recipient, which usually
requires a milter or possibly some extremely custom rule sets.
I'd suggest you look at either MIMEdefang or milter-cli to see if you
can get either one to do what you are needing to do. (I know you can, I
just don't know what it would take to do it.)
Grant. . . .
> Can anyone suggest an alternative configuration that would mean that
> these DSN emails, addressed to ro...@server.internal.example.com are
> sent to ro...@loghost.internal.example.com, without having to
> explicitly specify every server instance in the internal.example.com
> subdomain?
I had the same situation, but I have fixed it on the other endpoint:
all these servers sent mails using "root_$(hostname)@example.com"
ska