Find the answer to your Linux question:
Results 1 to 3 of 3
I'm not sure how to setup my hostname and domain name in /etc/hosts /etc/sysconfig/network and to masquerade my hostname properly to send e-mails in sendmail. I don't have a fqdn ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Posts
    2

    Hostname and Domain name help


    I'm not sure how to setup my hostname and domain name in /etc/hosts /etc/sysconfig/network and to masquerade my hostname properly to send e-mails in sendmail. I don't have a fqdn im just using my hostname which is what's throwing me. I don't want my emails out of sendmail to come from root@localhost.localdomain. right now my /etc/hosts file looks like:

    127.0.0.1 localhost.localdomain localhost
    ##.###.###.### gmail.com gmail

    and the /etc/sysconfig/netowrk file looks like:

    NETWORKING = yes
    HOSTNAME = gmail.com

    the reason for this was that i was trying to get my e-mails out of sendmail to appear to come from my gmail account. I could get this to work when i setup an account user, so my emails came from user@gmail.com. However the received header was still from localhost.localdomain. Since this was just an idea on how to try and get around doing it correctly thats what im looking for now. What should I setup my /etc/hosts, and /etc/sysconfig/network to look like so the received header doesn't come from localhost.localdomain. I have masquerading turned on in sendmail, and that makes the e-mail appear to come from gmail as well, but it doesn't change the received header, and masquerading the envelope doesn't either. Any ideas?

    -Rob

  2. #2
    Linux Enthusiast
    Join Date
    Dec 2004
    Posts
    637
    When and if you succeed, your e-mail will be blocked by most ISP's due to the alias "gmail.com." Via DNS lookup, your IP will send a flag and will tag the mail as spoofed. If you have success with this, I will be surprised.

  3. #3
    Just Joined!
    Join Date
    Jul 2006
    Posts
    2

    So what do you suggest

    So what would you suggest, and how do i fix this?

    Thanks

    -Rob

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •