How can I change sender mail addresses under sendmail

Posted on 2011-03-10
Medium Priority
Last Modified: 2012-05-11
hi all,

The sender mail address is apache@localhost.localdomain when I check it under maillog, I tried to change it from sendmail.mc to: LOCAL_DOMAIN(`my-domain')dnl, and restarted sendmail, but still shows localhost.localdomain.  where shall I change that setting?

Question by:uknet80
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Assisted Solution

bitla earned 400 total points
ID: 35093571
in the httpd conf file

Author Comment

ID: 35093618
there isn't localhost.localdomain under httpd.conf file?
LVL 20

Accepted Solution

carlmd earned 1600 total points
ID: 35093823
In sendmail.cf try setting Dj as follows.


substituting your domain name, then restart sendmail

Author Comment

ID: 35094555
the error was from hosts file
thanks guys

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Utilizing an array to gracefully append to a list of EmailAddresses
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question