Operating System - Linux
1828040 Members
2034 Online
109973 Solutions
New Discussion

Re: Sendmail Configuration

 
dhananjay_1
Frequent Advisor

Sendmail Configuration

Hello !

I hv configured sendmail on Redhat 8.0
I am able to send & recv the mails internaly to my local user accounts also I can send mails to internet mails (i.e. Rediff,yahoo) but I am not able to recv the mails fm internet.

So can anybody help me out in this

Regds
Dhananjay
DJ
11 REPLIES 11
Bojan Nemec
Honored Contributor

Re: Sendmail Configuration

Dhananjay,

What abbout the firewall settings? Is port 25 allowed from the outside world?

Bojan
Alexander Chuzhoy
Honored Contributor

Re: Sendmail Configuration

you have to define your sendmail server as MX record for your domain in DNS.
Then from remote domain see (with nslookup or dig) that the MX record is actually the sendmail server.
Only then it will receive e-mail from internet.
dhananjay_1
Frequent Advisor

Re: Sendmail Configuration

I have configured the DNS as follows
in /var/named/raheja.forward i hv an entry of MX record like this

raheja.com. MX 10 mail.raheja.com

I have disable firewall.
pls tell me wether my MX setting in DNS is proper or if it is wrong how to do this setting, so i can recv the mail from Internet .

Regds
Dhananjay



DJ
dhananjay_1
Frequent Advisor

Re: Sendmail Configuration

I have configured the DNS as follows
in /var/named/raheja.forward i hv an entry of MX record like this

raheja.com. MX 10 mail.raheja.com

I have disable firewall.
pls tell me wether my MX setting in DNS is proper or if it is wrong how to do this setting, so i can recv the mail from Internet .

my netstat command output is as follows
# netstat -an | grep :25 | grep tcp
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN

also i am attaching the raheja.forward and raheja.reverse file for my DNS Configuration.


Regds
Dhananjay



DJ
Vitaly Karasik_1
Honored Contributor

Re: Sendmail Configuration

and now you should publish your MX record in Internet.
There are two ways:
- ask your hoster to add MX record to their DNS servers
http://www.dnsstuff.com/tools/lookup.ch?name=raheja.com&type=NS

- publish your DNS server as responsible for your domain

Rgds,
Vitaly
Bojan Nemec
Honored Contributor

Re: Sendmail Configuration

Hi,

I did a
dig mail.raheja.com
and
dig raheja.com MX

both commands gives no response. Is yours raheja.com DNS properly inserted in an authority DNS server?

Bojan
Steven E. Protter
Exalted Contributor

Re: Sendmail Configuration

diagnostics:

sendmail -v -d8 -d38 someone@mail.net
type text

.


You get full diagnostics.

Common issues:

Sendmail daemon not running:

chkconfig --level 12345 sendmail on
service sendmail start

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Johannes Krackowizer_1
Valued Contributor

Re: Sendmail Configuration

hi,

try sendmail -q to deliver and download e-mails. on my old (about 5 years ago) server i had a dial-in line and i want to deliver and receive mail only once per hour so i startet sendmail like that:
sendmail -q1h

or if you want to let sendmail work every 1h and 30 minutes:
sendmail -q1h30m

best regards,

johannes
"First off, I'd suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it's a great symbolic gesture." (Linus Torvalds)
Vitaly Karasik_1
Honored Contributor

Re: Sendmail Configuration

Steven & Johannes,
in this case [IMHO] the problem isn't sendmail config, but just absence of MX record.
dhananjay_1
Frequent Advisor

Re: Sendmail Configuration

Hello Guys,


Thanks for ur input.

As i am very new to this i have lot of doubt in my mind . I am using my sendmail server for internal use , my server is not publish how to do that .. or how to insert MX records to other end
we r using DSL Dishnet as a ISP they have provided one router with one public ip .

In such Scenario wether it is possible to recv mail from internet .

Regds
Dhananjay

DJ
Vitaly Karasik_1
Honored Contributor

Re: Sendmail Configuration

AFAIK, it's possible - you should ask your ISP to publish your MX record. Of course, you should configure your mailserver [or NAT] for using the same IP as your ISP allows.