#1  
Old 30th March 2006, 23:46
z.y z.y is offline
Junior Member
 
Join Date: Mar 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Question smtp problem

I installed FC4 as a mail server. Then I used Outlook to test it. The POP3 (incoming email) was passed, however, the outgoing (SMTP, port 25) failed. I got the error message:
The TCP/IP connection was unexpectedly terminated by the server.(server: '192.168.2.214', Error Number 0x800ccc0f).

I checked the server using nmap localhost, I got the following output:
Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2006-03-30 16:36 EST
Interesting ports on mail1.avensys.ca (127.0.0.1):
(The 1652 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
80/tcp open http
110/tcp open pop3
111/tcp open rpcbind
143/tcp open imap
443/tcp open https
993/tcp open imaps
995/tcp open pop3s
3306/tcp open mysql

It seems that smtp port 25 is open.

I also use netstat -tap to get the following result:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 1767/xinetd
tcp 0 0 *op3s *:* LISTEN 1767/xinetd
tcp 0 0 *:mysql *:* LISTEN 1870/mysqld
tcp 0 0 *op3 *:* LISTEN 1767/xinetd
tcp 0 0 *:imap *:* LISTEN 1767/xinetd
tcp 0 0 *:sunrpc *:* LISTEN 1554/portmap
tcp 0 0 *:ftp *:* LISTEN 1946/proftpd: (acce
tcp 0 0 192.168.2.214:5335 *:* LISTEN 1720/mDNSResponder
tcp 0 0 192.168.2.214:smtp *:* LISTEN 1937/master
tcp 0 0 *:http *:* LISTEN 1962/httpd
tcp 0 0 *:ssh *:* LISTEN 1759/sshd
tcp 0 0 *:https *:* LISTEN 1962/httpd
tcp 0 144 ::ffff:192.168.2.214:ssh ::ffff:192.168.2.40:4817 ESTABLISHED 2647/0

I saw smtp was listening.
What's wrong with me? Any suggestion?
Thanks a lot.
Reply With Quote
Sponsored Links
  #2  
Old 31st March 2006, 09:15
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,394
Thanks: 833
Thanked 5,488 Times in 4,320 Posts
Default

Did you get any errors in your mail log?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 31st March 2006, 17:08
z.y z.y is offline
Junior Member
 
Join Date: Mar 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Angry

The mail log in /var/log/maillog likes this:

Mar 30 11:17:09 mail1 postfix/smtpd[10183]: connect from mail1.avensys.ca[127.0.0.1]
Mar 30 11:17:09 mail1 ipop3d[10185]: pop3 service init from 192.168.2.40
Mar 30 11:17:09 mail1 ipop3d[10185]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Mar 30 11:17:09 mail1 ipop3d[10185]: Login user=zyan host=[192.168.2.40] nmsgs=0/0
Mar 30 11:17:09 mail1 ipop3d[10185]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Mar 30 11:17:09 mail1 ipop3d[10185]: Logout user=zyan host=[192.168.2.40] nmsgs=0 ndele=0
Mar 30 11:17:27 mail1 postfix/smtpd[10183]: disconnect from mail1.avensys.ca[127.0.0.1]
Mar 30 11:20:22 mail1 ipop3d[10199]: pop3 service init from 192.168.2.76
Mar 30 11:20:22 mail1 ipop3d[10199]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Mar 30 11:20:22 mail1 ipop3d[10199]: Login user=zyan host=[192.168.2.76] nmsgs=0/0

What does the 'Mailbox vulnerable - directory /var/spool/mail must have 1777 protection' mean?

Thanks.
Reply With Quote
  #4  
Old 31st March 2006, 17:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Please run
Code:
chmod 1777 /var/spool/mail
However, this does not affect your sending problem. Can you post a log excerpt from when you try to send a mail?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 31st March 2006, 18:53
z.y z.y is offline
Junior Member
 
Join Date: Mar 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Angry

Quote:
Originally Posted by falko
However, this does not affect your sending problem. Can you post a log excerpt from when you try to send a mail?
I can deliver mail within local machine. For example, use command line:
[root@mail1 ~]# mail paul
the account paul can receive the test mail. I can see this in maillog file:

Mar 23 09:37:15 mail1 postfix/pickup[13761]: 19004290F9B: uid=500 from=<zyan>
Mar 23 09:37:15 mail1 postfix/cleanup[13841]: 19004290F9B: message-id=<20060323143715.19004290F9B@mail1.avensys.ca>
Mar 23 09:37:15 mail1 postfix/qmgr[1945]: 19004290F9B: from=<zyan@mail1.avensys.ca>, size=307, nrcpt=1 (queue active)
Mar 23 09:37:15 mail1 postfix/local[13843]: 19004290F9B: to=<paul@mail1.avensys.ca>, orig_to=<paul>, relay=local, delay=0, status=sent (delivered to mailbox)
Mar 23 09:37:15 mail1 postfix/qmgr[1945]: 19004290F9B: removed

I just found some errors in the /var/log/maillog file, but only occurred from yesterday:
Mar 31 01:38:43 mail1 postfix/qmgr[3015]: 38838290F9B: from=<root@mail1.avensys.ca>, size=295, nrcpt=1 (queue active)
Mar 31 01:38:43 mail1 postfix/smtp[5895]: fatal: unknown service: smtp/tcp
Mar 31 01:38:44 mail1 postfix/qmgr[3015]: warning: premature end-of-input on private/smtp socket while reading input attribute name
Mar 31 01:38:44 mail1 postfix/qmgr[3015]: warning: private/smtp socket: malformed response
Mar 31 01:38:44 mail1 postfix/qmgr[3015]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Mar 31 01:38:44 mail1 postfix/master[1937]: warning: process /usr/libexec/postfix/smtp pid 5895 exit status 1
Mar 31 01:38:44 mail1 postfix/master[1937]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling

How to solve it?
Reply With Quote
  #6  
Old 1st April 2006, 12:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by z.y
Mar 31 01:38:43 mail1 postfix/smtp[5895]: fatal: unknown service: smtp/tcp
Mar 31 01:38:44 mail1 postfix/qmgr[3015]: warning: premature end-of-input on private/smtp socket while reading input attribute name
Please post your /etc/postfix/master.cf and the output of
Code:
grep -i smtp /etc/services
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 3rd April 2006, 15:01
z.y z.y is offline
Junior Member
 
Join Date: Mar 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Please post your /etc/postfix/master.cf and the output of
Code:
grep -i smtp /etc/services
This is the output:
Quote:
[root@mail1 ~]# grep -i smtp /etc/services
smtp 25/tcp mail
smtp 25/udp mail
smtps 465/tcp # SMTP over SSL (TLS).
Bellow is /etc/postfix/master.cf
Code:
[root@mail1 postfix]# cat master.cf
#
# Postfix master process configuration file.  For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       y       -       -       smtpd
#submission inet n      -       n       -       -       smtpd
#       -o smtpd_etrn_restrictions=reject
#       -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps    inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission   inet    n       -       n       -       -       smtpd
#  -o smtpd_etrn_restrictions=reject
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       y       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
        -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
[root@mail1 postfix]#
Thanks again.
Reply With Quote
  #8  
Old 3rd April 2006, 20:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Looks ok...
What's the output of
Code:
ls -la /usr/lib/postfix
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 4th April 2006, 14:53
z.y z.y is offline
Junior Member
 
Join Date: Mar 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Looks ok...
What's the output of
Code:
ls -la /usr/lib/postfix
No such file on my machine.
I issued command: find / -name postfix -print
the ouptput:
Quote:
[root@mail1 ~]# find / -name postfix -print
/usr/share/logwatch/scripts/services/postfix
/usr/sbin/postfix
/usr/libexec/postfix
/etc/postfix
/etc/rc.d/init.d/postfix
/var/spool/postfix
/var/lock/subsys/postfix
Something wrong with my system files?
Reply With Quote
  #10  
Old 4th April 2006, 15:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
 
Default

What's the output of
Code:
ls -la /usr/libexec/postfix
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP bluegrass Installation/Configuration 24 8th March 2006 01:41
SMTP Auth problem maxx General 12 1st February 2006 02:48
Suse Postfix + Dovecot + ISP Config + smtp Auth; recieving problem! fatum112 HOWTO-Related Questions 2 15th January 2006 19:03
SMTP TLS Problem with Mail Client dschmid Installation/Configuration 1 9th December 2005 01:56
SMTP Problem dorutz Installation/Configuration 6 9th November 2005 15:47


All times are GMT +2. The time now is 18:11.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.