View previous topic :: View next topic |
Author |
Message |
splooge l33t
Joined: 30 Aug 2002 Posts: 636
|
Posted: Thu May 27, 2004 11:40 pm Post subject: qmail accepting connections from localhost only |
|
|
I am using this guide in setting up qmail. I'm not quite sure I've completely gotten the way DJB thinks yet, so I'm a little out of my territory here. I suppose it's possible my ISP recently blocked incoming port 25, but this was working with postfix a week ago before I re-installed.
Basically, it seems to run fine from localhost: Code: | fw qmail # telnet 68.66.197.222 25
Trying 68.66.197.222...
Connected to 68.66.197.222.
Escape character is '^]'.
220 localhost ESMTP |
I can type in the commands and send a piece of mail. But I can't for the life of me connect to it from the outside world. Here's a copy of my /etc/tcp.smtp:
Code: | # Qmail-Scanner disabled for mail from localhost, relay allowed
127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-queue"
# Qmail-Scanner enabled (virus only) for mail from local network, relay allowed
192.168.1.:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
# Qmail-Scanner enabled (virus and spam) for mail from external internet, relay denied
:allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" |
I'm not sure where else to look. Heck, I'm not even sure which configuration file to look in at this point. I was thinking of unmerging qmail and trying postfix to verify my ISP hasn't blocked incoming smtp, but it sounds like a pain in the neck what with the whole circus you gotta go through to get qmail installed in the first place. Maybe I'm over-thinking it?
Code: | Z:\>telnet 68.66.197.222 25
Connecting To 68.66.197.222...Could not open a connection to host on port 25 : Connect failed |
Thanks for any help. _________________ http://get.a.clue.de |
|
Back to top |
|
|
Spooky Ghost Apprentice
Joined: 19 Apr 2002 Posts: 210 Location: Bristol, United Kingdom
|
Posted: Fri May 28, 2004 7:17 am Post subject: |
|
|
Did you edit tcp.dmtp, I can't remember what it looks like in the default install. If you did, did you rebuild the binary database? |
|
Back to top |
|
|
splooge l33t
Joined: 30 Aug 2002 Posts: 636
|
Posted: Fri May 28, 2004 8:30 am Post subject: |
|
|
If by tcp.dmtp you mean tcp.smtp, then yes, read the above what I quoted, those are the only lines in the file.
To rebuild the binary database, I did this: (from the above mentioned guide)
Code: | tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
chmod 644 /etc/tcp.smtp* |
_________________ http://get.a.clue.de |
|
Back to top |
|
|
Spooky Ghost Apprentice
Joined: 19 Apr 2002 Posts: 210 Location: Bristol, United Kingdom
|
Posted: Fri May 28, 2004 1:07 pm Post subject: |
|
|
Is that still your IP address? Without meaning to be rude I've just telnetted ok to 25 on that. I guess you've fixed it?
Code: | Trying 68.66.197.222...
Connected to 68.66.197.222.
Escape character is '^]'.
220 localhost ESMTP
HELO
250 localhost
quit
221 localhost
Connection closed by foreign host.
|
|
|
Back to top |
|
|
splooge l33t
Joined: 30 Aug 2002 Posts: 636
|
Posted: Fri May 28, 2004 6:34 pm Post subject: |
|
|
you fixed it!!
I have no idea what changed, I haven't touched anything for a couple days now.
Maybe my work is blocking outbound 25, giving me false negatives when testing. Anyways, time to turn iptables back on =p thanks for your time Spooky Ghost. _________________ http://get.a.clue.de |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|