Solved

Sendmail

Posted on 1997-02-26
5
218 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Layer 7 Transparent cookie checker 22 61
FTP File Transfer Failure 13 155
dns master and slave in linux 2 69
Can't get /etc/resolv.conf to configure after reboot 8 93
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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

772 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