Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QMAIL Not sending remotely

Status
Not open for further replies.
Jan 17, 2005
16
US
I am pretty good with unix in many different flavors. However I am used to sendmail and not qmail. If I can't get this stuff to work I am going to switch back to sendmail because I know I can make it work.

My problem is that I can connect remotely to incoming, outgoing mail servers but it won't send a message. No response from server is what I get.

I have my server configured for 4 different virtual hosts but I can't get any of them to work.

The following information is provided.

output from qmail-showctl
---------------------------------------------------------------------
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 120.
subdirectory split: 23.
user ids: 1003, 1002, 1004, 0, 1005, 1006, 1007, 1008.
group ids: 1002, 1003.

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

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

bouncehost: (Default.) Bounce host name is vh51.ipowerweb.com.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: (Default.) Remote concurrency is 20.

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

defaultdomain: Default domain name is ipowerweb.com.

defaulthost: (Default.) Default host name is vh51.ipowerweb.com.

doublebouncehost: (Default.) 2B recipient host: vh51.ipowerweb.com.

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

envnoathost: (Default.) Presumed domain name is vh51.ipowerweb.com.

helohost: (Default.) SMTP client HELO host name is vh51.ipowerweb.com.

idhost: (Default.) Message-ID host name is vh51.ipowerweb.com.

localiphost: (Default.) Local IP address becomes vh51.ipowerweb.com.

locals:

me: My name is vh51.ipowerweb.com.

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

plusdomain: Plus domain name is ipowerweb.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 rocketcommerce.com.
SMTP clients may send messages to recipients at rocketcarts.com.
SMTP clients may send messages to recipients at centricdesigns.com.
SMTP clients may send messages to recipients at easystoresolutions.com.
SMTP clients may send messages to recipients at cpanel.rocketcommerce.com.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: (Default.) SMTP greeting: 220 vh51.ipowerweb.com.

smtproutes: (Default.) No artificial SMTP routes.

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:
Virtual domain: rocketcommerce.com:commercepfx
Virtual domain: rocketcarts.com:cartspfx
Virtual domain: centricdesigns.com:centricpfx
Virtual domain: easystoresolutions.com:easystorpfx
Virtual domain: cpanel.rocketcommerce.com:controlpfx

defaultdelivery: I have no idea what this file does.

concurrencyincoming: I have no idea what this file does.
---------------------------------------------------------------------

=====================================================================
output from qmailctl stat
---------------------------------------------------------------------
/service/qmail-send: up (pid 16808) 61515 seconds
/service/qmail-send/log: up (pid 18399) 71339 seconds
/service/qmail-smtpd: up (pid 15525) 71862 seconds
/service/qmail-smtpd/log: up (pid 33464) 1 seconds
messages in queue: 1
messages in queue but not yet preprocessed: 0
=====================================================================

I can't see where the problem is, and I have probably been looking at this issue way to long because it is starting to not make any sense to me.

Can Someone point me in the right direction?

Thanks in advance for your help!

 
The following information is provided.

/var/qmail/supervise/qmail-smtpd/run
----------------------------------------------------------------------
#!/bin/sh

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
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 2000000 \
/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 2>&1
----------------------------------------------------------------------



tcp.smtp File
----------------------------------------------------------------------
127.:allow,RELAYCLIENT=""
----------------------------------------------------------------------

 
Couple of comments:

1) It is a common pitfall to not allow smtpd enough memory to operate. Your line
Code:
exec /usr/local/bin/softlimit -m 2000000 \
should probably use a value nearer to 6000000 just to be sure that it doesn't fall down later. Your 'qmailctl stat' reveals that this is not the problem.

I think you also need to add the line
:allow
to the end of the tcp.smtp file and re-run "qmailctl cdb".
If memory serves, you are only allowing 127./8 to connect to your smtpd by the existing tcp.smtp definition.



Hosting Solutions for Home or Business.
 
Great, I added those items, however same issue. I am wondering if has to do with how my virtual domains and aliases are setup.

I have no idea.

You know they say QMAIL is an out of the box easily configured program but I am not getting anywhere fast.

I am wondering if there is anything else I can check out?

Thanks again for your help...

Kevin
 
Maybe i need to see something from your qmail logs.... I am not able to visualize your problem....

/var/log/qmail/smtpd/current...

post some samples here

Hosting Solutions for Home or Business.
 
output from tail -10 /var/log/qmail/smtpd/current
-------------------------------------------------------------------

@4000000041eb8cdd29e2ffe4 tcpserver: fatal: unable to bind: address already used
@4000000041eb8cde2baccf1c tcpserver: fatal: unable to bind: address already used
@4000000041eb8cdf2d79f5cc tcpserver: fatal: unable to bind: address already used
@4000000041eb8ce02f4088e4 tcpserver: fatal: unable to bind: address already used
@4000000041eb8ce1310c28f4 tcpserver: fatal: unable to bind: address already used
@4000000041eb8ce232d3f48c tcpserver: fatal: unable to bind: address already used
@4000000041eb8ce334a614ac tcpserver: fatal: unable to bind: address already used
@4000000041eb8ce4367bf5bc tcpserver: fatal: unable to bind: address already used
@4000000041eb8ce53836fbcc tcpserver: fatal: unable to bind: address already used
@4000000041eb8ce639fe13b4 tcpserver: fatal: unable to bind: address already used

--------------------------------------------------------------------

All the lines are the same.

Obvoiusly I have a problem there, and I tried to fix that but nothing out of the ordinary.

The following is provided:

output of ps -waux | grep qmail
--------------------------------------------------------------------

root 62968 0.0 0.1 1072 592 p1 S+ 3:41AM 0:00.00 grep qmail
qmails 62959 0.0 0.0 0 0 ?? Z 3:41AM 0:00.00 (qmail-send)
qmaill 62966 0.0 0.0 0 0 ?? Z 3:41AM 0:00.00 (multilog)
root 48488 0.0 0.0 876 208 ?? S 27Dec04 0:00.15 supervise qmail-unixserver
root 48490 0.0 0.0 876 208 ?? S 27Dec04 0:14.07 supervise qmail-pop3d
qmaill 48492 0.0 0.0 896 268 ?? I 27Dec04 0:14.77 /usr/local/bin/multilog t /var/log/qmail
qmaill 48495 0.0 0.0 896 196 ?? I 27Dec04 0:00.00 /usr/local/bin/multilog t /var/log/qmail/vmailmgrd
qmaill 48497 0.0 0.0 896 216 ?? I 27Dec04 0:00.02 /usr/local/bin/multilog t /var/log/qmail/pop3d
root 15255 0.0 0.0 876 360 ?? S Mon10AM 0:00.07 supervise qmail-smtpd
qmaill 15478 0.0 0.0 884 336 ?? I Mon10AM 0:00.00 /usr/local/bin/multilog t /var/log/qmail/smtpd
qmails 67093 0.0 0.1 952 500 ?? S 6:45PM 0:00.09 qmail-send
root 67095 0.0 0.0 896 412 ?? S 6:45PM 0:00.02 qmail-lspawn ./Mailbox
qmailr 67096 0.0 0.0 896 456 ?? S 6:45PM 0:00.02 qmail-rspawn
qmailq 67097 0.0 0.0 884 384 ?? I 6:45PM 0:00.01 qmail-clean
root 67147 0.0 0.0 876 356 ?? S 6:45PM 0:26.05 supervise qmail-send
qmaill 46997 0.0 0.0 896 388 ?? S 10:53PM 0:01.25 /usr/local/bin/multilog t /var/log/qmail
qmaild 47001 0.0 0.1 920 520 ?? I 10:53PM 0:00.01 /usr/local/bin/tcpserver -v -R -l rocketcommerce.com -x /etc/tcp.smtp
---------------------------------------------------------------------

output of netstat -a | grep smtp
---------------------------------------------------------------------
tcp4 0 0 rocketcommerce.smtp *.* LISTEN
---------------------------------------------------------------------
 
Code:
fatal: unable to bind: address already used
implies that another service (sendmail, postfix, exim) is using port :25

what do you get from command

lsof -Pni | grep -i :25



Hosting Solutions for Home or Business.
 
Okay don't have lsof on my system so I am going to get it installed. Not any luck yet but should have it done soon. If there is another command on FreeBsd that I can check that let me know.

Thanks,
 
You know what, Don't worry about anything further, I am going to go with another solution, this is way too much trouble.

Every step of the way has been a problem. I will just go with what I know.

Thanks for your help and quick responses.

 
Actually I am getting nothing from that command you requested. So I don't know if lsof is working right or I have nothing binding to that port.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top