Ok it's done, this is how i did :

------------------------------------- BEGIN
dev:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
dev:~# PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
dev:~# echo $PATH
/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
dev:~# apt-get --reinstall install sendmail-bin
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
0 mis à jour, 0 nouvellement installé, 1 réinstallé, 0 à enlever et 1 non
mis à jour
.
2 partiellement installé ou enlevé.
Il est nécessaire de prendre 0o dans les archives.
Aprés dépaquetage, 0o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer [O/n]?
Paramétrage de sendmail-bin (8.13.8-3) ...
Saving old /etc/mail/sendmail.cf as /etc/mail/sendmail.cf.old ...
Stopping Mail Transport Agent: sendmail.
Updating sendmail environment ...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Could not open /etc/mail/databases(Aucun fichier ou répertoire de ce type),
creat
ing it.
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...

Checking filesystem, this may take some time - it will not hang!
 ...   Done.

Checking for installed MDAs...
sasl2-bin not installed, not configuring sendmail support.

To enable sendmail SASL2 support at a later date, invoke
"/usr/share/sendmail/up
date_auth"


Creating/Updating SSL(for TLS) information
Creating /etc/mail/tls/starttls.m4...
You already have sendmail certificates


*** *** *** WARNING *** WARNING *** WARNING *** WARNING *** *** ***

Everything you need to support STARTTLS (encrypted mail transmission
and user authentication via certificates) is installed and configured
but *IS* not being used.

To enable sendmail to use STARTTLS, you need to:
1) Add this line to /etc/mail/sendmail.mc and optionally
  to /etc/mail/submit.mc:
 include(`/etc/mail/tls/starttls.m4')dnl
2) Run sendmailconfig
3) Restart sendmail

Checking {sendmail,submit}.mc and related databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/Makefile...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Disabling HOST statistics file(/var/lib/sendmail/host_status).
Creating /etc/mail/sendmail.cf...
*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR:
FEA
TURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR:
FEATURE
() should be before MAILER()

Creating /etc/mail/submit.cf...
Informational: confCT_FILE file empty: /etc/mail/trusted-users
Updating /etc/mail/access...
Updating /etc/mail/aliases...
/etc/mail/aliases: 13 aliases, longest 28 bytes, 175 bytes total

Warning: These messages were issued while creating sendmail.cf
       make sure they are benign before starting sendmail!

Errors in generating sendmail.cf
*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR:
FEA
TURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR:
FEATURE
() should be before MAILER()

Starting Mail Transport Agent: sendmail.

Paramérage de sensible-mda (8.13.8-3) ...
dev:~#
------------------------------------- END

* Is these message are normal ??
* And what do you mean  by : "so, you have somehow managed to have a
localized start-stop-daemon" i didnt do anything special to choose to use a
localized version of it
* As for running instances of sendmail, it seems that it never go down
since the start-stop-daemon didnt really work

On 12/26/06, Richard A Nelson <[EMAIL PROTECTED]> wrote:

On Tue, 26 Dec 2006, Fourat Zouari wrote:

>> Ok, so you're still seenig the same start-stop-daemon error :(
>>
>> what is the output of:
>>         $ls -l `which start-stop-daemon`
>>
>> here, I see
>>   -rwxr-xr-x 1 root root 18504 Oct 13 06:41 /sbin/start-stop-daemon
>
>
> dev:~# which start-stop-daemon
> /usr/local/sbin/start-stop-daemon
>
> dev:~# dpkg -S `which start-stop-daemon`
> dpkg: /usr/local/sbin/start-stop-daemon introuvable.
>
> It's in frensh, it says that the file doesn't exist, strange !! see :
>
> dev:~# ls -l `which start-stop-daemon`
> -rwxr-xr-x 1 root staff 29991 2006-12-21 23:07
> /usr/local/sbin/start-stop-daemon
>
> the file does exist !
>
> dev:~# whereis start-stop-daemon
> start-stop-daemon: /sbin/start-stop-daemon
/usr/local/sbin/start-stop-daemon
> /usr/share/man/man8/start-stop-daemon.8.gz

so, you have somehow managed to have a localized start-stop-daemon

Do things work ok if you remove /usr/local/sbin from your path ?

> sh -x /etc/init.d/sendmail start
> [...]
> + START_MTAL_CMD='start-stop-daemon             --pidfile
> /var/run/sendmail/mta/sendmail.pid            --exec
> /usr/sbin/sendmail-mta           --startas /usr/sbin/sendmail-mta
> --start'
> + STOP_MTAL_CMD='start-stop-daemon              --pidfile
> /var/run/sendmail/mta/sendmail.pid            --name
> sendmail-mta             --stop'
> + SIGNAL_MTAL_CMD='start-stop-daemon            --pidfile
> /var/run/sendmail/mta/sendmail.pid            --name
> sendmail-mta             --stop'
> + START_MTAQ_CMD='start-stop-daemon             --pidfile
> /var/run/sendmail/mta/queue.pid
--make-pidfile          --exec
> /usr/sbin/sendmail-mta               --startas
> /usr/sbin/sendmail-mta                --start'
> + STOP_MTAQ_CMD='start-stop-daemon              --pidfile
> /var/run/sendmail/mta/queue.pid               --name
> sendmail-mta             --stop'
> + SIGNAL_MTAQ_CMD='start-stop-daemon            --pidfile
> /var/run/sendmail/mta/queue.pid               --name
> sendmail-mta             --stop'
> + START_MSP_CMD='start-stop-daemon              --pidfile
> /var/run/sendmail/msp/sendmail.pid            --exec
> /usr/sbin/sendmail-msp           --startas /usr/sbin/sendmail-msp
> --chuid smmsp           --start'
> + STOP_MSP_CMD='start-stop-daemon               --pidfile
> /var/run/sendmail/msp/sendmail.pid            --name
> sendmail-msp             --stop'
> + SIGNAL_MSP_CMD='start-stop-daemon             --pidfile
> /var/run/sendmail/msp/sendmail.pid            --name
> sendmail-msp             --stop'
> [...]

Ok, these clearly indicate that both --pidfile *and* --exec are
being passed to start-stop-daemon.

> [...]
> ++ tail -n 1 /var/run/sendmail/mta/sendmail.pid
> + COMMAND='/usr/sbin/sendmail-mta -Am -L sm-mta -bd -q10m'
> ++ ps --no-heading 25156
> + '[' '!' -z '25156 ?        Ss     0:00 sendmail: MTA: accepting
> connections          ' ']'

This says you already have an instance of sendmail running !?!

Something seems broken on your end...
--
Rick Nelson
Microsoft Corp., concerned by the growing popularity of the free 32-bit
operating system for Intel systems, Linux, has employed a number of top
programmers from the underground world of virus development.  Bill Gates
stated
yesterday: "World domination, fast -- it's either us or Linus".  Mr.
Torvalds
was unavailable for comment ...
                -- Robert Manners, [EMAIL PROTECTED], in
comp.os.linux.setup

Reply via email to