checking postfix

2014-08-19 Thread Sascha Hüdepohl
Hi! I would lilke to automatically check if postfix is OK. So i run postfix check. Example: # chmod 555 /usr/sbin/postqueue # postfix check postfix/postfix-script: warning: not set-gid or not owner+group+world executable: /usr/sbin/postqueue Because postfix check doesn't set the exit-code i t

Re: checking postfix

2014-08-19 Thread Sascha Hüdepohl
Hi, i think i found the problem: postfix calls postfix-script which uses postlog for output. from man postlog: Logging is sent to syslogd(8); when the standard error stream is connected to a terminal, logging is sent there as well. Since stderr is no longer the terminal when i use redirect

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread Wietse Venema
terrygalant.li...@fastest.cc: > > The right postfix -- my install -- is running > > > > ps ax | grep postfix > > 3507 ?Ss 0:00 /usr/local/libexec/postfix/master -w > > > > In postfix logs I see > > > > ... > > Aug 18 21:35:17 tgdesktop postfix/postdrop[3853]:

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread terrygalant . lists
Hi On Tue, Aug 19, 2014, at 04:11 AM, Wietse Venema wrote: > You are running the daemons from the new Postfix installation, but > you are submitting mail through the *wrong* Postfix sendmail program. > > Do: > > # find / | egrep 'sendmail|postfix' > > and report output. find / | egrep "sendmai

Re: checking postfix

2014-08-19 Thread Noel Jones
On 8/19/2014 4:10 AM, Sascha Hüdepohl wrote: > Hi! > > I would lilke to automatically check if postfix is OK. > > So i run postfix check. It sounds as if you're trying to monitor postfix health. Unfortunately "postfix check" isn't very useful for that, as it's designed to test for installation

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread Viktor Dukhovni
On Tue, Aug 19, 2014 at 06:37:05AM -0700, terrygalant.li...@fastest.cc wrote: > find / | egrep "sendmail|postfix" | egrep -v "share/doc" > /usr/lib/sendmail [ Legacy symlink for applications that find sendmail(1) in /usr/lib ] > /usr/local/etc/... > /usr/local/libexec/postfix >

Re: checking postfix

2014-08-19 Thread Sascha Hüdepohl
Hello! * Noel Jones (njo...@megan.vbhcs.org) schrieb: > It sounds as if you're trying to monitor postfix health. No, actually i wanted to check the installation. I'm learning docker and am trying to create an image from a Dockerfile. Unfortunately Docker doens't allow set-gid files unless star

Re: checking postfix

2014-08-19 Thread Noel Jones
On 8/19/2014 8:53 AM, Sascha Hüdepohl wrote: > Hello! > > * Noel Jones (njo...@megan.vbhcs.org) schrieb: > > >> It sounds as if you're trying to monitor postfix health. > > No, actually i wanted to check the installation. I'm learning docker and > am trying to create an image from a Dockerfile.

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread Wietse Venema
terrygalant.li...@fastest.cc: > Hi > > On Tue, Aug 19, 2014, at 04:11 AM, Wietse Venema wrote: > > You are running the daemons from the new Postfix installation, but > > you are submitting mail through the *wrong* Postfix sendmail program. > > > > Do: > > > > # find / | egrep 'sendmail|postfix'

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread terrygalant . lists
On Tue, Aug 19, 2014, at 06:44 AM, Viktor Dukhovni wrote: > On Tue, Aug 19, 2014 at 06:37:05AM -0700, terrygalant.li...@fastest.cc wrote: > > > find / | egrep "sendmail|postfix" | egrep -v "share/doc" > > /usr/lib/sendmail > > [ Legacy symlink for applications that find sendmail(1) in /usr/

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread terrygalant . lists
On Tue, Aug 19, 2014, at 07:07 AM, Wietse Venema wrote: ls -ld `postconf -h command_directory`/postdrop -rwxr-sr-x+ 1 root postdrop 257K Aug 19 06:23 /usr/local/sbin/postdrop* ls -ld `postconf -h queue_directory`/maildrop drwx-wx--- 2 postfix postdrop 4.0K Aug 19 07:09 /var/spo

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread Wijatmoko U. Prayitno
On Tue, 19 Aug 2014 07:12:07 -0700 terrygalant.li...@fastest.cc wrote: > Right. I'd uninstalled postfix, but had to install > exim. > > As I understand it, a distro-mailer needs to be > installed -- apparently postfix, exim or sendmail will > do. Otherwise pkg manager complains about unfulfilled

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread terrygalant . lists
On Tue, Aug 19, 2014, at 07:21 AM, Wijatmoko U. Prayitno wrote: > exclude them into your whatever pkg-manager conf... Exclude what? THe packages that depend on & require /usr/sbin/sendmail? It's even part of http://refspecs.linuxbase.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/baselib-sen

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread Wietse Venema
terrygalant.li...@fastest.cc: > > > On Tue, Aug 19, 2014, at 07:07 AM, Wietse Venema wrote: > > ls -ld `postconf -h command_directory`/postdrop > -rwxr-sr-x+ 1 root postdrop 257K Aug 19 06:23 /usr/local/sbin/postdrop* > > ls -ld `postconf -h queue_directory`/maildrop > drwx-wx--- 2

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread Viktor Dukhovni
On Tue, Aug 19, 2014 at 07:12:07AM -0700, terrygalant.li...@fastest.cc wrote: > > > find / | egrep "sendmail|postfix" | egrep -v "share/doc" > > > /usr/lib/sendmail > > > > [ Legacy symlink for applications that find sendmail(1) in /usr/lib ] > > Right. I'd uninstalled postfix, but had to ins

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread Wijatmoko U. Prayitno
On Tue, 19 Aug 2014 07:34:14 -0700 terrygalant.li...@fastest.cc wrote: > Exclude what? THe packages that depend on & > require /usr/sbin/sendmail? > what linux distro do you use? if redhat/centos/scientific you can use CentALT repository which has latest postfix.

Re: checking postfix

2014-08-19 Thread Stephen Satchell
On 08/19/2014 06:39 AM, Noel Jones wrote: > It sounds as if you're trying to monitor postfix health. I find that logwatch(8) does a pretty good job of pointing up running issues.

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread terrygalant . lists
On Tue, Aug 19, 2014, at 07:47 AM, Wietse Venema wrote: > In that case, it should be possible to submit an email mesage (whether > it delivers properly depends on correct configuration in > /usr/local/etc/postfix): Thorugh this entire biz, I've been able to submit/deliver mail. Just the logs' p

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread terrygalant . lists
On Tue, Aug 19, 2014, at 08:15 AM, Wijatmoko U. Prayitno wrote: > what linux distro do you use? if redhat/centos/scientific > you can use CentALT repository which has latest postfix. It's opensuse. The point is I don't WANT to use the distro's postfix. Not the least of the reasons is that we've

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread Viktor Dukhovni
On Tue, Aug 19, 2014 at 08:30:47AM -0700, terrygalant.li...@fastest.cc wrote: > On Tue, Aug 19, 2014, at 08:15 AM, Wijatmoko U. Prayitno wrote: > > what linux distro do you use? if redhat/centos/scientific > > you can use CentALT repository which has latest postfix. > > It's opensuse. > > The po

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread Wietse Venema
terrygalant.li...@fastest.cc: > What I don't know is do apps that 'use sendmail' look specifically for > /usr/sbin/sendmail, or do they (first/only) look for and use the > /etc/alternative -> /usr/local/sbin/sendmail ? > It does not matter. In order to run Postfix it needs to be installed as a

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread terrygalant . lists
On Tue, Aug 19, 2014, at 07:48 AM, Viktor Dukhovni wrote: > Yes, but mail(1) and other software will still use /usr/sbin/sendmail. II think that's a key question. Do they use /usr/sbin/sendmail only & always? Or, do they -- instead -- use /etc/alternatives/sendmail if it exists & is configure

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread Viktor Dukhovni
On Tue, Aug 19, 2014 at 08:39:40AM -0700, terrygalant.li...@fastest.cc wrote: > > > On Tue, Aug 19, 2014, at 07:48 AM, Viktor Dukhovni wrote: > > Yes, but mail(1) and other software will still use /usr/sbin/sendmail. > > II think that's a key question. Do they use /usr/sbin/sendmail only & alwa

Re: postfix-script maildrop permission errors, but not using maildrop for delivery

2014-08-19 Thread terrygalant . lists
> They use /usr/sbin/sendmail, on correctly configured systems, with > "alternatives", you have: > > /usr/sbin/sendmail -> /etc/alternatives/sendmail > /etc/alternatives/sendmail -> /usr/sbin/sendmail.postfix > > and similar, e.g. > > /usr/sbin/sendmail -> /etc/alternatives/se