IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Any way to capture mail from a particular server?
We've got devel, stage, cert and live webservers. We want to be able to promote code through all four levels without having to modify it, meaning we need per-machine config scripts. One thing I don't know how to do is redirect the email.

The goal is that any email sent from the devel, stage and cert boxes doesn't actually get sent outside our network. Where is the best/easiest place to do this? As a not-a-network-guy, it seems to me it should be easy to just capture all the email traffic leaving those boxes and send it somewhere else. Our actual network guys say it's not that easy. And the guy who admins the webservers says it's not that easy to configure sendmail and/or qmail to do that either.

So how can I do this?
===

Implicitly condoning stupidity since 2001.
New Doesn't a .forward file do what you want?
I don't know the details, but on a VAX one simply set up a .forward file in ones "home" (-ish) e-mail directory, and e-mail sent to that machine would be resent to the address given in the file. I would think that similar functionality should be available on whatever system you're using (without having to do much messing with sendmail.cf or the like).

Don't ask me how though.

HTH.

Cheers,
Scott.
New Not mail *to* the box, mail *from* the box
Although if a .forward file supports wildcards, just forward * to foo. Hmm ... have to look at that.
===

Implicitly condoning stupidity since 2001.
New .forward uses pipe to redirect as well
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey
No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
Here is an example: [link|http://www.greymagic.com/security/advisories/gm001-ie/|Executing arbitrary commands without Active Scripting or ActiveX when using Windows]
New Make that the responsibility of the programmer
Route all email sending through some central piece of code that can decide whether or not to edit the email address when you send it so that it doesn't actually go out.

Yeah, it is a PITA. It also seems to really be the best way to go.

Cheers,
Ben
To deny the indirect purchaser, who in this case is the ultimate purchaser, the right to seek relief from unlawful conduct, would essentially remove the word consumer from the Consumer Protection Act
- [link|http://www.techworld.com/opsys/news/index.cfm?NewsID=1246&Page=1&pagePos=20|Nebraska Supreme Court]
New 1, I disagree; 2, we've got a way
We don't want the code to have to care what environment it's in. An application that is designed to send notifications to customers should simply send it. If it's coming from the devel box, we catch it before it leaves the box, but I don't want the code having to look it up. And I definitely don't want to leave it up to each programmer to make sure he doesn't accidentally spam our customers.

Besides which, we've got thousands of files that have potentially hundreds of instances of mailing directly from the webserver. We need a solution that we can implement while we work on fixing all the code. (Yes, we're already working on making everything use one method that we can control.)

Second, we're using qmail. Google found me a HOWTO for a simple configuration to say that specific users can only send to specific domains. All we have to do is configure the user the webserver runs as to only send to our own domain.
===

Implicitly condoning stupidity since 2001.
New Can't you just...
block port 25 (SMTP) from that computer at the firewall? I haven't messed with a Sendmail server before, so maybe I'm over simplifying (and am sure I'll catch flak from the members of the forum if I am), but that seems to be the easiest thing to do.
~~~)-Steven----

"I want you to remember that no bastard ever won a war by dying for his country.
He won it by making the other poor dumb bastard die for his country..."

General George S. Patton
Expand Edited by Steven A S Aug. 19, 2004, 02:37:32 PM EDT
New s/SNMP/SMTP/ :-)


Peter
[link|http://www.debian.org|Shill For Hire]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Blog]
New That's what I thought
The people who have to make it happen, though, disagree.
===

Implicitly condoning stupidity since 2001.
     Any way to capture mail from a particular server? - (drewk) - (8)
         Doesn't a .forward file do what you want? - (Another Scott) - (1)
             Not mail *to* the box, mail *from* the box - (drewk)
         .forward uses pipe to redirect as well -NT - (folkert)
         Make that the responsibility of the programmer - (ben_tilly) - (4)
             1, I disagree; 2, we've got a way - (drewk) - (3)
                 Can't you just... - (Steven A S) - (2)
                     s/SNMP/SMTP/ :-) -NT - (pwhysall)
                     That's what I thought - (drewk)

Messing with brain chemistry is not something to be lightly considered.
60 ms