Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


add domain in Sendmail

Posted on 2003-02-21
Medium Priority
Last Modified: 2013-12-15
I have installed Sendmail which is come from RH 8.0. I have a domain like abc.com and a user xyz. How can I add abc.com this domain to mail server.I have started the ipop3 and imap already.

Question by:erase009

Accepted Solution

cnjuguna earned 120 total points
ID: 8002453
add abc.com to the /etc/mail/relay-domains file. however, you haven't told us if the domain is on the same machine or not. if it is, then you may need to make changes to the /etc/mail/virtualuser file so that xyz@abc.com receives mail in their account (assuming abc is a user on your box) or you can map the whole domain to another domain e.g.
@abc.com @mydomain.com meaning mail from xyz@abc.com will be forwarded to xyz@mydomain.com
after making changes to relay-domains and virtualuser, you'll need to rebuild the virtualusers database using m4
(m4 virtualuser < virtualuser if i'm not wrong)
and then restart sendmail so the changes can take effect
hope it helps

Expert Comment

ID: 9076682
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.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
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 Month13 days, 16 hours left to enroll

581 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