"inaye_olivetto" wrote:

I'm using Dachstein Firewall, and I need a mail service on it!

Cause I'll make a remote support on the webserver under Dachstein
firewall. The Firewall has a dynamic IP, and I need to receive

it by

e-mail.

<snip>


Thank you very much for the help.

But, I don't have the file /etc/POSIXness.conf on my Firewall. Why?

When I ran the command line ip addr show dev eth0 | mail -s "New IP" [EMAIL PROTECTED] , it returned the following error:

nc: mail: Unknown host
Error: Unknown response
RSET
0:
Aborting due to connection error
Killing child processes: 1061 1064
Inaye, were you able to resolve your problem? Is the web server firewall using either a Dachstein Floppy or a Dachstein CD release? Moreover, what version of Dachstein are you running?

This error is from one of two sources. Either you still do not have your mail configured properly on the firewall, or you are trying to execute the mail command at system start up or in cron.

Specifically, in your case I believe you need to echo your ip address into a file and then send the ip via the file with a command similar to
. /etc/network.conf
echo $EXTERN_IP >> myfilename_with_ip_in_it
mail -s "New IP" [EMAIL PROTECTED] < myfilename_with_ip_in_it

KP Kirchdoerfer has a simple solution for this error if the error occurs during system start up. I have taken KP's and other people's work and refined it. I created additional configuration entries in lrp.conf. These entries allow multiple email accounts to receive both the log files and ip address by email. The email of either system logs or ip configuration work independently in that you can send logs or ip or both. The only thing that is missing is something like John Klar's excellent idea of PGPing the email so that you know that the ip address is authentic, etc.

Please let me know if you are still interested in the scripts. I think I finally have the time to package the files. You look like a prime candidate to try the scripts out.

Greg Morgan




-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com

_______________________________________________
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to