Click to See Complete Forum and Search --> : outlook won't work with sendmail/pop?
ksc133
04-12-2003, 11:24 PM
hi,
i've setup sendmail and pop server on my RH gateway.
my setup consists of a RH gateway and win98 client.
i've setup DNS with Mx record: mail.ksc133.com
i setup 2 users on RH gateway: root, kimseng.
i'm able to sent mails from RH gateway itself to the 2 users. aslo i'm able to sent mail to my yahoo account and my ISP mail account.
my win98 outlook can also send mails to yahoo and my ISP.
my win98 can ping mail.ksc133.com and can surf Internet as usual.
but when i configure my outlook to connect to my RH gateway.
settings: SMTP and POP : mail.ksc133.com
ERROR msg:
The message could not be sent because the server rejected the sender's e-mail address. The sender's e-mail address was 'kimseng@mail.ksc133.com'. Subject 'TEST', Account: 'redhat', Server: 'mail.ksc133.com', Protocol: SMTP, Server Response: '550 5.0.0 Access denied', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC78
why is this so?is it something wrong with DNS, firewall or sendmail settings?
by the way, i've read up that POP servers don't need any config, just create user account on RH box and it will work. is it true?
pls help me. thanks a lot !!!
:confused:
brandon_yap
04-13-2003, 05:53 AM
hi...
what is sendmail as i am a newbie here...
linnov
04-13-2003, 09:43 AM
my guess is sendmail is only listening on localhost on the RH box, a pain in the butt feature RH uses when sending out RH.
check your /etc/mail/sendmail.mc file for the following lines.
dnl This changes sendmail to only listen on the loopback device 127.0.0.1
dnl and not on any other network devices. Comment this out if you want
dnl to accept email over the network.
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
then remove them and remake your sendmail.cf
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
restart sendmail
/etc/rc.d/init.d/sendmail restart
ksc133
04-13-2003, 11:05 AM
hi Ilnnov,
thanks for helping me.
i did comment out the line:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA') dnl
and remake my sendmail.cf file. but still sendmail get the same
error msg:
"The message could not be sent because the server rejected the sender's e-mail address. The sender's e-mail address was 'kimseng@ksc133.com'. Subject 'TEST', Account: 'redhat', Server: 'mail.ksc133.com', Protocol: SMTP, Server Response: '550 5.0.0 Access denied', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC78"
and also i can't retrive emails form my POP server:
error msg:
"Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems, or a long period of inactivity. Account: 'redhat', Server: 'mail.ksc133.com', Protocol: POP3, Port: 110, Secure(SSL): No, Error Number: 0x800CCC0F"
what wrong???
:(
linnov
04-13-2003, 11:18 AM
is there an entry in /etc/mail/access for ksc133.com.
You should have the following
ksc133.com RELAY
then issue
makemap hash /etc/mail/access < /etc/mail/access
As far as receiving mail are you running a pop3 daemon?
ksc133
04-13-2003, 11:58 AM
hi IInnov
i added in my domain ksc133.com relay to /etc/mail/access.
but still can't work...
yes, i using POP3 and ipop3 daemon from the IMAP rpm from RH.
thanks pal.
:rolleyes:
linnov
04-13-2003, 04:42 PM
whats the error sendmail throws from /var/log/maillog
linnov
04-13-2003, 04:47 PM
another possibility is iptables is blocking ports 25 and 110
ksc133
04-13-2003, 09:26 PM
hi llnnov,
i duno if its Ipchains blocking?
the sendmail and pop server is also my gateway.
u see my win98 client can actually email using outlook to the Internet yahoo account.
but it just can't connect to my mail server, mail.ksc133.com.
the outlook client can actually detect my mail server and try to authenticate but fail to connect everytime saying the mail server rejected my email address kimseng@ksc133.com. but if fact i've already created an account on RH gateway itself.
i can ping mail.ksc133.com from win98 client. therefore i dun think DNS is a problem.
in the ipchains firewall, TCP wrappers... i allow all my local clients form the subnet 192.168.0 to connect to my RH gateway. but rejected all incoming connections form the outside world.
i still can't figure out what's the problem? help me!!!
:o
linnov
04-13-2003, 10:09 PM
Whats the error from the sendmail log.
/var/log/maillog
your domain does not resolve on a public DNS server. Dunno if this is part of your problem or not.
Apr 13 22:00:13 linnov sendmail[27467]: h3E20BVN027461: to=<kimseng@ksc133.com>, ctladdr=<root@linnov.satgames.net> (0/0), delay=00:00:02, xdelay=00:00:00, mailer=esmtp, pri=30330, relay=ksc133.com, dsn=5.1.2, stat=Host unknown (Name server: ksc133.com: host not found)
michaelchileshe
04-14-2003, 08:24 AM
Check in the sendmail.cf, for the "smtp port options" and make sure it reads as: Port=smtp, Name=MTA.
Can you: telnet <machinename> 25?
ksc133
04-14-2003, 09:35 AM
hi pals,
pls note that i don't have a registered(real) domain:ksc133.com(fake domain)
i'm just trying to Email in a LAN environment.
when i telnet to mail.ksc133.com 25 (SMTP)
error msg below:
220 rh.ksc133.com ESMTP Sendmail 8.11.6/8.11.6; Mon, 14 Apr 2003 21:24:12 +0800
550 5.0.0 Access denied
when i telnet to mail.ksc133 110 (POP)
error msg:
connection to host lost.
what's wrong? is it my TCP wrappers settings wrong?
i set hosts.deny
ALL:ALL
hosts.allow
ALL: 127.0.0.1
ALL:192.168.0 (my local LAN subnet)
thanks alot pals
linnov
04-14-2003, 06:47 PM
Still looks like sendmail is only listening on the local interface to me.
Double check the entry in your sendmail.cf.
Look for
O DaemonPortOptions=Name=MTA
I think you may still have the following
O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
Then to rule out wrappers, I would remove the ALL:ALL.
irlandes
04-14-2003, 07:07 PM
Originally posted by brandon_yap
hi...
what is sendmail as i am a newbie here...
It is a utility or file or program, whatever you wish to call it, which supplies mail transfer services.
As a newbie, do not hesitate to use www.google.com for almost any question or problem you have with linux. For example, try:
sendmail linux documentation
or sendmail linux
and dig through the hits. Sometimes you gotta' play with the stuff in the search box to get useful stuff out.
Often when you get an error message, typing the entire error message into google will give you the solution. Last week, I had an error with Drake 9.0, something about resources collision during boot-up. Google search for the complete error message with quotes around it, showed it was an ide failure, and was probably distro version related. Sure enough, 9.1 does not have it.
michaelchileshe
04-16-2003, 03:11 AM
Your problem seem unusual, as sendmail should work right off the box with minor tweakings.
On the actuall mail server are you able to telnet to port 25 and 110 using the ip address.What do you have in the /etc/hosts?
To make configuration easy i would suggest you get webmin,from webmin.com and use it to configure your system.If you can telnet on 25 from the server then all is well.
Now using webmin,under the sendmail module choose spam(access) and allow the network on which the windose machine is, to be able to relay mail.
This is what i did for my system and i never even touch tcp wrappers!!
ksc133
04-16-2003, 05:44 AM
hi frenz,
i managed to get outlook to work with sendmail and pop.
the problem is with my TCP wrappers settings.
i disable them all and now it is working.
i can send email to all the users in my LAN and also out to yahoo.
i use TCP wrappers cos i wanna protect my gateway form outside.
but now seems that i've to use IPchains instead.
but funny why my TCP wrappers settings earlier allow samba clients to access my samba services, squid proxy services but not sendmail and pop??? strange.
bit that's another chapter!!!!
thanks frenz u guys are great lot. :o)