Solved

Sendmail

Posted on 1997-02-26
5
220 Views
Last Modified: 2010-03-18
I have a small Linex / Windows network running tcp/Ip.
I have a functioning DNS but as of right now, I'm not on
line. However, the DNS is working..e.g- no problems re-
solving names on the windows machines.
Everything seems to be working except for...!! For some
reason, I must INCLUDE THE HOSTNAME OF MY MAIL
SERVER everytime I send mail to a user. I have, or at least
I think I set it up correctly in DNS, and even added the
DMmctcompany.net  line in 'sensmail.cf'
Also, when I exclude "mail" <----that is the name of my mail
server... from the  IN   MX   10 mail   line in  named.hosts,
my server still will not except anything except:
username@mail.mctcompany.net
The mail does get there, however it gets kicked back to
root/postmaster <---e.g.me
This is about the only thing that didn't work out for me, and
it should have!!
I'm setting up a small Internet Site, and have been working
with Linux for a little over a month. I would like to work out the bugs before going on line.
Any Help would great!!


Thanks!!
0
Comment
Question by:mct
5 Comments
 

Author Comment

by:mct
ID: 1584067
Edited text of question
0
 

Accepted Solution

by:
rayc021897 earned 20 total points
ID: 1584068
For 20points the best advice I can get is to get the Orielly and Associates book  "Sendmail".  Other than that...  start from scratch your sendmail.cf file is VERY particular.

Enjoy,

Ray

rayc@indy.net

0
 

Expert Comment

by:pattinso
ID: 1584069
It looks like you have to tell sendmail to accept mail
for yourcompany.com. Defaultwise, sendmail only accepts
mail for your.host.name. Usually, there exists a macro
defining a list of hosts for which sendmail accepts mail.

Dirk.
0
 
LVL 1

Expert Comment

by:ptan
ID: 1584070
Add in the following lines into your sendmail.cf:

Fw/etc/sendmail.cw

Add in your domain name (and any other domains you
want to accept mail for) into the file
/etc/sendmail.cw  
(It's just a text file you create with a list of domains on each line)


Hope this helps.

Paul Tan.

0
 

Expert Comment

by:tariq030897
ID: 1584071
Well, What does your MX line in DNS look like?
is it :
companyname.com      IN       MX     0 mail.companyname.com ?

and is Sendmail using DNS?

Check these things out
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

828 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