LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 10-05-2007, 04:59 AM   #1
sachin1361
Member
 
Registered: Feb 2007
Posts: 126

Rep: Reputation: 15
qmail smtp error


I had installed the qmail-1-03 (Qmailrocks,org) on my RHEL-5 server.I have been facing some SMTP error while telnet to the localhost.Below is the configuration of my Qmail server/files.

When I telnet SMTP to the Localhost, I get an error message saying "Temporary local problem".
When I tenet to the POP3 , it works.

-------------------------------------
[root@pc1 bin]# ./qmail-showctl
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 120.
subdirectory split: 23.
user ids: 504, 505, 506, 0, 507, 508, 509, 510.
group ids: 504, 505.

badmailfrom: (Default.) Any MAIL FROM is allowed.

bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.

bouncehost: (Default.) Bounce host name is pc1.9i.com.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: Remote concurrency is 255.

databytes: (Default.) SMTP DATA limit is 0 bytes.

defaultdomain: Default domain name is 9i.com.

defaulthost: (Default.) Default host name is pc1.9i.com.

doublebouncehost: (Default.) 2B recipient host: pc1.9i.com.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: (Default.) Presumed domain name is pc1.9i.com.

helohost: (Default.) SMTP client HELO host name is pc1.9i.com.

localiphost: (Default.) Local IP address becomes pc1.9i.com.

locals:
Messages for pc1.9i.com are delivered locally.

me: My name is pc1.9i.com.

percenthack: (Default.) The percent hack is not allowed.

plusdomain: Plus domain name is 9i.com.

qmqpservers: (Default.) No QMQP servers.

queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.

rcpthosts:
SMTP clients may send messages to recipients at pc1.9i.com.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: (Default.) SMTP greeting: 220 pc1.9i.com.

smtproutes: (Default.) No artificial SMTP routes.

spfbehavior: (Default.) The SPF behavior is 0.

spfexp: (Default.) The SPF default explanation is: 550 See http://spf.pobox.com/why.html?sender=%{S}&ip=%{I}&receiver=%{xR}.

spfguess: (Default.) The guess SPF rules are: .
spfrules: (Default.) The local SPF rules are: .

timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.

timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.

timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.

virtualdomains: (Default.) No virtual domains.

defaultdelivery: I have no idea what this file does.

concurrencyincoming: I have no idea what this file does.
[root@pc1 bin]#
----------------------

[root@pc1 control]# vi defaultdomain
9i.com

[root@pc1 control]# vi locals
pc1.9i.com

[root@pc1 control]# vi me
pc1.9i.com

[root@pc1 control]# vi rcpthosts
9i.com

[root@pc1 control]# vi /etc/tcp.smtp
127.:allow,RELAYCLIENT=""
192.168.1.:allow,RELAYCLIENT=""

[root@pc1 control]# vi /service/qmail-pop3d/run
#!/bin/sh
PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH
exec tcpserver -H -R -v -c100 0 110 qmail-popup pc1.9i.com /home/vpopmail/bin/vchkpw qmail-pop3d Maildir 2>&1


[root@pc1 control]# vi /service/qmail-smtpd/run
#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
if [ ! -f /var/qmail/control/rcpthosts ]; then
echo "No /var/qmail/control/rcpthosts!"
echo "Refusing to start SMTP listener because it'll create an open relay"
exit 1
fi
exec /usr/local/bin/softlimit -m 30000000 /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd pc1.9i.com /home/vpopmail/bin/vchkpw /usr/bin/true 2>&1
---------------------------
[root@pc1 control]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 pc1.9i.com ESMTP Exim 4.63 Fri, 05 Oct 2007 00:41:38 +0300
ehlo 9i.com
250-pc1.9i.com Hello 9i.com [127.0.0.1]
250-SIZE 52428800
250-PIPELINING
250-STARTTLS
250 HELP
mail from:sachin@9i.com
250 OK
rcpt to:test@9i.com
451 Temporary local problem - please try later

But when i enter username as , say sachin@pc1.9i.com, it works .Means SMTP is accepting only pc1.9i.com.

How can I change this configurationso that Qmail shall start sending mails with only 9i.com?


And another thing, what should be the values in these files (me, rcpthosts,defaultdomaions,locals)if above is the my case.
 
Old 10-05-2007, 07:19 AM   #2
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
You did create or update the /etc/tcp.smtp.cdb right?

Last edited by ghostdancer; 10-05-2007 at 07:23 AM.
 
Old 10-06-2007, 02:18 AM   #3
sachin1361
Member
 
Registered: Feb 2007
Posts: 126

Original Poster
Rep: Reputation: 15
qmail error

/etc/tcp.smtp.cdb file is created .When i ran qmailctl stat command.smtp service status shows 0 seconds which means this service is not starting .

What should be the next step to fix it ?
 
Old 10-06-2007, 04:55 AM   #4
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
To be honest, I am confuse by what you telling us.

First, you told us that your qmail does not accept email if target host or domain is not in its locals/rcpthosts. (This would imply, the qmail-smtpd is running). Now you are telling us, your qmail-smtpd is not running?

I suggest you should start from the beginning, and get some understanding about how qmail works. I recommend http://www.lifewithqmail.org/ (This link is found at the http://www.qmail.org).

By the way, whenever you edit tcp.smtp, you will need to update the tcp.smtp.cdb file again. If you didn't do that, then your changes won't be taken effect.

One more thing, I notice you did not stat any configuration info regarding your log files. You should enable it, you should be able to check the log files to get more clues on what exactly is the cause of problem.

Last edited by ghostdancer; 10-06-2007 at 04:57 AM.
 
Old 10-06-2007, 07:43 AM   #5
sachin1361
Member
 
Registered: Feb 2007
Posts: 126

Original Poster
Rep: Reputation: 15
qmail smtp error

I think everything is messed up with configuration I submitted in the forums.To simply the problem is :

When i restart my Qmail server , and run qmailctl stat command , all services are up except qmail-Smtpd. I had noticed this many times.And when i open the /var/log/qmail/qmail-smtpd/current file ,following message appears in the complete file:

@400000470780b0b853ddc tcpserver:fatal:unable to bind:address already used

And
# qmailctl status
/service/qmail-smtpd:up 0 seconds
/service/qmail-pop3d :up 18293 seconds
and all other services are running up .

How can i check where smtp configuration is mis -edited ?

where should i check and what should i check to see the resolution >
 
Old 10-07-2007, 12:06 PM   #6
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
The log file already give you a hint to the problem. Another task took over the SMTP port. Are you sure sendmail has been turned off?

By the way, the proper way to read the log file is by using tai64nlocal command:

Code:
$> tai64nlocal < current
I think you should spend sometime go through the steps at Life With Qmail, and compare with what you had done.

Setting up qmail is not difficult, but you need to follow the steps properly.
 
  


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
qmail - SMTP No Response inspleak Linux - Software 2 12-08-2004 07:58 AM
qmail smtp-send error log lsimon4180 Linux - Software 5 10-13-2004 11:35 AM
Smtp/run file does not exist error when starting Qmail newlinuxgeek Linux - General 3 03-30-2004 04:53 AM
qmail and smtp ethanchic Linux - Networking 1 04-18-2003 11:36 PM
SMTP Error Qmail madhusurabi Linux - General 1 01-04-2002 02:03 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 04:34 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