LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-28-2005, 08:51 PM   #1
strongzzj
LQ Newbie
 
Registered: Apr 2005
Posts: 13

Rep: Reputation: 0
how to start postfix ?


I have killed the sendmail and started postfix,
but, I cann't telnet to 25 and 110.
Please help me,,,,thanks..

Last edited by strongzzj; 04-28-2005 at 09:05 PM.
 
Old 04-28-2005, 10:04 PM   #2
Obie
Member
 
Registered: Apr 2004
Distribution: Red Hat
Posts: 290

Rep: Reputation: 30
Did you check if you could telnet whilst running sendmail? How did you start Postfix? How do you know Postfix is running?
 
Old 04-28-2005, 10:41 PM   #3
strongzzj
LQ Newbie
 
Registered: Apr 2005
Posts: 13

Original Poster
Rep: Reputation: 0
sendmail can't also.
use command start postfix: /etc/rc.d/init.d/postfix start
use command check if running:chkconfig --list|grep postfix.

Last edited by strongzzj; 04-28-2005 at 10:51 PM.
 
Old 04-28-2005, 11:32 PM   #4
Obie
Member
 
Registered: Apr 2004
Distribution: Red Hat
Posts: 290

Rep: Reputation: 30
Ok. Did you checked if telnet is blocked by your firewall? e.g. iptables --list
 
Old 04-28-2005, 11:49 PM   #5
strongzzj
LQ Newbie
 
Registered: Apr 2005
Posts: 13

Original Poster
Rep: Reputation: 0
iptables was opened ,now is closed(service iptables stop),lokkit is closed also.but ,I can't telnet.
 
Old 04-29-2005, 12:06 AM   #6
mcalizo
Member
 
Registered: Aug 2003
Location: Manila, Philippines
Distribution: RH
Posts: 43

Rep: Reputation: 15
can you show us the output of your ps -ef ?
 
Old 04-29-2005, 12:44 AM   #7
strongzzj
LQ Newbie
 
Registered: Apr 2005
Posts: 13

Original Poster
Rep: Reputation: 0
OK,
please refer:


[root@mail ~]# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Apr27 ? 00:00:01 init [5]
root 2 1 0 Apr27 ? 00:00:00 [ksoftirqd/0]
root 3 1 0 Apr27 ? 00:00:00 [events/0]
root 4 3 0 Apr27 ? 00:00:00 [khelper]
root 5 3 0 Apr27 ? 00:00:00 [kacpid]
root 20 3 0 Apr27 ? 00:00:00 [kblockd/0]
root 30 3 0 Apr27 ? 00:00:00 [pdflush]
root 31 3 0 Apr27 ? 00:00:00 [pdflush]
root 33 3 0 Apr27 ? 00:00:00 [aio/0]
root 21 1 0 Apr27 ? 00:00:00 [khubd]
root 32 1 0 Apr27 ? 00:00:00 [kswapd0]
root 106 1 0 Apr27 ? 00:00:00 [kseriod]
root 183 1 0 Apr27 ? 00:00:00 [kjournald]
root 1108 1 0 Apr27 ? 00:00:00 udevd
root 1653 1 0 Apr27 ? 00:00:00 [kjournald]
root 1654 1 0 Apr27 ? 00:00:00 [kjournald]
root 1980 1 0 Apr27 ? 00:00:00 syslogd -m 0
root 1984 1 0 Apr27 ? 00:00:00 klogd -x
rpc 2005 1 0 Apr27 ? 00:00:00 portmap
rpcuser 2025 1 0 Apr27 ? 00:00:00 rpc.statd
root 2058 1 0 Apr27 ? 00:00:00 rpc.idmapd
root 2129 1 0 Apr27 ? 00:00:00 nifd -n
nobody 2159 1 0 Apr27 ? 00:00:00 mDNSResponder
root 2171 1 0 Apr27 ? 00:00:00 /usr/sbin/smartd
root 2181 1 0 Apr27 ? 00:00:00 /usr/sbin/acpid
root 2193 1 0 Apr27 ? 00:00:00 cupsd
root 2229 1 0 Apr27 ? 00:00:00 /usr/sbin/sshd
root 2240 1 0 Apr27 ? 00:00:00 xinetd -stayalive -pidfile /var/root 2295 1 0 Apr27 ? 00:00:00 /usr/libexec/postfix/master
postfix 2301 2295 0 Apr27 ? 00:00:00 qmgr -l -t fifo -u
root 2307 1 0 Apr27 ? 00:00:00 gpm -m /dev/input/mice -t imps2
htt 2337 1 0 Apr27 ? 00:00:00 /usr/sbin/htt -retryonerror 0
htt 2338 2337 0 Apr27 ? 00:00:00 htt_server -nodaemon
root 2348 1 0 Apr27 ? 00:00:00 crond
xfs 2376 1 0 Apr27 ? 00:00:00 xfs -droppriv -daemon
root 2386 1 0 Apr27 ? 00:00:00 smbd -D
root 2390 1 0 Apr27 ? 00:00:17 nmbd -D
daemon 2416 1 0 Apr27 ? 00:00:00 /usr/sbin/atd
root 2427 2386 0 Apr27 ? 00:00:00 smbd -D
dbus 2436 1 0 Apr27 ? 00:00:00 dbus-daemon-1 --system
root 2449 1 0 Apr27 ? 00:00:00 cups-config-daemon
root 2460 1 0 Apr27 ? 00:00:41 hald
root 2470 1 0 Apr27 tty1 00:00:00 /sbin/mingetty tty1
root 2489 1 0 Apr27 tty2 00:00:00 /sbin/mingetty tty2
root 2502 1 0 Apr27 tty3 00:00:00 /sbin/mingetty tty3
root 2515 1 0 Apr27 tty4 00:00:00 /sbin/mingetty tty4
root 2528 1 0 Apr27 tty5 00:00:00 /sbin/mingetty tty5
root 2541 1 0 Apr27 tty6 00:00:00 /sbin/mingetty tty6
root 2670 1 0 Apr27 ? 00:00:00 /usr/bin/gdm-binary -nodaemon
root 2923 2670 0 Apr27 ? 00:00:00 /usr/bin/gdm-binary -nodaemon
root 2948 2923 0 Apr27 ? 00:02:21 /usr/X11R6/bin/X :0 -audit 0 -auroot 3104 2923 0 Apr27 ? 00:00:00 /usr/bin/gnome-session
root 3128 1 0 Apr27 ? 00:00:02 /usr/libexec/gconfd-2 13
root 3129 3104 0 Apr27 ? 00:00:00 /bin/bash /etc/X11/xdm/Xsession
root 3134 3129 0 Apr27 ? 00:00:00 httx
root 3135 3134 0 Apr27 ? 00:00:00 htt_xbe
root 3138 1 0 Apr27 ? 00:00:00 /usr/bin/ssh-agent -s
root 3171 1 0 Apr27 ? 00:00:00 /usr/bin/dbus-launch --exit-withroot 3172 1 0 Apr27 ? 00:00:00 dbus-daemon-1 --fork --print-pidroot 3180 1 0 Apr27 ? 00:00:00 /usr/bin/gnome-keyring-daemon
root 3182 1 0 Apr27 ? 00:00:00 /usr/libexec/bonobo-activation-sroot 3184 1 0 Apr27 ? 00:00:00 /usr/libexec/gnome-settings-daemroot 3190 1 0 Apr27 ? 00:00:00 /usr/libexec/gam_server
root 3222 1 0 Apr27 ? 00:00:05 /usr/bin/metacity --sm-client-idroot 3226 1 0 Apr27 ? 00:00:05 gnome-panel --sm-client-id defauroot 3228 1 0 Apr27 ? 00:00:12 nautilus --no-default-window --sroot 3230 1 0 Apr27 ? 00:00:00 gnome-volume-manager --sm-clientroot 3232 1 0 Apr27 ? 00:00:00 eggcups --sm-client-id default5
root 3234 1 0 Apr27 ? 00:00:00 pam-panel-icon --sm-client-id deroot 3237 1 0 Apr27 ? 00:00:00 /usr/libexec/gnome-vfs-daemon --root 3241 1 1 Apr27 ? 00:31:33 /usr/bin/python /usr/bin/rhn-approot 3243 3234 0 Apr27 ? 00:00:00 /sbin/pam_timestamp_check -d rooroot 3250 1 0 Apr27 ? 00:00:00 /usr/libexec/mapping-daemon
root 3252 1 0 Apr27 ? 00:00:03 /usr/libexec/wnck-applet --oaf-aroot 3254 1 0 Apr27 ? 00:00:00 /usr/libexec/mixer_applet2 --oafroot 3256 1 0 Apr27 ? 00:00:04 /usr/libexec/clock-applet --oaf-root 3258 1 0 Apr27 ? 00:00:00 /usr/libexec/notification-area-aroot 3260 1 0 Apr27 ? 00:00:00 /usr/libexec/gnome-im-switcher-aroot 6421 1 0 Apr28 ? 00:00:00 /usr/libexec/evolution-data-servroot 6427 1 0 Apr28 ? 00:00:00 /usr/libexec/evolution/2.0/evoluroot 6456 1 0 Apr28 ? 00:00:01 /usr/bin/spamd --port 7830 --locroot 6458 6456 0 Apr28 ? 00:00:01 spamd child
root 6459 6456 0 Apr28 ? 00:00:02 spamd child
root 6460 6456 0 Apr28 ? 00:00:02 spamd child
root 6461 6456 0 Apr28 ? 00:00:02 spamd child
root 6462 6456 0 Apr28 ? 00:00:00 spamd child
root 7390 1 0 10:06 ? 00:00:00 com.redhat.chinput.status
postfix 7472 2295 0 13:37 ? 00:00:00 pickup -l -t fifo -u
root 7572 1 5 14:25 ? 00:00:00 /usr/bin/gnome-terminal
root 7574 7572 0 14:25 ? 00:00:00 gnome-pty-helper
root 7575 7572 0 14:25 pts/1 00:00:00 bash
root 7592 7575 0 14:25 pts/1 00:00:00 ps -ef
[root@mail ~]# gedit /etc/sevices
[root@mail ~]# ps -ef|grep postfix
root 2295 1 0 Apr27 ? 00:00:00 /usr/libexec/postfix/master
postfix 2301 2295 0 Apr27 ? 00:00:00 qmgr -l -t fifo -u
postfix 7472 2295 0 13:37 ? 00:00:00 pickup -l -t fifo -u
root 7599 7575 0 14:40 pts/1 00:00:00 grep postfix
[root@mail ~]# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Apr27 ? 00:00:01 init [5]
root 2 1 0 Apr27 ? 00:00:00 [ksoftirqd/0]
root 3 1 0 Apr27 ? 00:00:00 [events/0]
root 4 3 0 Apr27 ? 00:00:00 [khelper]
root 5 3 0 Apr27 ? 00:00:00 [kacpid]
root 20 3 0 Apr27 ? 00:00:00 [kblockd/0]
root 30 3 0 Apr27 ? 00:00:00 [pdflush]
root 31 3 0 Apr27 ? 00:00:00 [pdflush]
root 33 3 0 Apr27 ? 00:00:00 [aio/0]
root 21 1 0 Apr27 ? 00:00:00 [khubd]
root 32 1 0 Apr27 ? 00:00:00 [kswapd0]
root 106 1 0 Apr27 ? 00:00:00 [kseriod]
root 183 1 0 Apr27 ? 00:00:00 [kjournald]
root 1108 1 0 Apr27 ? 00:00:00 udevd
root 1653 1 0 Apr27 ? 00:00:00 [kjournald]
root 1654 1 0 Apr27 ? 00:00:00 [kjournald]
root 1980 1 0 Apr27 ? 00:00:00 syslogd -m 0
root 1984 1 0 Apr27 ? 00:00:00 klogd -x
rpc 2005 1 0 Apr27 ? 00:00:00 portmap
rpcuser 2025 1 0 Apr27 ? 00:00:00 rpc.statd
root 2058 1 0 Apr27 ? 00:00:00 rpc.idmapd
root 2129 1 0 Apr27 ? 00:00:00 nifd -n
nobody 2159 1 0 Apr27 ? 00:00:00 mDNSResponder
root 2171 1 0 Apr27 ? 00:00:00 /usr/sbin/smartd
root 2181 1 0 Apr27 ? 00:00:00 /usr/sbin/acpid
root 2193 1 0 Apr27 ? 00:00:00 cupsd
root 2229 1 0 Apr27 ? 00:00:00 /usr/sbin/sshd
root 2240 1 0 Apr27 ? 00:00:00 xinetd -stayalive -pidfile /var/root 2295 1 0 Apr27 ? 00:00:00 /usr/libexec/postfix/master
postfix 2301 2295 0 Apr27 ? 00:00:00 qmgr -l -t fifo -u
root 2307 1 0 Apr27 ? 00:00:00 gpm -m /dev/input/mice -t imps2
htt 2337 1 0 Apr27 ? 00:00:00 /usr/sbin/htt -retryonerror 0
htt 2338 2337 0 Apr27 ? 00:00:00 htt_server -nodaemon
root 2348 1 0 Apr27 ? 00:00:00 crond
xfs 2376 1 0 Apr27 ? 00:00:00 xfs -droppriv -daemon
root 2386 1 0 Apr27 ? 00:00:00 smbd -D
root 2390 1 0 Apr27 ? 00:00:17 nmbd -D
daemon 2416 1 0 Apr27 ? 00:00:00 /usr/sbin/atd
root 2427 2386 0 Apr27 ? 00:00:00 smbd -D
dbus 2436 1 0 Apr27 ? 00:00:00 dbus-daemon-1 --system
root 2449 1 0 Apr27 ? 00:00:00 cups-config-daemon
root 2460 1 0 Apr27 ? 00:00:41 hald
root 2470 1 0 Apr27 tty1 00:00:00 /sbin/mingetty tty1
root 2489 1 0 Apr27 tty2 00:00:00 /sbin/mingetty tty2
root 2502 1 0 Apr27 tty3 00:00:00 /sbin/mingetty tty3
root 2515 1 0 Apr27 tty4 00:00:00 /sbin/mingetty tty4
root 2528 1 0 Apr27 tty5 00:00:00 /sbin/mingetty tty5
root 2541 1 0 Apr27 tty6 00:00:00 /sbin/mingetty tty6
root 2670 1 0 Apr27 ? 00:00:00 /usr/bin/gdm-binary -nodaemon
root 2923 2670 0 Apr27 ? 00:00:00 /usr/bin/gdm-binary -nodaemon
root 2948 2923 0 Apr27 ? 00:02:26 /usr/X11R6/bin/X :0 -audit 0 -auroot 3104 2923 0 Apr27 ? 00:00:00 /usr/bin/gnome-session
root 3128 1 0 Apr27 ? 00:00:02 /usr/libexec/gconfd-2 13
root 3129 3104 0 Apr27 ? 00:00:00 /bin/bash /etc/X11/xdm/Xsession
root 3134 3129 0 Apr27 ? 00:00:00 httx
root 3135 3134 0 Apr27 ? 00:00:00 htt_xbe
root 3138 1 0 Apr27 ? 00:00:00 /usr/bin/ssh-agent -s
root 3171 1 0 Apr27 ? 00:00:00 /usr/bin/dbus-launch --exit-withroot 3172 1 0 Apr27 ? 00:00:00 dbus-daemon-1 --fork --print-pidroot 3180 1 0 Apr27 ? 00:00:00 /usr/bin/gnome-keyring-daemon
root 3182 1 0 Apr27 ? 00:00:00 /usr/libexec/bonobo-activation-sroot 3184 1 0 Apr27 ? 00:00:00 /usr/libexec/gnome-settings-daemroot 3190 1 0 Apr27 ? 00:00:00 /usr/libexec/gam_server
root 3222 1 0 Apr27 ? 00:00:05 /usr/bin/metacity --sm-client-idroot 3226 1 0 Apr27 ? 00:00:05 gnome-panel --sm-client-id defauroot 3228 1 0 Apr27 ? 00:00:12 nautilus --no-default-window --sroot 3230 1 0 Apr27 ? 00:00:00 gnome-volume-manager --sm-clientroot 3232 1 0 Apr27 ? 00:00:00 eggcups --sm-client-id default5
root 3234 1 0 Apr27 ? 00:00:00 pam-panel-icon --sm-client-id deroot 3237 1 0 Apr27 ? 00:00:00 /usr/libexec/gnome-vfs-daemon --root 3241 1 1 Apr27 ? 00:31:33 /usr/bin/python /usr/bin/rhn-approot 3243 3234 0 Apr27 ? 00:00:00 /sbin/pam_timestamp_check -d rooroot 3250 1 0 Apr27 ? 00:00:00 /usr/libexec/mapping-daemon
root 3252 1 0 Apr27 ? 00:00:04 /usr/libexec/wnck-applet --oaf-aroot 3254 1 0 Apr27 ? 00:00:00 /usr/libexec/mixer_applet2 --oafroot 3256 1 0 Apr27 ? 00:00:04 /usr/libexec/clock-applet --oaf-root 3258 1 0 Apr27 ? 00:00:00 /usr/libexec/notification-area-aroot 3260 1 0 Apr27 ? 00:00:00 /usr/libexec/gnome-im-switcher-aroot 6421 1 0 Apr28 ? 00:00:00 /usr/libexec/evolution-data-servroot 6427 1 0 Apr28 ? 00:00:00 /usr/libexec/evolution/2.0/evoluroot 6456 1 0 Apr28 ? 00:00:01 /usr/bin/spamd --port 7830 --locroot 6458 6456 0 Apr28 ? 00:00:01 spamd child
root 6459 6456 0 Apr28 ? 00:00:02 spamd child
root 6460 6456 0 Apr28 ? 00:00:02 spamd child
root 6461 6456 0 Apr28 ? 00:00:02 spamd child
root 6462 6456 0 Apr28 ? 00:00:00 spamd child
root 7390 1 0 10:06 ? 00:00:00 com.redhat.chinput.status
postfix 7472 2295 0 13:37 ? 00:00:00 pickup -l -t fifo -u
root 7572 1 0 14:25 ? 00:00:02 /usr/bin/gnome-terminal
root 7574 7572 0 14:25 ? 00:00:00 gnome-pty-helper
root 7575 7572 0 14:25 pts/1 00:00:00 bash
root 7600 7575 0 14:40 pts/1 00:00:00 ps -ef
[root@mail ~]#
 
Old 04-29-2005, 01:28 AM   #8
BinaryBob
Member
 
Registered: Aug 2002
Posts: 117

Rep: Reputation: 15
something useful:
The netstat command will show you which ports your computer is trying to listen on.
Code:
netstat -l -n
Then just look for :25 and :110
 
Old 04-29-2005, 01:51 AM   #9
strongzzj
LQ Newbie
 
Registered: Apr 2005
Posts: 13

Original Poster
Rep: Reputation: 0
the port 25 is listening.
we must be telnet to 25 if everything was well.
 
Old 04-29-2005, 02:02 AM   #10
Obie
Member
 
Registered: Apr 2004
Distribution: Red Hat
Posts: 290

Rep: Reputation: 30
can you telnet into your ISP's mail server?
Another thing are you trying to telnet to the same machine that runs Postfix?
 
Old 04-29-2005, 02:18 AM   #11
strongzzj
LQ Newbie
 
Registered: Apr 2005
Posts: 13

Original Poster
Rep: Reputation: 0
I can telnet into others mailserver that runs MDaenon.
I only have one postfix server .

Last edited by strongzzj; 04-29-2005 at 02:24 AM.
 
Old 04-29-2005, 02:44 AM   #12
BinaryBob
Member
 
Registered: Aug 2002
Posts: 117

Rep: Reputation: 15
Let's see the output of:
Code:
iptables --list -v
(Please look through it a bit first, it may contain data you consider sensative)
 
Old 04-29-2005, 02:56 AM   #13
strongzzj
LQ Newbie
 
Registered: Apr 2005
Posts: 13

Original Poster
Rep: Reputation: 0
It is......

[root@mail ~]# iptables --list -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
[root@mail ~]#


P.S: Iptables has been stopped.

Last edited by strongzzj; 04-29-2005 at 02:58 AM.
 
Old 04-29-2005, 03:15 AM   #14
BinaryBob
Member
 
Registered: Aug 2002
Posts: 117

Rep: Reputation: 15
Ah, forogt that tid bit, ok not a firewall issue.

I haven't configured postfix before, but lets take a look at the config file maybe. There could be some things there.

I looked at: http://www.postfix.org/basic.html

and found this

Quote:
What clients to relay mail for
By default, Postfix will relay mail for clients in authorized networks.

Authorized client networks are defined by the mynetworks parameter. The default is to authorize all clients in the IP subnetworks that the local machine is attached to.
Are the machines you are telnetting from/to in the same subnet ?

*shrug* Longshot...
 
Old 04-29-2005, 03:37 AM   #15
strongzzj
LQ Newbie
 
Registered: Apr 2005
Posts: 13

Original Poster
Rep: Reputation: 0
yes, in the same subnet.
oh ,what happen
 
  


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
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 4 07-11-2005 09:12 PM
postfix won't start mikeghet Linux - Networking 2 05-13-2005 06:07 AM
can't start postfix ./postfix status error jules_fraser Linux - Software 3 12-06-2003 06:33 PM
can't start/stop Postfix/External mail JM_Fraser Linux - Newbie 5 11-26-2003 02:47 PM
can't start/stop postfix/external mail JM_Fraser Linux - Networking 0 11-25-2003 03:01 PM


All times are GMT -5. The time now is 05:00 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration