Re: sendmail, deliver and procmail
You (Rob Leslie) wrote:
> There is more than one version of mail.local distributed with the sendmail
> source. One is purported to be a port for Linux (in the `contrib' directory.)
> This Linux version, however, does not do Debian-style mailbox locking like the
> original version does (in the `mail.local' directory.)
Aaaahhh - that is the reason of all the confusion. As I said, I'm using
the mail.local from the mail.local/ subdirectory. I didn't even have to
port it - just adjust some things here and there. Here's the diff:
diff -cNr sendmail-8.7.3.orig/mail.local/Makefile sendmail-8.7.3/mail.local/Makefile
*** sendmail-8.7.3.orig/mail.local/Makefile Mon Jul 19 18:49:15 1993
--- sendmail-8.7.3/mail.local/Makefile Tue Mar 5 21:35:05 1996
***************
*** 1,9 ****
! # @(#)Makefile 8.1 (Berkeley) 7/19/93
! PROG= mail.local
! MAN8= mail.local.0
! BINOWN= root
! BINMODE=4555
! INSTALLFLAGS=-fschg
! .include <bsd.prog.mk>
--- 1,14 ----
! CPPFLAGS= -I../src
! mail.local: mail.local.o
! $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
! install: mail.local
! install -o root -g root -m 4555 mail.local $(prefix)/usr/sbin/mail.local
! install -o root -g root -m 644 mail.local.8 $(prefix)/usr/man/man8/mail.local.8
!
! clean:
! - rm -f mail.local mail.local.o core
!
! %.o: %.c
! $(CC) $(CPPFLAGS) -c $(CFLAGS) -o $@ $<
diff -cNr sendmail-8.7.3.orig/mail.local/Makefile.bsd sendmail-8.7.3/mail.local/Makefile.bsd
*** sendmail-8.7.3.orig/mail.local/Makefile.bsd Thu Jan 1 01:00:00 1970
--- sendmail-8.7.3/mail.local/Makefile.bsd Tue Mar 5 21:35:05 1996
***************
*** 0 ****
--- 1,9 ----
+ # @(#)Makefile 8.1 (Berkeley) 7/19/93
+
+ PROG= mail.local
+ MAN8= mail.local.0
+ BINOWN= root
+ BINMODE=4555
+ INSTALLFLAGS=-fschg
+
+ .include <bsd.prog.mk>
diff -cNr sendmail-8.7.3.orig/mail.local/mail.local.c sendmail-8.7.3/mail.local/mail.local.c
*** sendmail-8.7.3.orig/mail.local/mail.local.c Wed Jun 21 17:24:41 1995
--- sendmail-8.7.3/mail.local/mail.local.c Tue Mar 5 21:35:05 1996
***************
*** 101,109 ****
--- 101,111 ----
#ifndef BSD4_4
# define _BSD_VA_LIST_ va_list
+ #ifndef __linux__
extern char *strerror __P((int));
extern int snprintf __P((char *, int, const char *, ...));
#endif
+ #endif
/*
* If you don't have setreuid, and you have saved uids, and you have
***************
*** 693,699 ****
}
}
! #ifndef BSD4_4
# ifndef __osf__
char *
--- 695,701 ----
}
}
! #if !defined(BSD4_4) && !defined(__linux__)
# ifndef __osf__
char *
--
Miquel van | Cistron Internet Services -- Alphen aan den Rijn.
Smoorenburg, | mailto:info@cistron.nl http://www.cistron.nl/
miquels@het.net | Tel: +31-172-419445 (Voice) 430979 (Fax) 442580 (Data)
Reply to: