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.