Sendmail problem

Posted on 2003-02-20
Medium Priority
Last Modified: 2013-12-15
In Redhat 8, I try to setup an Internal Mail server since I haven't my own domain from internet. I have tested the smtp and pop3 by telnet to sendmail. It works. But One problem is where can I define my domain (Example: abc.com)? I guess it is defined in sendmail.cf, unluckly,
I can't find.

another problem is when I telnet to 25 which is the internal mail server
it shows the following

220 localhost.localdomain ESMTP Sendmail 8.12.5/8.12.5; Thu, 20 Feb 2003 18:32:58 +0800

how can I change localhost.localdomain to smtp.abc.com ?

Thanks for your help !

Question by:erase006
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

Accepted Solution

frustin earned 100 total points
ID: 7986898
you define your domain in /etc/hosts under the localhost line put in:

<your ip>     <your host name>

LVL 51

Assisted Solution

ahoffmann earned 100 total points
ID: 7987159
in your sendmail.cf set


Author Comment

ID: 7992703

I means I am going to setup a sendmail email server.
If this sendmail server hold abc.com, xyz.com email.
how can I define abc.com and xyz.com in the sendmail server

Thanks !
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.


Author Comment

ID: 7992846

I means I am going to setup a sendmail email server.
If this sendmail server hold abc.com, xyz.com email.
how can I define abc.com and xyz.com in the sendmail server

Thanks !
LVL 15

Expert Comment

ID: 7994124

in sendmail.cf, add the line.

Cwabc.com xyz.com

or, if you can file


add the domains you will be receiving mail for in the file, one per line

and restart sendmail.

good luck,

Expert Comment

ID: 9076684
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
LVL 15

Expert Comment

ID: 9080246
the question kinda steer from it's initial problem.

ahoffman and frustin took the first part (i think),
then it moves to Virtual hosting, which I think I did comment on that.

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

765 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