I had a wierd request from one of our guys. We are running on RedHat EL5. He asked that all mail originating from 3 servers he owns be sent to files instead of being sent out. My first thought is to set "Smart" relay host in sendmail.cf on each of the 3 servers so all messages are sent to a 4th server. On the 4th server setup a smtp server to archive all the messages.
I probably won't go this route because ALL messages, including emails SA's may have coming out of cron jobs or scripts, will not get delivered properly. But, I'm working on a way to just send the messages coming out of his app to the "blackhole" smtp server. If I can do that:
1) Do you know of a way to setup a smtp server so that it stores all incoming messages in files (queue?) but doesn't ever relay them?
2) Any better solutions? I could just send them to files local to each of the 3 servers and then consolidate them some other way but I don't know how to send them all to a file locally either.
Thanks,
MG
I probably won't go this route because ALL messages, including emails SA's may have coming out of cron jobs or scripts, will not get delivered properly. But, I'm working on a way to just send the messages coming out of his app to the "blackhole" smtp server. If I can do that:
1) Do you know of a way to setup a smtp server so that it stores all incoming messages in files (queue?) but doesn't ever relay them?
2) Any better solutions? I could just send them to files local to each of the 3 servers and then consolidate them some other way but I don't know how to send them all to a file locally either.
Thanks,
MG