Re: Running qmail

2005-12-20 Thread Gojyo
I manually started qmail-smtp.
However, even if it's running, it doesn't listen on any socket.

I think I'm missing something, but what?
Is there some other thing that should I do?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Running qmail

2005-12-20 Thread Giorgos Keramidas
On 2005-12-20 12:01, Gojyo [EMAIL PROTECTED] wrote:
 I manually started qmail-smtp.
 However, even if it's running, it doesn't listen on any socket.

Please quote the original message when you reply.  I usually reply to
50-100 messages every day and this does *not* include the work-related
email traffic I get.  It so happens, mostly because of my aversion to
qmail, that I remember the original post, but you can't expect everyone
to remember everything about the original post without any sort of
context.

How did you start qmail-smtpd?  It's not supposed to work just by
running the binary as root.  The qmail documentation explains how you
can start it with tcpserver, for example.

 I think I'm missing something, but what?
 Is there some other thing that should I do?

Yes, you are indeed missing something.  The best way to find out what
you are missing is to read carefully the qmail installation guide or one
of the dozens of online tutorials about setting up qmail, i.e.:

  http://www.lifewithqmail.org/

Your question is answered in the qmail FAQ too:

  http://cr.yp.to/qmail/faq.html
  http://cr.yp.to/qmail/faq/servers.html#tcpserver-smtpd

I hope this helps,

- Giorgos

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Running qmail

2005-12-20 Thread Svein Halvor Halvorsen
On 12/20/05, Gojyo [EMAIL PROTECTED] wrote:
 I manually started qmail-smtp.
 However, even if it's running, it doesn't listen on any socket.

 I think I'm missing something, but what?
 Is there some other thing that should I do?

I don't think qmail-smtpd is listening on any socket, but rather on on
stdin. So you could start qmail-smtpd from the command line and start
typing your SMTP session.

The normal way to run qmail-smtd is by way of tcpserver. This program
will listen on any socket and start any program on connect and
redirect the connection to the server's stdin, although inetd should
work also.

Se: http://cr.yp.to/qmail/faq/servers.html#tcpserver-smtpd
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Running qmail

2005-12-19 Thread Gojyo
Hi,
it seems that I have a issue with qmail itself.
Now I'm trying running it without daemontools (I can configure them later,
and, as Svein Halvor said, qmail should run as well without).
Now, /usr/local/etc/rc.d/qmail links correctly to /var/qmail/rc, which is a
copy of /var/qmail/boot/maildir.
At boot, the script is executed, and ps -A|grep qmail returns me this:

485 con- I  0:00.04 qmail-send
  501 con- I  0:00.01 splogger qmail
  502 con- I  0:00.01 qmail-lspawn ./Maildir/
  503 con- I  0:00.01 qmail-rspawn
  504 con- I  0:00.01 qmail-clean
  606  p0  S+ 0:00.01 grep qmail

However, no service is listening on port 25, as sockstat -4l tells me.
I've tryed using the others /var/qmail/boot scripts, but it's the same.

Talking about logs, the messages log shows me nothing related, while
maiilog prints this line when I start the script:
1134993056.844518 status: local 0/10 remote 0/20

trying to telnetl localhost on port 25 refuses the connection.
I think is a qmail related problem (and not, say, firewall related), since I
have other services running whithout problems, like Samba and OpenSSH.
Any idea?
Thanks again!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Running qmail

2005-12-19 Thread Giorgos Keramidas
On 2005-12-19 11:54, Gojyo [EMAIL PROTECTED] wrote:
 Hi,
 it seems that I have a issue with qmail itself.
 Now I'm trying running it without daemontools (I can configure them later,
 and, as Svein Halvor said, qmail should run as well without).
 Now, /usr/local/etc/rc.d/qmail links correctly to /var/qmail/rc, which is a
 copy of /var/qmail/boot/maildir.
 At boot, the script is executed, and ps -A|grep qmail returns me this:

 485 con- I  0:00.04 qmail-send
   501 con- I  0:00.01 splogger qmail
   502 con- I  0:00.01 qmail-lspawn ./Maildir/
   503 con- I  0:00.01 qmail-rspawn
   504 con- I  0:00.01 qmail-clean
   606  p0  S+ 0:00.01 grep qmail

 However, no service is listening on port 25, as sockstat -4l tells me.
 I've tryed using the others /var/qmail/boot scripts, but it's the same.

That's because qmail-smtpd hasn't started.

You have to do that separately from qmail-lspawn and qmail-rspawn.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Running qmail

2005-12-18 Thread Michael P. Soulier
On 12/18/05, Gojyo [EMAIL PROTECTED] wrote:
 I've disabled sendmail running the enable-qmail script after qmail
 installation (and I can see it's not running), I've copied the maildir
 start script from /var/qmail/boot to /var/qmail/rc and added
 qmail_enable=YES to /etc/rc.conf.
 Now I can't exactly understand what I have to do: I think I have to run
 qmail from the svscan service, but I really cannot figure out how to do it.
 I need some help

I don't know how qmail is set up on BSD, but if you're using
daemontools, bringing qmail up should be as simple as svc -u service
directory. Check its current status with svscan service directory.

Mike
--
Michael P. Soulier [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Running qmail

2005-12-18 Thread Shantanoo Mahajan
+++ Michael P. Soulier [freebsd] [18-12-05 14:39 -0500]:
| On 12/18/05, Gojyo [EMAIL PROTECTED] wrote:
|  I've disabled sendmail running the enable-qmail script after qmail
|  installation (and I can see it's not running), I've copied the maildir
|  start script from /var/qmail/boot to /var/qmail/rc and added
|  qmail_enable=YES to /etc/rc.conf.
|  Now I can't exactly understand what I have to do: I think I have to run
|  qmail from the svscan service, but I really cannot figure out how to do it.
|  I need some help
| 
| I don't know how qmail is set up on BSD, but if you're using
| daemontools, bringing qmail up should be as simple as svc -u service
| directory. Check its current status with svscan service directory.

sockstat -4l | grep 25

will tell you what is running on port 25 (default smtp port).
Also /var/log/maillog maybe be useful along with /var/log/messages.

Daemontools can be found out by:

cd /usr/ports  make search name=daemontools

if you have installed ports tree. When I tried, I didn't have
installation problem. It was very smooth through ports. It took time
for me to configure it.

Regards,
Shantanoo
-- 


pgpWm6LXwamOb.pgp
Description: PGP signature


Re: Running qmail

2005-12-18 Thread Svein Halvor Halvorsen
On 12/18/05, Gojyo [EMAIL PROTECTED] wrote:
 I've some problem making qmail work.
 I've installed qmail (with smtp auth support), ucspi-tcp and daemontools
 from the ports tree (I'm using Freebsd 6.0).

 I've disabled sendmail running the enable-qmail script after qmail
 installation (and I can see it's not running), I've copied the maildir
 start script from /var/qmail/boot to /var/qmail/rc and added
 qmail_enable=YES to /etc/rc.conf.
 Now I can't exactly understand what I have to do: I think I have to run
 qmail from the svscan service, but I really cannot figure out how to do it.
 I need some help

You shouldn't need daemontools and the svscan utility (though it is
useful for a number of reasons). The qmail port should have installed
a symlink in /usr/local/etc/rc.d/qmail.sh pointing to /var/qmail/rc.
This link is broken by default, but by moving or copying a file from
the /var/qmail/boot directory to this location, the link should
resolve and the script executed at startup. The scripts are non-rcng
so you shouldn't need anything in /etc/rc.conf to make things work.
You may need to edit the startup script /var/qmail/rc though.

I would, however, recomend that you install daemontools also. This
would require a little more initial work on your part, but is far
easier to maintain, and makes sure that qmail keep running.

Svein Halvor
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]