[plug] Sending mail from command line
Daniel Pearson
plug at flashware.net
Tue Jul 15 17:33:32 WST 2003
Yep, works fine if I just specify "ifconfig | mail -s "ip address" email",
on a standard Debian Woody box.
On a LRP (router on a floppy project) machine however, I get the following
output using the same command:
~ => ifconfig | mail -s "ip address" support at flashware.net
Error: Unknown response.
DATA
4: 554 <support at flashware.net>: Recipient address rejected: Relay access
denied
Aborting due to connection error
Killing child processes: 8428 8431
Regards,
Daniel
----- Original Message -----
From: "James Devenish" <devenish at guild.uwa.edu.au>
To: <plug at plug.linux.org.au>
Sent: Tuesday, July 15, 2003 5:25 PM
Subject: Re: [plug] Sending mail from command line
> In message <00a201c34ab1$c7668f40$0400a8c0 at trendwhore>
> on Tue, Jul 15, 2003 at 05:16:23PM +0800, Daniel Pearson wrote:
> > Ah, good point. Yeh, when I invoked it the second time I used
/sbin/ifconfig
> > and still to no avail.
>
> When you run `ifconfig | grep P-t-P` interactively, you presumably get
> what you want? Does `echo "Hello" | mail...` give you a sensible
> response?
>
> > Also, how would the firewall limit the output from ifconfig?
>
> On a hunch, I presume Linux does not apply any default security
> constraints to the output of ifconfig (in some environments you
> need to be the superuser or have rights assigned for full access).
>
>
>
>
More information about the plug
mailing list