LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-03-2007, 06:48 AM   #1
nics
Member
 
Registered: Mar 2007
Posts: 31

Rep: Reputation: 15
STRANGE:mailserver receives mails but is not able to send mails outside


hello!!all
i 've recently configured a mail server using sendmail.
for that i just did the following
in /etc/resolv.conf
(gave nameserver's ip)
daomain info.com.np

in /etc/hosts
203.78.167.124 system.info.com.np system

in /etc/mail/relay-domains
info.com.np
infoswift.com.np
in/etc/mail/local-host-names
info.com.np
infoswift.com.np

int the sendmail.mc file i commented the line
dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

mailserver receives mail from outside ..
but it is not able to send mails outside.like to hotmail or yahoo or any other domains..
can anybody plzz help
 
Old 05-04-2007, 12:44 AM   #2
suhas!
Member
 
Registered: Mar 2007
Posts: 100

Rep: Reputation: 17
Try using /etc/mail/access file

Hi,

I think you should use /etc/mail/access file.. this file contains the IP addresses of the machines which are allowed to be relayed.

e.g. /etc/mail/access may contain lines --

localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
192.168.0.1 RELAY

Above file says that machine 192.168.0.1 is allowed to relay mails.

If it doesnt work, remove all the entries in /etc/mail/relay-domain file..

It should do..

Regards..
 
  


Reply

Tags
mail



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
logging outgoing mails in mailserver????? nics Linux - Server 17 01-01-2009 05:19 AM
backing going up of outgoing mails in our mailserver??? nics Linux - Server 3 04-19-2007 11:48 PM
Allow only local domain mails reject other mails sikkalgopal Linux - Server 0 04-03-2007 12:51 AM
Sendmai can send mails but unable to receive mails satimis Linux - Server 2 02-15-2007 09:22 AM
My Postfix mailserver can't send out mails directly! gubak Linux - Networking 4 03-28-2006 07:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration