Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sendmail server do not accept incoming mail 1

Status
Not open for further replies.

vahidvahidi

Technical User
Nov 11, 2007
8
IR
hi
im new to sendmail ,i installed sendmail on fc4
and setup domain and dns setting when is send an email to
server :

Relaying denied Giving up on
how can i solve this problem.
( i donot change sendmail configuration yet)
 
Open /etc/mail/sendmail.mc and look for this line:
Code:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
This tells sendmail to only look at the loopback device for incoming mail. You want to change 127.0.0.1 to the ip of the server or you can comment it out by adding a dnl infront of the line like this:

Code:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Or simply delete the line. Sendmail doesn't actually read this file. It reads a file called sendmail.cf. To create this file, you need to use the m4 compiler. Issue this command:

Code:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

 
Dear RhythmAce ,
i changed the settings now i cant telnet to port 25 of server but after i enter the rct to:<> i see this error:

550 5.7.1 <parsnetltd@parsnetltd.com>... Relaying denied. IP name lookup failed [66.199.250.15]
 
hmmm, did you restart sendmail? I forgot to mention that little part. ;-)

 
Dear RhythmAce,
yes i restart sendmail by "service sendmail restart"
but i have that problem yet,
i have a server, and want to host some personal webpages, i setup Dns,then when i want to setup snedmail at first clients could not connect to the server from outside(i could not telnet to server on port 25), using your help now i could telnet to port 25 but the new problem is
550 5.7.1 <parsnetltd@parsnetltd.com>... Relaying denied. IP name lookup failed [66.199.250.15]
 
There should be a file called /etc/mail/local-host-names. This is a plain text file with a list of all the domains that are hosted by your mail server. Edit this file as needed. Next you need to create the use database. This is done in two steps. First, open or create a file called /etc/mail/virtusertable. This is another plain text file which will contain a list consisting of two columns a virtual address and a real address. The real address can be a system user name or an external email address. Here is a sort example.

Code:
joe@domain1.com  joe
webmaster@domain1.com    joe
sally@domain1.com    sally@otherserver.net


fred@domain2.com   fred
webmaster@domain2.com    fred

Notice that Joe and Fred have linux accounts on the system while Sally gets here mail sent to an external email address. You will also notice that both Joe and Fred have a webmaster email address. As long as there is only one per domain, there is no problem. However, the real name and/or address must be unique. When you are done editing the file, we need to build the database. This is done a lot like the m4 command:

Code:
makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable

Local users should be able to send and recieve mail now but to allow relaying from remote clients (users send from the home computers) you will need to make sure you are not creating an open relay. There are a couple simple steps but you should try to see if things work at this point first.

 
Thank you Dear RhythmAce
i check /etc/mail/local-host-names and add my domain to it!
i think this is the control panels job!
/etc/mail/virtusertable was complete, so after starting sendmail it started to receive mails. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top