LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-17-2004, 04:04 AM   #16
htm
Member
 
Registered: Mar 2004
Posts: 162

Original Poster
Rep: Reputation: 30
my imap file under /etc/exint.d for your review, David


Now I only have 1 oproblem remaining, to fix my imap issue
at my remote server, so that my LAN at my office can receive
email from the remote server



# default: off
# description: The IMAP service allows remote users to access their mail using \
# an IMAP client such as Mutt, Pine, fetchmail, or Netscape \
# Communicator.
service imap
{
socket_type = stream
wait = no
user = root
server = /usr/sbin/imapd
log_on_success += HOST DURATION
log_on_failure += HOST
disable = no
}
 
Old 04-17-2004, 11:48 AM   #17
htm
Member
 
Registered: Mar 2004
Posts: 162

Original Poster
Rep: Reputation: 30
still does not work

I changed ADDRESS line from 0 to my real IP address in the
imapd file under /mail/etc dir, also I fixed my /etc/hosts problem, restart
xinetd but still can only telnet my_domain_ip 143, but not 127.0.0. 143,
andf also cannot telnet my_domain_ip 143 remotely

When I did an netstat -lp on remote server, I found

...
tcp 0 0 my_domain_name:imap *:* LISTEN 20027/couriertcpd
...
tcp 0 0 *:smtp *:* LISTEN 22769/
...

How can I make the above as

..
tcp 0 0 *:imap *:* LISTEN 20027/couriertcpd
...
tcp 0 0 *:smtp *:* LISTEN 22769/

Maybe in that case the problem could be gone, or something else?

Thx,
HTM
...
 
Old 04-17-2004, 01:03 PM   #18
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Can you post the output of:
netstat -nlp

As for subscribing to lists you need to use:
mylist-subscribe@domain.com
 
Old 04-17-2004, 08:31 PM   #19
htm
Member
 
Registered: Mar 2004
Posts: 162

Original Poster
Rep: Reputation: 30
Daivd, here you go

If I have any security holes, pls let me know, but my server do need
open certain ports, such as http, ssh, imap among others

What I need is to recieve email at my local LAN through my remote server,
which netstat info is listed below:

#netstat -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program n
ame
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN 1592/

tcp 0 0 127.0.0.1:58346 0.0.0.0:* LISTEN 10539/xinetd

tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1745/

tcp 0 0 my_real_ip_addr:143 0.0.0.0:* LISTEN 20027/courier
tcpd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1573/

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 19343/httpd

tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 29990/X

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1689/sshd

tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 10837/cupsd

tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 22769/

tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 18246/

tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 19343/httpd

udp 0 0 0.0.0.0:32768 0.0.0.0:* 1592/

udp 0 0 0.0.0.0:920 0.0.0.0:* 1592/

udp 0 0 0.0.0.0:111 0.0.0.0:* 1573/

udp 0 0 0.0.0.0:631 0.0.0.0:* 10837/cupsd

Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 2042 1777/gpm /dev/gpmctl
unix 2 [ ACC ] STREAM LISTENING 2192 1878/ /tmp/.font-unix/
fs7100
unix 2 [ ACC ] STREAM LISTENING 662637 29990/X /tmp/.X11-unix/X
0
unix 2 [ ACC ] STREAM LISTENING 2277 1910/ /tmp/.gdm_socket
unix 2 [ ACC ] STREAM LISTENING 1974 1745/ /var/lib/mysql/m
ysql.sock
unix 2 [ ACC ] STREAM LISTENING 867066 20013/authdaemond.m /mail/var/authda
emon/socket.tmp
 
Old 04-18-2004, 06:15 AM   #20
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
I'm sorry but I can't really see anything that's wrong.

If it is just IMAP you are having trouble connecting to then try temporarily disabling your firewall. If you need to connect on the loopback then make sure that the loopback device is enabled:
ifconfig

Having "ADDRESS=0" in the config should make the service listen on all IPs.
 
Old 04-18-2004, 07:33 AM   #21
htm
Member
 
Registered: Mar 2004
Posts: 162

Original Poster
Rep: Reputation: 30
2 questions

1. Is there anyway to make my 25 port behaving the same as my
port 25 that works perfectly

From currently

tcp 0 0 my_real_ip_addr:143 0.0.0.0:* LISTEN 20027/courier

to

tcp 0 0 *:143 0.0.0.0:* LISTEN 20027/courier

2. Sinc it is a remote server, what is a command line command
in disabling my firewall? and what is the command enabling the
firewall?

Thx,
HTM
 
Old 04-18-2004, 08:00 AM   #22
htm
Member
 
Registered: Mar 2004
Posts: 162

Original Poster
Rep: Reputation: 30
on stop and start iptables

If I use

service iptables stop
to test, after that if
I use

serrvice iptables start

will those 2 steps keep my iptables configuation unaltered?

Thx,
HTM
 
Old 04-18-2004, 08:05 AM   #23
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
It should do.
 
Old 04-18-2004, 11:07 AM   #24
htm
Member
 
Registered: Mar 2004
Posts: 162

Original Poster
Rep: Reputation: 30
OK, here is my test results

If I completely disable the firewall, telnet its 143 port
remotely works, of course, since it is connected with the Internet,
I cannot allow things like that

Now I note in the GUI of Security Level Configuration menu,
there is a list of trusted devices, if I check with the device that
hooks to the Internet without disabling the firewall, the remote
telnet works as well. But it is also bad, though much better than no firewall

So what is the better solution?

Since I use REdhat 9.0, in Red Hta Enterprise 3, there is a similar menu
all alows to specify specific ports to be opened:

http://linux.web.cern.ch/linux/cel3/...allconfig.html

THx agin,
HTM
 
Old 04-18-2004, 11:11 AM   #25
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
You can use lokkit to configure specific ports to open or even better look at a few iptables scripts and write something yourself.
 
Old 04-19-2004, 12:14 AM   #26
htm
Member
 
Registered: Mar 2004
Posts: 162

Original Poster
Rep: Reputation: 30
what is the exact command?

Could you let me know what is the exact command to open
143 (imap) port? Also from netstats command, looks like that port is already opened?


One more question, why after setting mailman, erveything looks like OK,
when I send e-mail to the list_moerator@mydomail.com, there is nothing showing
in the pending list, why?

Now I am alos confused that if my web-based mailman can be hotsed in my LAN
is OK, or id it has to be hosted to my remote server?

Thx,
HTM
 
Old 04-24-2004, 02:18 PM   #27
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Sorry - I just noticed I didn't reply to this.

netstat will only show which ports are listening for connections - your firewall may still be blocking them. If you use lokkit to mange your firewall then run it and add the port in the customise list.

I think you need to use "list_moerator@mydomail.com" to "list-moderator@mydomail.com".

It can be hosted in your LAN but will need the relevant ports forwarded from your router to the internal address of your server.
 
Old 04-24-2004, 08:51 PM   #28
htic22
LQ Newbie
 
Registered: Apr 2004
Posts: 29

Rep: Reputation: 15
why mozilla mail client cannot retrieve email?

My imap server runs perfectly at my remote server (phsically remote
to my LAN), and I can tenet my remote server's 143 port at my
LAN's server without any problem, but after I set all right
config. at my mozilla to retrieve at my LAN's server, it says
connection to mail.my_domail.comn failed, why?
(telnet mail.my_doamin.com 143 is just fine)


Thx,
HTM
 
Old 04-25-2004, 07:02 AM   #29
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Do you have it set for IMAP and not pop3?
 
Old 04-25-2004, 11:24 AM   #30
htic22
LQ Newbie
 
Registered: Apr 2004
Posts: 29

Rep: Reputation: 15
it is imap, not pop3

I have an urgent question on mailman, now I can get pending messages
after taking your suggestion, but no mails were delivered to any subscribers. I am wondering why?

Enclosed are my aliases file, and severl log file by mailman, if you
could offer me some insights, BTW I've never met tools like mailman making
me some fruiusting, before that, I was using our wb hoster's mailman.

many thx,
HTM


1. /etc/aliases file

# mailman aliases
#mailman: postmaster
#mailman-owner: mailman
## mailman mailing list
mailman: "|/var/www/html/mailman/mail/mailman post mailman"
mailman-admin: "|/var/www/html/mailman/mail/mailman admin mailman"
mailman-bounces: "|/var/www/html/mailman/mail/mailman bounces mailman"
mailman-confirm: "|/var/www/html/mailman/mail/mailman confirm mailman"
mailman-join: "|/var/www/html/mailman/mail/mailman join mailman"
mailman-leave: "|/var/www/html/mailman/mail/mailman leave mailman"
mailman-owner: "|/var/www/html/mailman/mail/mailman owner mailman"
mailman-request: "|/var/www/html/mailman/mail/mailman request mailman"
mailman-subscribe: "|/var/www/html/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe: "|/var/www/html/mailman/mail/mailman unsubscribe mailman"
clients: "|/var/www/html/mailman/mail/mailman post clients"
clients-admin: "|/var/www/html/mailman/mail/mailman admin clients"
clients-bounces: "|/var/www/html/mailman/mail/mailman bounces clients"
clients-confirm: "|/var/www/html/mailman/mail/mailman confirm clients"
clients-join: "|/var/www/html/mailman/mail/mailman join clients"
clients-leave: "|/var/www/html/mailman/mail/mailman leave clients"
clients-owner: "|/var/www/html/mailman/mail/mailman owner clients"
clients-request: "|/var/www/html/mailman/mail/mailman request clients"
clients-subscribe: "|/var/www/html/mailman/mail/mailman subscribe clients"
clients-unsubscribe: "|/var/www/html/mailman/mail/mailman unsubscribe clients"

2. ~/mailman/logs/post file:
Apr 25 23:16:05 2004 (31930) post to mailman from mailman-admin@my_domain.com, size=1765, message-id=<mailman.0.1082905863.31915.mailman@my_domain.com>, 1 failures
Apr 25 23:19:14 2004 (31930) post to mailman from mailman-owner@my_domain.com, size=1387, message-id=<mailman.0.1082906087.31928.mailman@my_domain.com>, 1 failures
Apr 25 23:28:33 2004 (31930) post to mailman from mailman-owner@my_domain.com, size=1273, message-id=n/a, 1 failures
Apr 25 23:31:42 2004 (31930) post to clients from mailman-admin@my_domain.com, size=1824, message-id=<mailman.0.1082906723.32006.clients@my_domain.com>, 1 failures
Apr 25 23:34:51 2004 (31930) post to mailman from mailman-admin@my_domain.com, size=1765, message-id=<mailman.0.1082905863.31915.mailman@my_domain.com>, 1 failures
Apr 25 23:38:00 2004 (31930) post to mailman from mailman-owner@my_domain.com, size=1387, message-id=<mailman.0.1082906087.31928.mailman@my_domain.com>, 1 failures
Apr 25 23:38:34 2004 (31930) post to clients from clients-request@my_domain.com, size=1673, message-id=<mailman.0.1082907511.32029.clients@my_domain.com>, 1 failures
Apr 25 23:41:43 2004 (31930) post to clients from clients-request@my_domain.com, size=1684, message-id=<mailman.1.1082907511.32029.clients@my_domain.com>, 1 failures
Apr 25 23:41:52 2004 (31930) post to clients from clients-request@my_domain.com, size=1680, message-id=<mailman.2.1082907511.32029.clients@my_domain.com>, 1 failures
Apr 25 23:45:01 2004 (31930) post to clients from clients-request@my_domain.com, size=1671, message-id=<mailman.3.1082907511.32029.clients@my_domain.com>, 1 failures
Apr 25 23:48:11 2004 (31930) post to mailman from mailman-admin@my_domain.com, size=1765, message-id=<mailman.0.1082905863.31915.mailman@my_domain.com>, 1 failures
Apr 25 23:51:20 2004 (31930) post to mailman from mailman-owner@my_domain.com, size=1387, message-id=<mailman.0.1082906087.31928.mailman@my_domain.com>, 1 failures
Apr 25 23:51:20 2004 (31930) post to mailman from mailman-owner@my_domain.com, size=1273, message-id=n/a, 1 failures

3. ~/mailman/logs/smtp-failure file
Apr 25 23:38:00 2004 (31930) delivery to htm@my_domain.com failed with code -1: (110, 'Connection timed out')
Apr 25 23:38:34 2004 (31930) Low level smtp error: (113, 'No route to host'), msgid: <mailman.0.1082907511.32029.clients@my_domain.com>
Apr 25 23:38:34 2004 (31930) delivery to htm@my_domain.com failed with code -1: (113, 'No route to host')
Apr 25 23:41:43 2004 (31930) Low level smtp error: (110, 'Connection timed out'), msgid: <mailman.1.1082907511.32029.clients@my_domain.com>
Apr 25 23:41:43 2004 (31930) delivery to toptraining@my_domain.com failed with code -1: (110, 'Connection timed out')
Apr 25 23:41:52 2004 (31930) Low level smtp error: (113, 'No route to host'), msgid: <mailman.2.1082907511.32029.clients@my_domain.com>
Apr 25 23:41:52 2004 (31930) delivery to publisher@my_domain.com failed with code -1: (113, 'No route to
host')
Apr 25 23:45:01 2004 (31930) Low level smtp error: (110, 'Connection timed out'), msgid: <mailman.3.1082907511.32029.clients@my_domain.com>
Apr 25 23:45:01 2004 (31930) delivery to newbabe@hotmail.com failed with code -1: (110, 'Connection timed out')
Apr 25 23:48:10 2004 (31930) Low level smtp error: (110, 'Connection timed out'), msgid: <mailman.0.1082905863.31915.mailman@my_domain.com>
Apr 25 23:48:11 2004 (31930) delivery to htm@my_domain.com failed with code -1: (110, 'Connection timed out')
Apr 25 23:51:20 2004 (31930) Low level smtp error: (110, 'Connection timed out'), msgid: <mailman.0.1082906087.31928.mailman@my_domain.com>
Apr 25 23:51:20 2004 (31930) delivery to htm@my_domain.com failed with code -1: (110, 'Connection timed out')
Apr 25 23:51:20 2004 (31930) Low level smtp error: (113, 'No route to host'), msgid: None
Apr 25 23:51:20 2004 (31930) delivery to mailman-owner@my_domain.com failed with code -1: (113, 'No route to host')
Apr 25 23:54:29 2004 (31930) Low level smtp error: (110, 'Connection timed out'), msgid: <mailman.0.1082906723.32006.clients@my_domain.com>
Apr 25 23:54:29 2004 (31930) delivery to htm@my_domain.com failed with code -1: (110, 'Connection timed out')

4. ~/mailman/logs/vette file:

Apr 25 23:48:38 2004 (31928) Clients post from htm@my_domain.com held, message-id=<200404251548.i3PFmbtb032111@my_domain.com>: Post to moderated list
Apr 25 23:52:21 2004 (32132) held message approved, message-id: <200404251548.i3PFmbtb032111@my_domain.com>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Display Wrong... Can't See to Fix troutstalker Linux - Newbie 12 04-28-2006 06:29 AM
mmap64 wrong physical mapping mark02k Programming 0 10-20-2004 09:45 AM
Wrong Keyboard mapping. mullog *BSD 0 09-22-2004 03:23 PM
IP address to domain name mapping htm Linux - Software 0 06-20-2004 07:16 PM
Wrong monitor settings in XF86config-4 and cant see to fix it meshsmooth Linux - Newbie 4 05-13-2004 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration