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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

Sendmail From address on new CentOS box.

I just set up a new CentOS box as a web server and have a form that emails confirmation messages to new users.  I can see from the email header that the email is coming from: localhost.localdomain and some emails are bouncing due to this.  How can I configure sendmail to send all outgoing emails as xxxx.mydomain.com and not localhost.localdomain?
0
teksavers
Asked:
teksavers
1 Solution
 
Deepak KosarajuCommented:
set your domain name in sendmail.mc and use macro m4 to convert it to sendmail.cf
on line 155 you have following
LOCAL_DOMAIN('localhost.localdomain') dnl
change this and use
m4 sendmail.mc > sendmail.cf
service sendmail restart.
Gud luck
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now