LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-08-2004, 10:15 AM   #1
ericthyred
LQ Newbie
 
Registered: Feb 2004
Distribution: Debian
Posts: 22

Rep: Reputation: 15
Sendmail config


Hello,

I am testing sendmail. It works fine. I can send emails to my Hotmail account.

The problem is that when I open the email in Hotmail, the FROM email address is: username@localhost.localdomain[/I]

How can I change the localhost.localdomain part ?

I already changed the
LOCAL_DOMAIN(`localhost.myserver.com')dnl entry in sendmail.mc, did the m4 and restarted sendmail but this didn't change anything

Thank you

Last edited by ericthyred; 04-09-2004 at 08:56 AM.
 
Old 04-08-2004, 10:16 AM   #2
ericthyred
LQ Newbie
 
Registered: Feb 2004
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 15
BTW I send the email with the command:
mail my_email@hotmail.com

Last edited by ericthyred; 04-08-2004 at 11:20 AM.
 
Old 04-09-2004, 03:48 AM   #3
ericthyred
LQ Newbie
 
Registered: Feb 2004
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 15
Anybody ???
 
Old 04-09-2004, 03:16 PM   #4
chaan
LQ Newbie
 
Registered: Jan 2004
Location: Stillwater, OK
Distribution: Slackware, RedHat, Fedora, Knoppix
Posts: 14

Rep: Reputation: 0
Sendmail should be able to determine your hostname automatically. Does the hostname work for other programs (ssh, http, whatever you have installed). I mean, can you connect to this box from other machine via the host name, and can you receive mail at this box at username@yourhostname.com?

Chris
 
Old 04-13-2004, 01:48 PM   #5
kevindv10
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
I've got the same problem by the sounds of it. Everything works with my domain name. I can ssh, receive mail, http. But when I send mail from the linux machine the email address that sends is user@localhost.domainname.com. Trying to reply to that address bounces obviously because "localhost.domain.com" isn't a valid domain.

I've modified a line in sendmail.cf to read:

Djdomainname.com
#Dj$localhost.domainname.com (this is what the original line was).

I've restarted the service and even rebooted with crossed fingers but still when I send email the address includes the localhost name.

Help!
 
Old 04-13-2004, 04:04 PM   #6
chaan
LQ Newbie
 
Registered: Jan 2004
Location: Stillwater, OK
Distribution: Slackware, RedHat, Fedora, Knoppix
Posts: 14

Rep: Reputation: 0
What are you using for DNS resolution? What is in your /etc/resolv.conf file?
 
Old 04-13-2004, 05:38 PM   #7
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
Well, there can be 2 situations

1. Lets assume that you have a local LAN and you do not own a registered domain. In that case, a reply from hotmail.com to your virtual domain will never go through just as you said correctly in your post - because, there is no domain like user@localhost.localdomain OR lets say, user1@example.com

2. Second assumption is that just like hotmail and yahoo, you have a registered domain name with you ( lets assume its kevin.com). If that is the case, you should be able to send and receive mails without any problem.

Now, if point number 2 applies to you and still you arent able to receive mails, then try the following:

a). add your domain name (kevin.com for example) to the file /etc/mail/local-host-names

b). cd /etc/mail

c). make

d). service sendmail restart

In addition to that make sure that your MX resource record and mail server entries are properly set up in the file /etc/named.conf

You may also like to monitor messages in /var/log/maillog to find out whats happening

tail -f /var/log/maillog

The above command will monitor the file in real time

Also, Red Hat recommends that instead of modifying the sendmail.cf file directly, users should edit the file sendmail.mc and use the m4 macro to regenerate the sendmail.cf file.

Regards,

amit
 
Old 04-15-2004, 07:51 AM   #8
andguent
Member
 
Registered: Sep 2003
Distribution: Woody, SuSE, RH, LAS
Posts: 55

Rep: Reputation: 15
I had a similar problem yesterday, and managed to fix it on my Deb-woody backup server. Modifying this file is what did it for me. Hopefully this helps.

Code:
serve1:~# cat /etc/email-addresses

# This is /etc/email-addresses. It is part of the exim package
#
# This file contains email addresses to use for outgoing mail. Any local
# part not in here will be qualified by the system domain as normal.
#
# It should contain lines of the form:
#
#user: someone@isp.com
#otheruser: someoneelse@anotherisp.com
bsmith: bobtheman@pickles.net
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SendMail Config AMDPwred Linux - General 2 06-21-2013 01:31 PM
Sendmail - Config for IP Block's & Config Issues Thom_Redhat Linux - Software 1 04-07-2006 02:29 PM
Sendmail Config dunmarie Linux - Software 1 06-27-2005 03:00 AM
Sendmail Config d_sarwate Linux - Software 3 11-01-2004 01:41 PM
Sendmail Config sancho5 Linux - Networking 7 09-15-2001 05:48 PM


All times are GMT -5. The time now is 02:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration