sulfericacid has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Eliminating useless server information
by fsn (Friar) on Oct 14, 2002 at 16:00 UTC
    Fellow monk, I'm afraid you simply are not clear enough. Where does the IP address show? In the email, at the client side? In a Recieved-line? In the browser when the mail is sent?

    If the IPaddress is shown in the email at the From: or To: line, it's added by your local mailserver, because one of the email adresses were not complete, ie. <user> instead of <user@domain.cc>, the @ is vital here. Your local mailserver then adds it's official name. However, it may be not know it's officiall name, and then adds it's IPaddress as domain. You can send emails directly to IPaddresses, so they are valid on the right side of an @.

    If your IPaddress show up on a Recieved: -line, I'm sorry, but that's how it's supposed to be. It's added by the next mailserver, indicating where it got the mail from, you can't change it.

    If the browser shows the IP address when you have sent the mail, it's because you print it somewhere in your script.

    Try specifying more accurately where it's showing the IPaddress in question and we'll see if we can help you.

Re: Eliminating useless server information
by sulfericacid (Deacon) on Oct 14, 2002 at 04:52 UTC

    Ok I don't think I did a good job explaining what it is I am looking for, so here it goes.

    I have a contact form on my server and when it's received your email client will show you the IP address of the server. I want to be able to send emails from my form without it presenting my IP address, or have it setup where I can predefine an IP ie. $ip = '66.54.159.11'; .

    Thanks

    sulfericacid

      Is the perl sending the email?? Or are you using the POST enctype mailto method from an html document? Big difference on options here. If it's a perl script which answers the form submit button and sends an email; just edit your mail message to include a from line from:noreply@mail.com in the message head. If you want to remove the server name in the message head itself (Viewable in a mail client by clicking view source you'll have to change that in your server dns settings).
      A reply falls below the community's threshold of quality. You may see it by logging in.
      The IP address is most likely included to prevent abuse, by logging a fairly reliable indication of the source of the connection (or at least a cooperating middle agent). The most common reason to want something else there is if someone is going to engage in a fraudulant action (like sending spam using a third-party relay).

      Are you saying you want to be abused, or that you want to abuse someone else? It's still not clear from the message. If you merely don't want to show it, then simply remove it from the CGI script. If you want to alter it, then come at the machine from a different address. There's really no ordinary way to just "set" it.

      -- Randal L. Schwartz, Perl hacker

      A reply falls below the community's threshold of quality. You may see it by logging in.