[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How can I change sender mail addresses under sendmail

Posted on 2011-03-10
4
Medium Priority
?
695 Views
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?

thanks
0
Comment
Question by:uknet80
  • 2
4 Comments
 
LVL 4

Assisted Solution

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

Author Comment

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

Accepted Solution

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

   Djlocaldomain.com

substituting your domain name, then restart sendmail
0
 

Author Comment

by:uknet80
ID: 35094555
the error was from hosts file
thanks guys
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month20 days, 14 hours left to enroll

810 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