Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to set up an e-mail server with qmail but I have some trouble.
I followed the steps in the book "Life with qmail", I downloaded and installed ucspi-tcp and daemontools and I created all the mentioned scripts but I can't start qmail-smtpd, all the other daemons work.
This is my /var/qmail/supervise/qmail-smtpd/run script:
#!/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
Do you see something wrong?
Watching the log file of qmail-smtpd I found this:
@400000003eddff3436aba4c4 tcpserver: fatal: unable to figure out port number for -u
All the lines are like this, differing only in the date field.
Does anybody know what this means and how can I solve it?
If I am going to use POP3 and IMAP accounts is smtpd necessary?
I don't know much about Linux or e-mail servers, please help me!
Thanks in advance! (English)
Muchas gracias de antemano! (Spanish)
@400000003eddff3436aba4c4 tcpserver: fatal: unable to figure out port number for -u
Tcpserver is missing an argument, so it's thinking "-u" will supply it with a port number.
If you start it as "sh -x /var/qmail/supervise/qmail-smtpd/run" and look for the tcpserver line, you should see all the variables expanded tcpserver is started with.
Then check the tcpserver manual and for each argument check if it gives you the right value or values.
It was postfix that was runnig. I stopped it and qmail-smtpd runs again.
Strange thing, I didn't check Mail & News packages during installation.
Anyway, what configuration file tells Linux what services must run at startup?
I stopped postfix from the Mandrake Control Center, but I'd like to know what file is responsible for loading/unloading services to do it manually.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.