Click to See Complete Forum and Search --> : trouble with postfix


pvc
09-02-2002, 08:49 AM
hi i run a mandrake box for webserver, and want to use it as mail server as well.

the problem is i cant connect to the mailserver, i get a "connection closed by forgein host" error.

if i use telnet to connect i get the same effect, it sais
connected to mydomain.com
Escape character is ^]

then imediately:
connection closed by forgein host

any one have any idea why this would be so?

i run a firewall but have ports 110 and 25 open (also i dont think it firewall related since it does sais connected to ...)

in the main.cf i have my hostname and domain name specifeid,
also i have the line " inet_interfaces = all uncommented (activ)

i've been digging throug the postfix conf files but really can find nothing wrong..

so if anyone has any ideas, or maybe just a standart simple postfix main.cf conf example i would be greatly pleased.

thanks in advance
-pete



just to clarify:
i want to pop the mail from my server on a outside, i understood this was possible with postfix, i think i actualy had it working a while back but not anymore...

if i trry to send mail thought it a get a relaying denied error, so that part is working correct (it should deny relaying)

if this is not possible then does anyone know if there is a popper program installed by default in a mandrake 8.1 distro?

chikn
09-02-2002, 11:02 AM
You still need a pop3 daemon along with postfix to be able to do this. Mandrake includes several. I use the plain old pop3d. To install or see if its installed type

urpmi pop3d

pvc
09-02-2002, 11:39 AM
hmz i dont have that pop3d deamon installed i think, i do have a
/usr/sbin/ipop3d

wich sais
+OK POP3 mydomain V2000.70mdk server ready so i'd think this is a pop3 deamon yet i still cant telnet into it, also i cant find any man pages or configuration files for this "ipop3d"


also it shuts off after being idle for 2 minutes or so..

any suggestions?

chikn
09-02-2002, 11:51 AM
Are you trying to telnet to the port 110 or just telnet. If you are just trying to telnet to the box then the telnet server probably isnt installed or you dont have your firewall open for port 23 to telnet to the box.

Try to telnet to your box and port 25 and port 110 to see if you can get a connection if not I bet your firewall isnt forwarding the ports correctly.

pvc
09-02-2002, 12:00 PM
i telnetted to port 110 and 25,
25 smpt works ok but 110 doesnt, i get connected but imidiately cut of.

also urmpi ipop3d doest report it as a service.
so i figure the problem lies there.
if i dont have a pop3 deamon running how do i get one to run preferbly installed with mandrake since i lost my distro disks and compiling stuff tend to fail a lot on this box :(

pvc
09-04-2002, 01:12 PM
ok i have been looking around a bit and it seem i have my pop deamen running though inetd

at least there is an ipop3 entry in my xinetd.d dir with contends that look about right to me, so this would suggest to me that i do have a pop3-deamon running, yet it still wont work.

if i telnet to port 110 (pop3) i get connected for a short time but it immedialtely disconnects?

in my /var/log/deamons/info file i get the following entry when i try the telnet:
" xinetd[anumber]: libwrap refused connection from <ip> "

any one have any idea what the problem could be?

greetz, Pete

pvc
09-04-2002, 01:22 PM
ok i got it to work so i figgured i'd post here how i got it to work:)

the problem i was having was that
my pop3 deamon was running though inetd (xinetd). and to connection was refused by the xinetd deamon.

to fix it i just had to put

ipop3d: ALL

in my /etc/hosts.allow

nb, swap ALL for localhost or certain ip's if you dont want every one to be able to use the deamon :)

hope this might help some of you :)