Qmail can't sent email..

Dear all,

Need help,please.. I have problem with my Qmail, i was try to make it to be able to do selective relay with tcprules.. i follow this tutorial :

http://www.palomine.net/qmail/selectiverelay.html

but, when i do the last part :

Code:
tcpserver -x/etc/tcp.smtp.cdb -u102 -g101 0 smtp /var/qmail/bin/qmail-smtpd &

it shows error like this :

Code:
ns# tcpserver -x/etc/tcp.smtp.cdb -u1004 -g1003 0 smtp /var/qmail/bin/qmail-smtpd &
[1] 14228
ns# tcpserver: fatal: unable to bind: address already used

[1]    Exit 111                      tcpserver -x/etc/tcp.smtp.cdb -u1004 -g1003 0 smtp /var/qmail/bin/qmail-smtpd

after that, i even can't sent a single mail to my client, even yahoo.com can't..

Anyone have a clue to solve this.. :(
 
It can sent email again, but i still can't activate the selective relay on this Qmail.. Do anyone have a clue?? :(
 
@J65nko

Yes sir, my qmail has be able to sent/receive an email again.. but, i still don't understand what the "note" say, i am sure, that my smtpd script has contain "-x/etc/tcp.smtp.cdb", this is the full rule on my script :

Code:
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \

but, it still doesn't work at all.. :(

Thanks
 
How did you install qmail? Manually or as a FreeBSD port? How is qmail started?

tcpserver works similar as inetd. It monitors a port (here port smtp/25) and after consulting the rules compiled in /etc/tcp.smtp.cdb it decides whether it should run the qmail-smtpd service.

If tcpserver is already running and monitoring port 25 (e.g. because a boot script invoked tcpserver), a second invocation of tcpserver on the same port 25 will fail, because port 25 is already being used by the 'first' tcpserver.
This is the cause of your "tcpserver: fatal: unable to bind: address already used" error.
 
J65nko said:
How did you install qmail? Manually or as a FreeBSD port? How is qmail started?

tcpserver works similar as inetd. It monitors a port (here port smtp/25) and after consulting the rules compiled in /etc/tcp.smtp.cdb it decides whether it should run the qmail-smtpd service.

If tcpserver is already running and monitoring port 25 (e.g. because a boot script invoked tcpserver), a second invocation of tcpserver on the same port 25 will fail, because port 25 is already being used by the 'first' tcpserver.
This is the cause of your "tcpserver: fatal: unable to bind: address already used" error.

I install qmail manually , based on qmailrocks.freebsd.com, and so i am running it, by "qmailctl start/stop/restart"..

hoo.. i see..but, how can i stop tcpserver service? and than what should i do to fix this tcpserver problem..?
 
Back
Top