LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-11-2007, 11:04 AM   #1
vareesh
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Rep: Reputation: 0
postfix configuration


hi all,
this is all about postfix. My distro mandrake 10.1
i am not getting telnet response on port 23.i am sure postfix is running.what shoould i do now ?
pls advice
 
Old 08-11-2007, 11:38 AM   #2
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Postfix (and other mail servers) doesn't listen on port 23, it listens on port 25.
 
Old 08-11-2007, 11:53 AM   #3
vareesh
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by vareesh
hi all,
this is all about postfix. My distro mandrake 10.1
i am not getting telnet response on port 25.i am sure postfix is running.what shoould i do now ?
pls advice

that was mistyped pls ignore it.as i told i am able to connect on port 25 but no banner what should i do ?
 
Old 08-11-2007, 12:13 PM   #4
vareesh
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Original Poster
Rep: Reputation: 0
/var/log/mail/errors log.

Aug 11 22:42:36 server1 postfix/smtpd[29537]: fatal: open database /etc/postfix/
aliases.db: Invalid argument
Aug 11 22:43:37 server1 postfix/smtpd[29574]: fatal: open database /etc/postfix/
aliases.db: Invalid argument
Aug 11 22:44:38 server1 postfix/smtpd[29614]: fatal: open database /etc/postfix/
aliases.db: Invalid argument
[root@server1 root]#

/var/log/mail/warnings log shows,

Aug 11 22:43:38 server1 postfix/master[26410]: warning: /usr/lib/postfix/smtpd:
bad command startup -- throttling
Aug 11 22:44:39 server1 postfix/master[26410]: warning: process /usr/lib/postfix
/smtpd pid 29614 exit status 1
Aug 11 22:44:39 server1 postfix/master[26410]: warning: /usr/lib/postfix/smtpd:
bad command startup -- throttling
Aug 11 22:45:40 server1 postfix/master[26410]: warning: process /usr/lib/postfix
/smtpd pid 29661 exit status 1
Aug 11 22:45:40 server1 postfix/master[26410]: warning: /usr/lib/postfix/smtpd:
bad command startup -- throttling
[root@server1 root]#

[root@server1 root]# telnet 192.168.2.2 25
Trying 192.168.2.2...
Connected to server1.vareesh.linuxhome.org (192.168.2.2).
Escape character is '^]'.


pls advice
 
Old 08-11-2007, 03:24 PM   #5
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
hi,

Now i am getting error:
Aug 12 01:37:09 server1 postfix/smtpd[4358]: fatal: open database /var/lib/mailman/data/aliases.db: No such file or directory
Aug 12 01:38:11 server1 postfix/smtpd[4395]: fatal: open database /var/lib/mailman/data/aliases.db: No such file or directory
Aug 12 01:39:12 server1 postfix/smtpd[4433]: fatal: open database /var/lib/mailman/data/aliases.db: No such file or directory
Aug 12 01:40:13 server1 postfix/smtpd[4477]: fatal: open database /var/lib/mailman/data/aliases.db: No such file or directory
[root@server1 data]# cp /etc/postfix/ali
aliases aliases.db aliases.db.db

any idea about this now ..
as before this error i was getting eror as /etc/postfix/aliases.db: Invalid argument

which has been resolved ...i just added a file aliases.db and done.
 
Old 08-12-2007, 10:42 AM   #6
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Code:
Aug 11 22:42:36 server1 postfix/smtpd[29537]: fatal: open database /etc/postfix/
aliases.db: Invalid argument
Edit your aliases file (might be /etc/aliases or /etc/postfix/aliases) if necessary, and then run newaliases.
 
Old 08-12-2007, 11:06 AM   #7
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
Now i am able to get response by giving telnet on port 25 .
[root@server1 root]# telnet 192.168.2.2 25
Trying 192.168.2.2...
Connected to server1.vareesh.linuxhome.org (192.168.2.2).
Escape character is '^]'.
220 server1.vareesh.linuxhome.org ESMTP Postfix (2.1.4) (Mandrake Linux)
ehlo localhost
250-server1.vareesh.linuxhome.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH GSSAPI
250-AUTH=GSSAPI
250 8BITMIME
mail from:vareesh@vareesh.linuxhome.org
250 Ok
rcpt to:vareesh@vareesh.linuxhome.org
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
test mail
.
250 Ok: queued as F313A102E6
quit
221 Bye
Connection closed by foreign host.
[root@server1 root]#
[root@server1 root]# telnet 192.168.2.2 pop3
Trying 192.168.2.2...
Connected to server1.vareesh.linuxhome.org (192.168.2.2).
Escape character is '^]'.
+OK POP3 server1.vareesh.linuxhome.org 2004.87mdk server ready
user vareesh
+OK User name accepted, password please
pass #password
+OK Mailbox open, 0 messages
quit
+OK Sayonara
Connection closed by foreign host.
[root@server1 root]#


so where is my mail ?
 
Old 08-12-2007, 11:28 AM   #8
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
It's confusing talking to a person using two different accounts.

Quote:
so where is my mail ?
Your mail logs will show which delivery agent did the final delivery, which should give you a good idea where your mail went. Then, you just have to make sure your POP3 server looks for the mail in that place.

Last edited by Berhanie; 08-12-2007 at 11:30 AM.
 
Old 08-12-2007, 11:45 AM   #9
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
i am getting /var/log/mail/info
Aug 12 22:09:05 server1 postfix/smtpd[29795]: connect from server1.vareesh.linuxhome.org[192.168.2.2]
Aug 12 22:09:05 server1 postfix/smtpd[29795]: match_list_match: server1.vareesh.linuxhome.org: no match
Aug 12 22:09:05 server1 postfix/smtpd[29795]: match_list_match: 192.168.2.2: no match
Aug 12 22:09:05 server1 postfix/smtpd[29795]: match_list_match: server1.vareesh.linuxhome.org: no match
Aug 12 22:09:05 server1 postfix/smtpd[29795]: match_list_match: 192.168.2.2: no match
Aug 12 22:09:05 server1 postfix/smtpd[29795]: > server1.vareesh.linuxhome.org[192.168.2.2]: 220 server1.vareesh.linuxhome.org ESMTP Postfix (2.1.4) (Mandrake Linux)
Aug 12 22:09:05 server1 postfix/smtpd[29795]: watchdog_pat: 0x80858c8
nothing in /var/log/mail/errors
 
Old 08-12-2007, 12:01 PM   #10
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
I think you've turn on debugging, which isn't necessary here. Anyway, notice that while submitting your mail test you, postfix gave you its queue id number (highlighted below in bold type):
Code:
354 End data with <CR><LF>.<CR><LF>
test mail
.
250 Ok: queued as F313A102E6
quit
221 Bye
Connection closed by foreign host.
grep your mail logs for that queue id. Toward the end, you should see the logs of the delivery agent. For example, if the local delivery agent was called, you might see a line that looks like this:
Code:
Aug 12 09:24:25 server1 postfix/local[29974]: F313A102E6: to=<vareesh@vareesh.linuxhome.org>, relay=local, delay=18, delays=18/0.02/0/0.1, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail)
This means that the delivery agent was local, but that it in turn called procmail.

Last edited by Berhanie; 08-12-2007 at 12:10 PM.
 
Old 08-12-2007, 12:33 PM   #11
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
Aug 12 23:06:27 server1 postfix/smtpd[32034]: connect from server1.vareesh.linuxhome.org[192.168.2.2]
Aug 12 23:07:22 server1 postfix/smtpd[32034]: 18E16102E6: client=server1.vareesh.linuxhome.org[192.168.2.2]
Aug 12 23:07:31 server1 postfix/cleanup[32107]: 18E16102E6: message-id=<20070812173701.18E16102E6@server1.vareesh.linuxhome.org>
Aug 12 23:07:31 server1 postfix/qmgr[31197]: 18E16102E6: from=<vareesh@vareesh.linuxhome.org>, size=434, nrcpt=1 (queue active)
Aug 12 23:07:32 server1 postfix/local[32114]: 18E16102E6: to=<vareesh@server1.vareesh.linuxhome.org>, orig_to=<vareesh@vareesh.linuxhome.org>, relay=local, delay=31, status=sent (delivered to mailbox)
Aug 12 23:07:32 server1 postfix/qmgr[31197]: 18E16102E6: removed
Aug 12 23:07:35 server1 postfix/smtpd[32034]: disconnect from server1.vareesh.linuxhome.org[192.168.2.2]
[root@server1 /]#
 
Old 08-12-2007, 12:46 PM   #12
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
Aug 12 23:07:32 server1 postfix/local[32114]: 18E16102E6: to=<vareesh@server1.vareesh.linuxhome.org>, orig_to=<vareesh@vareesh.linuxhome.org>, relay=local, delay=31, status=sent (delivered to mailbox)
Ok. This means that your mail is probably in the spool directory (/var/spool/mail/vareesh, or something similar). See if you can find it there. Otherwise, we'll have to check your postfix config.
 
Old 08-12-2007, 12:51 PM   #13
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
ya ./..it is
[root@server1 root]# cat /var/mail/vareesh
[root@server1 root]# cd /var/mail/
[root@server1 mail]# ls
vareesh
[root@server1 mail]# cat /var/mail/vareesh
[root@server1 mail]#

but i am not able to open it ..and a folder Mailbox has been created in vareesh. but it is not opening as well seems it need some kind of athentication .

Last edited by soroccoheaven; 08-12-2007 at 12:55 PM.
 
Old 08-12-2007, 01:01 PM   #14
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Is /var/mail/vareesh a directory? What's the output of "ls -ld /var/mail/vareesh"?

Edit: You also should also post the output of "postconf -n". I have to go, but hopefully, someone else will pickup the thread here. If your mail isn't in /var/mail of /var/spool somewhere (either in mbox or maildir format), it may be in your home directory somewhere. Anyway, good luck.

Last edited by Berhanie; 08-12-2007 at 01:08 PM.
 
Old 08-12-2007, 01:07 PM   #15
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
no ..its a file i mean at /home/vareesh


[root@server1 mail]# cd /var/spool/mail/
[root@server1 mail]# ls
vareesh

[root@server1 mail]# ls -ld /var/mail/vareesh
-rw-rw---- 1 vareesh mail 0 Aug 12 18:04 /var/mail/vareesh
[root@server1 mail]#

Last edited by soroccoheaven; 08-12-2007 at 01:08 PM.
 
  


Reply



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 configuration help. mdpolaris Linux - Software 7 10-06-2006 02:31 AM
postfix configuration jkmartha Linux - Newbie 1 04-22-2005 02:29 AM
Postfix configuration jriis Linux - Software 3 12-19-2003 09:21 AM
PostFix Configuration triki Linux - Software 4 12-14-2003 01:08 PM
postfix configuration argh2005 Linux - Software 3 08-31-2003 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:41 PM.

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