I am trying to replace an Exchange 2000 server with a Linux alternative...i have installed Red Hat 8.0 and have set up Sendmail...
The server is behind a Unix firwewall the same as the exchange server was...
I can send internal mail, well i can send from one sendmail account to another on the server and that works fine...but i have probs with the following...
1. I cant send mail to the outside world...i have put in the Smart Host the same as exchange but no joy...
2. I cant get a windows workstation to access its mail account on the server...
Any suggestions???
Thx
filp
04-14-2003, 06:21 AM
Problem Two: do you have a POP or IMAP server running on your sendmail server? Sendmail only "sends mail", if you want a client to be able to receive mail from the server you'll need to run a daemon that supports a protocol like POP.
Problem One: I think a bit more information is needed before we can get into it. Where in the in the chain is it failing? Are the messages showing up in the mail que? In /var/log/maillog ? Are you getting any error messages? Are the mail messages bouncing? Tell us more and we'll help.
Seeya,
Finn.
rodent43
04-14-2003, 06:55 AM
Thx for the quick reply filp
what should i use for a pop server???
the mails do not show in the que, i am using webmin to try and admin it but the mails seem to come back after a short time with the following error...
name server timeout
i checked the /vat/log/maillog and all the mails r listed there...
im a noob to this so just tell me any more info that is needed and i will try to track it down :-/
linnov
04-14-2003, 07:59 AM
Sounds like Sendmail is trying to do DNS lookups and is failing.
As far as pop, you need to turn on the pop3 service via /etc/xinetd.d
You should see a ipop3 file listed there. If you edit the file and change the disable = yes to disable = no.
Restart xintd with /etc/rc.d.init.d/xinetd restart
rodent43
04-14-2003, 08:46 AM
thx linnov ill have a look at the pop thing..
the DNS lookup...the network card has the DNS entry for the external server but its not a external ip, the firewall is...does the sendmail server have to have the external ip??
rodent43
04-14-2003, 12:37 PM
OK folks...
Any more help going???
id appreciate it :)
I tried the enable in ipop3 but i still cant connect to the mail account from a workstation...is there a port setting i need to sort and if so where???
i still cant send mail out to the world :(
linnov
04-14-2003, 10:01 PM
Well again RH configures sendmail for local use only, you have to edit the sendmail.mc and remove 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')
As far a pop3 can u telnet to the linux box on port 110 like so
telnet ip-addy-of-linux-box 110
Another possibility is iptables is turned on and blocking these ports.
What's iptables -nL | more return.
rodent43
04-15-2003, 11:57 AM
OK i took those lines out of the Sendmail.mc...but stil cant send out...
i tried to telnet to it from a windows machine and got...
Connecting to linux-ip...Could not open connection to the host, on port 110
A connection attempt failed because the connection party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
If u can c any errors here or anything that i am missing then pls let me know :)
thx
linnov
04-17-2003, 12:30 PM
Is it supposed to pass the mail to the firewall box or is it to deliver it on its own. If it is supposed to pass it to the firewall you need to define the smart host in the sendmail.mc and regenerate the .cf.
Replace the xxx.xxx.xxx.xxx with the IP of the firewall.
Like so.
define(`SMART_HOST', `[xxx.xxx.xxx.xxx]')
rodent43
04-23-2003, 05:51 AM
Hi,
thx linnov, i think i got it working :)
i left the smarthost as the external server i have to route mail to but set the Network Adaptor default gateway to the firewall ip...
i can now send and recieve to and from the outside world :)
thx for all ur help m8, i really apreciate it...
justlinux.com
Copyright Internet.com Inc. All Rights Reserved.