Page 1 of 2

help me with Mail Server

Posted: 2007/04/04 21:13:09
by Daniel03
Hi,

I download CentOS ServerCD and Install it into my Server.

I configured the Named and Squid, but I have problem with the Mail Server.

I configured, but the User (with Windows using IncrediMail, Ms Outlook or Outlook Express), send Conection Refused.

I tried to look:

telnet ns.cervegsa.com.ni 25 (where cervegsa.com.ni is the domain)

but send me, Conection Refused, too.

Could some body helpme

Thanks.

Pd.: Exuse me my english, my native language is Spanish.

God Bless You

Re: help me with Mail Server

Posted: 2007/04/04 21:48:34
by WhatsHisName
Did you open port 25 in iptables?

If uncertain, post the output from “iptables -L”.

Re: help me with Mail Server

Posted: 2007/04/04 22:00:13
by michaelnel
[quote]
WhatsHisName wrote:
Did you open port 25 in iptables?

If uncertain, post the output from “iptables -L”.[/quote]

By default, sendmail on CentOS doesn't listen on port 25 even if you have port 25 open in the firewall.

Make sure the "sendmail-cf" package is installed.

You have to edit /etc/mail/sendmail.mc... find the line that says "DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl", and comment it out by prepending dnl to the line, changing it to this:

dnlDAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Run "make -C /etc/mail" to create the new sendmail.cf from sendmail.mc

Then do "service sendmail restart".

Re: help me with Mail Server

Posted: 2007/04/04 22:09:51
by michaelnel
BTW, I think there is a similar configuration issue with postfix, if that is the MTA you happen to be running.

Re: help me with Mail Server

Posted: 2007/04/04 23:04:31
by WhatsHisName
[quote]By default, sendmail on CentOS doesn't listen on port 25 even if you have port 25 open in the firewall.[/quote]
Hey, that’s no fair! You gave away my next response. :-D

Actually, I figured my next response would be “run system-config-securitylevel-tui”.

Re: help me with Mail Server

Posted: 2007/04/04 23:06:31
by michaelnel
[quote]
WhatsHisName wrote:
[quote]By default, sendmail on CentOS doesn't listen on port 25 even if you have port 25 open in the firewall.[/quote]
Hey, that’s no fair! You gave away my next response. :-D [/quote]

Sorry....

The reason I was quick with that answer was that it bit me before I learned about it. I would "telnet localhost 25" and sendmail would answer. I would "telnet server 25" from outside and it wouldn't. I would check the firewall, yep, I had a hole for 25. Still didn't work. Shut down the firewall... STILL didn't work... etc... etc.... :lol:

Re: help me with Mail Server

Posted: 2007/04/09 15:20:45
by Daniel03
Hi Again.

ok, I Do what you said me, but, still is bad.

The iptables is down,

How I Can configure a Imap Sever with my Sendmail?

Really I don't know what more do

Re: help me with Mail Server

Posted: 2007/04/09 16:06:43
by arrfab
Read some documentation ? here they are : http://www.centos.org/docs/4
Sendmail/dovecot are really easy to configure (in a simple network at least) .... just follow the docs ..

Re: help me with Mail Server

Posted: 2007/04/09 16:07:58
by Daniel03
:-?

In the work, my boss said: Loking for someone who know of that.

Sorry, I tried to do it, but I did not can.

Re: help me with Mail Server

Posted: 2007/04/10 03:10:16
by khronous
i would suggest postfix as your mta. very easy to maintain and configure.
mine now is running with mysql and with webmail and pop3 access...

for a postfix jump start.
http://www.hughesjr.com/content/view/14/