Re: opensmtpd: procmail: not found [FALSE ALERT - STILL UNRESOLVED]

2015-01-28 Thread Herbert J. Skuhra
On Tue, Jan 27, 2015 at 10:56:50PM +, openda...@hushmail.com wrote:
 On 27. januar 2015 at 3:58 PM, Herbert J. Skuhra herb...@oslo.ath.cx 
 wrote:
 
  Please show output of 'smtpd -dv'
 
 It's quite big so I put it here instead:
 
 https://gist.github.com/anonymous/bf9b0a7e935d6e961c05
 
  and (user's) procmailrc.
 
 I don't have one actually. I'm using this approach:
 
 https://calomel.org/opensmtpd.html

This is still your config, right?


listen on 127.0.0.1 port 25

table aliases db:/etc/mail/aliases.db

accept for local deliver to mda /usr/local/bin/procmail -f -
accept from any for domain mydomain.com deliver to mda 
/usr/local/bin/procmail -f -

accept from local for any relay


I've missed the table aliases... line.

Remove the 'table aliases...' line, put your aliases in 
/usr/local/etc/mail/aliases and run newaliases.
Or add 'alias aliases' to your accept line.

2. There are only test mails in your queue, right? Please remove them and
try sending new e-mails while running 'smtpd -dv'.

3. If you still get the error procmail: not found add a new user and
send him a test e-mail.

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found [DROPPED - DON'T NEED PROCMAIL IN THE FIRST PLACE]

2015-01-28 Thread opendaddy
Dear Herbert,

Thank you so much for guiding me through all of this but I just realized I 
don't really need procmail in the first place. Besides, being used to all these 
pretty configs from pf and opensmtpd, procmail's .procmailrc / .forward was a 
real letdown anyway.

All the best,
O.D.

On 28. januar 2015 at 8:35 AM, Herbert J. Skuhra herb...@oslo.ath.cx wrote:

On Tue, Jan 27, 2015 at 10:56:50PM +, openda...@hushmail.com 
wrote:
 On 27. januar 2015 at 3:58 PM, Herbert J. Skuhra 
herb...@oslo.ath.cx wrote:
 
  Please show output of 'smtpd -dv'
 
 It's quite big so I put it here instead:
 
 https://gist.github.com/anonymous/bf9b0a7e935d6e961c05
 
  and (user's) procmailrc.
 
 I don't have one actually. I'm using this approach:
 
 https://calomel.org/opensmtpd.html

This is still your config, right?


listen on 127.0.0.1 port 25

table aliases db:/etc/mail/aliases.db

accept for local deliver to mda /usr/local/bin/procmail -f -
accept from any for domain mydomain.com deliver to mda 
/usr/local/bin/procmail -f -

accept from local for any relay


I've missed the table aliases... line.

Remove the 'table aliases...' line, put your aliases in 
/usr/local/etc/mail/aliases and run newaliases.
Or add 'alias aliases' to your accept line.

2. There are only test mails in your queue, right? Please remove 
them and
try sending new e-mails while running 'smtpd -dv'.

3. If you still get the error procmail: not found add a new user 
and
send him a test e-mail.

-- 
Herbert


-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found

2015-01-27 Thread Herbert J. Skuhra
On Mon, Jan 26, 2015 at 11:54:09PM +, openda...@hushmail.com wrote:
 Hello,
 
 On 26. januar 2015 at 8:18 PM, Herbert J. Skuhra herb...@oslo.ath.cx 
 wrote:
 
 To understand why you get this error run:
 
 % whereis procmail | xargs -t ls -l
 
 Indeed, similar to the command parv gave me earlier:
 
 # whereis procmail | xargs -t -n1 ls -l
 ls -l procmail:
 ls: procmail:: No such file or directory

Got it?

 ls -l /usr/local/bin/procmail
 -rwsr-sr-x  1 root  mail  98224 Oct  3 04:19 /usr/local/bin/procmail
 ls -l /usr/local/man/man1/procmail.1.gz
 -rw-r--r--  1 root  wheel  10793 Oct  3 04:19 /usr/local/man/man1/procmail.1 
 .gz
 
 Do you have a .forward file in $HOME with the content |procmail?
 
 No, I do not. I just copied my smtpd.conf from OpenBSD where it was all 
 working fine.
 
 I have no idea what's going on here. Why is procmail acting up?
 
 Thanks.

I guess the error does not come from your smtpd.conf, otherwise the log
would show:

Jan 26 14:05:20 mybox smtpd[23304]: delivery: TempFail for
cf077883a36bcae2: from=od@mybox, to=od@mybox, user=od,   
method=mda, delay=1h5m20s, stat=Error (/usr/local/bin/procmail: not found)

and not:

Jan 26 14:05:20 mybox smtpd[23304]: delivery: TempFail for
cf077883a36bcae2: from=od@mybox, to=od@mybox, user=od,
method=mda, delay=1h5m20s, stat=Error (procmail: not found)

At least that's what's happening on my system (FreeBSD 10.1-STABLE).

So obviously something else is calling 'procmail' and /usr/local/bin missing in 
$PATH!

Maybe 'smtpd -dv' shows more information?

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found [FALSE ALERT - STILL UNRESOLVED]

2015-01-27 Thread opendaddy
I apologize for the inconvenience, but the `procmail: not found` errors are 
still there.

As for aliases, it seems FreeBSD supports both /etc/mail/aliases and 
/usr/local/etc/mail/aliases.

O.D.

On 27. januar 2015 at 2:51 PM, openda...@hushmail.com wrote:

On 27. januar 2015 at 1:24 PM, Herbert J. Skuhra 
herb...@oslo.ath.cx wrote:

Try /usr/local/etc/mail/aliases instead.


Oh man -- that was it! Now getting `delivery: Ok`.

Thank you so much. You and everyone else who chipped in. Time to 
send some emails.

All the best,
O.D.

___
freebsd-questi...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-
unsubscr...@freebsd.org


-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found [FALSE ALERT - STILL UNRESOLVED]

2015-01-27 Thread opendaddy
On 27. januar 2015 at 3:58 PM, Herbert J. Skuhra herb...@oslo.ath.cx wrote:

 Please show output of 'smtpd -dv'

It's quite big so I put it here instead:

https://gist.github.com/anonymous/bf9b0a7e935d6e961c05

 and (user's) procmailrc.

I don't have one actually. I'm using this approach:

https://calomel.org/opensmtpd.html

Thanks!

O.D.


On Tue, Jan 27, 2015 at 03:08:40PM +, openda...@hushmail.com 
wrote:
 I apologize for the inconvenience, but the `procmail: not found` 
errors are still there.
 
 As for aliases, it seems FreeBSD supports both /etc/mail/aliases 
and /usr/local/etc/mail/aliases.
 
 O.D.
 
 On 27. januar 2015 at 2:51 PM, openda...@hushmail.com wrote:
 
 On 27. januar 2015 at 1:24 PM, Herbert J. Skuhra 
 herb...@oslo.ath.cx wrote:
 
 Try /usr/local/etc/mail/aliases instead.
 
 
 Oh man -- that was it! Now getting `delivery: Ok`.
 
 Thank you so much. You and everyone else who chipped in. Time 
to 
 send some emails.
 
 All the best,
 O.D.
 
 ___
 freebsd-questi...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-
 unsubscr...@freebsd.org
 
 
 -- 
 You received this mail because you are subscribed to 
misc@opensmtpd.org
 To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found

2015-01-27 Thread Edgar Pettijohn


On 01/27/15 05:10, openda...@hushmail.com wrote:

On 27. januar 2015 at 8:25 AM, Herbert J. Skuhra herb...@oslo.ath.cx wrote:

On Mon, Jan 26, 2015 at 11:54:09PM +, openda...@hushmail.com

I guess the error does not come from your smtpd.conf, otherwise
the log
would show:

Jan 26 14:05:20 mybox smtpd[23304]: delivery: TempFail for
cf077883a36bcae2: from=od@mybox, to=od@mybox, user=od,
method=mda, delay=1h5m20s, stat=Error (/usr/local/bin/procmail:
not found)

and not:

Jan 26 14:05:20 mybox smtpd[23304]: delivery: TempFail for
cf077883a36bcae2: from=od@mybox, to=od@mybox, user=od,
method=mda, delay=1h5m20s, stat=Error (procmail: not found)

At least that's what's happening on my system (FreeBSD 10.1-
STABLE).

I see, I see. I'm on FreeBSD 10.1-RELEASE.


So obviously something else is calling 'procmail' and
/usr/local/bin missing in $PATH!

Maybe 'smtpd -dv' shows more information?

# smtpd -dv
fatal: control socket already listening

Thanks!

O.D.



Remember to service smtpd stop first, before this test.

--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found

2015-01-27 Thread opendaddy
On 27. januar 2015 at 8:25 AM, Herbert J. Skuhra herb...@oslo.ath.cx wrote:

On Mon, Jan 26, 2015 at 11:54:09PM +, openda...@hushmail.com 

I guess the error does not come from your smtpd.conf, otherwise 
the log
would show:

Jan 26 14:05:20 mybox smtpd[23304]: delivery: TempFail for
cf077883a36bcae2: from=od@mybox, to=od@mybox, user=od,   
method=mda, delay=1h5m20s, stat=Error (/usr/local/bin/procmail: 
not found)

and not:

Jan 26 14:05:20 mybox smtpd[23304]: delivery: TempFail for
cf077883a36bcae2: from=od@mybox, to=od@mybox, user=od,
method=mda, delay=1h5m20s, stat=Error (procmail: not found)

At least that's what's happening on my system (FreeBSD 10.1-
STABLE).

I see, I see. I'm on FreeBSD 10.1-RELEASE.

So obviously something else is calling 'procmail' and 
/usr/local/bin missing in $PATH!

Maybe 'smtpd -dv' shows more information?

# smtpd -dv
fatal: control socket already listening

Thanks!

O.D.


-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found

2015-01-27 Thread opendaddy
Hello!

On 27. januar 2015 at 11:21 AM, Edgar Pettijohn ed...@pettijohn-web.com 
wrote:

 Maybe 'smtpd -dv' shows more information?
 # smtpd -dv
 fatal: control socket already listening

 Thanks!

 O.D.


Remember to service smtpd stop first, before this test.

Ah yes! Now we got some action:

# smtpd -dv
debug: init ssl-tree
info: OpenSMTPD 5.4.2p1 starting
debug: bounce warning after 4h
debug: using fs queue backend
debug: using ramqueue scheduler backend
debug: using ram stat backend
info: startup [debug mode]
mfa: building simple chains...
debug: queue: done loading queue into scheduler
mfa: building complex chains...
mfa: done building complex chains
mfa: done building default chain
libevent 2.0.22-stable (kqueue)
debug: parent_send_config_ruleset: reloading
debug: parent_send_config_mfa: reloading
debug: parent_send_config: configuring smtp
debug: mfa ready
debug: smtp: listen on 127.0.0.1 port 25 flags 0x0 pki 
debug: smtp: will accept at most 29120 clients
debug: smtpd: scanning offline queue...
debug: smtpd: offline scanning done
debug: scheduler: evp:b757c52fd160fb0d scheduled (mda)
mda: new user f72ba568b9efd05b for getpwnam:root
debug: lka: userinfo getpwnam:root
debug: mda: new session f72ba569c103cbc9 for user getpwnam:root evpid b7 
57c52fd160fb0d
debug: mda: no more envelope for getpwnam:root
debug: mda: got message fd 4 for session f72ba569c103cbc9 evpid b757c52fd160 
fb0d
debug: mda: querying mda fd for session f72ba569c103cbc9 evpid b757c52fd160f b0d
debug: smtpd: forking mda for session f72ba569c103cbc9: /usr/local/bin/proc 
mail -f - as root
delivery: TempFail for b757c52fd160fb0d: from=, to=root@mybox, user=root , 
method=mda, delay=4h50m5s, stat=Error (not allowed to deliver to: root)
debug: mda: session f72ba569c103cbc9 done
debug: mda: user root becomes runnable
debug: mda: all done for user getpwnam:root
debug: scheduler: evp:3ea50754ebc57df8 scheduled (mda)
mda: new user f72ba56a06a86a79 for getpwnam:root
debug: lka: userinfo getpwnam:root
debug: mda: new session f72ba56b009d2ba4 for user getpwnam:root evpid 3e 
a50754ebc57df8
debug: mda: no more envelope for getpwnam:root
debug: mda: got message fd 4 for session f72ba56b009d2ba4 evpid 3ea50754ebc5 
7df8
debug: mda: querying mda fd for session f72ba56b009d2ba4 evpid 3ea50754ebc57 df8
debug: smtpd: forking mda for session f72ba56b009d2ba4: /usr/local/bin/proc 
mail -f - as root
delivery: TempFail for 3ea50754ebc57df8: from=, to=root@mybox, user=root , 
method=mda, delay=4h50m5s, stat=Error (not allowed to deliver to: root)
debug: mda: session f72ba56b009d2ba4 done
debug: mda: user root becomes runnable
debug: mda: all done for user getpwnam:root

Thank you!

O.D.


-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found

2015-01-27 Thread Herbert J. Skuhra
On Tue, Jan 27, 2015 at 11:48:30AM +, openda...@hushmail.com wrote:
 Hello!
 
 On 27. januar 2015 at 11:21 AM, Edgar Pettijohn ed...@pettijohn-web.com 
 wrote:
 
  Maybe 'smtpd -dv' shows more information?
  # smtpd -dv
  fatal: control socket already listening
 
  Thanks!
 
  O.D.
 
 
 Remember to service smtpd stop first, before this test.
 
 Ah yes! Now we got some action:
 
 # smtpd -dv
 debug: init ssl-tree
 info: OpenSMTPD 5.4.2p1 starting
 debug: bounce warning after 4h
 debug: using fs queue backend
 debug: using ramqueue scheduler backend
 debug: using ram stat backend
 info: startup [debug mode]
 mfa: building simple chains...
 debug: queue: done loading queue into scheduler
 mfa: building complex chains...
 mfa: done building complex chains
 mfa: done building default chain
 libevent 2.0.22-stable (kqueue)
 debug: parent_send_config_ruleset: reloading
 debug: parent_send_config_mfa: reloading
 debug: parent_send_config: configuring smtp
 debug: mfa ready
 debug: smtp: listen on 127.0.0.1 port 25 flags 0x0 pki 
 debug: smtp: will accept at most 29120 clients
 debug: smtpd: scanning offline queue...
 debug: smtpd: offline scanning done
 debug: scheduler: evp:b757c52fd160fb0d scheduled (mda)
 mda: new user f72ba568b9efd05b for getpwnam:root
 debug: lka: userinfo getpwnam:root
 debug: mda: new session f72ba569c103cbc9 for user getpwnam:root evpid b7 
 57c52fd160fb0d
 debug: mda: no more envelope for getpwnam:root
 debug: mda: got message fd 4 for session f72ba569c103cbc9 evpid b757c52fd160 
 fb0d
 debug: mda: querying mda fd for session f72ba569c103cbc9 evpid b757c52fd160f 
 b0d
 debug: smtpd: forking mda for session f72ba569c103cbc9: /usr/local/bin/proc 
 mail -f - as root
 delivery: TempFail for b757c52fd160fb0d: from=, to=root@mybox, user=root 
 , method=mda, delay=4h50m5s, stat=Error (not allowed to deliver to: root)
 debug: mda: session f72ba569c103cbc9 done
 debug: mda: user root becomes runnable
 debug: mda: all done for user getpwnam:root
 debug: scheduler: evp:3ea50754ebc57df8 scheduled (mda)
 mda: new user f72ba56a06a86a79 for getpwnam:root
 debug: lka: userinfo getpwnam:root
 debug: mda: new session f72ba56b009d2ba4 for user getpwnam:root evpid 3e 
 a50754ebc57df8
 debug: mda: no more envelope for getpwnam:root
 debug: mda: got message fd 4 for session f72ba56b009d2ba4 evpid 3ea50754ebc5 
 7df8
 debug: mda: querying mda fd for session f72ba56b009d2ba4 evpid 3ea50754ebc57 
 df8
 debug: smtpd: forking mda for session f72ba56b009d2ba4: /usr/local/bin/proc 
 mail -f - as root
 delivery: TempFail for 3ea50754ebc57df8: from=, to=root@mybox, user=root 
 , method=mda, delay=4h50m5s, stat=Error (not allowed to deliver to: root)
 debug: mda: session f72ba56b009d2ba4 done
 debug: mda: user root becomes runnable
 debug: mda: all done for user getpwnam:root

1. Create an alias for root and run newaliases.

2. Show debug output for the error procmail: not found

-- 
Herbert 

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found

2015-01-27 Thread opendaddy
On 27. januar 2015 at 12:49 PM, Herbert J. Skuhra herb...@oslo.ath.cx wrote:

1. Create an alias for root and run newaliases.

I already have this (I've also run newaliases):

# cat /etc/mail/aliases

root: opendaddy

# Basic system aliases -- these MUST be present
MAILER-DAEMON: postmaster
postmaster: root

# General redirections for pseudo accounts
_dhcp:  root
_pflogd: root
auditdistd: root

2. Show debug output for the error procmail: not found

How do I debug that error? Do you mean with `smtpd -dv`?

O.D.


-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found

2015-01-27 Thread Herbert J. Skuhra
On Tue, Jan 27, 2015 at 01:02:49PM +, openda...@hushmail.com wrote:
 On 27. januar 2015 at 12:49 PM, Herbert J. Skuhra herb...@oslo.ath.cx 
 wrote:
 
 1. Create an alias for root and run newaliases.
 
 I already have this (I've also run newaliases):
 
 # cat /etc/mail/aliases

Try /usr/local/etc/mail/aliases instead.

 2. Show debug output for the error procmail: not found
 
 How do I debug that error? Do you mean with `smtpd -dv`?

Yes. Fix the alias problem or send e-mail to a different user.

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found

2015-01-26 Thread Herbert J. Skuhra
On Mon, Jan 26, 2015 at 02:56:58PM +, openda...@hushmail.com wrote:
 Hi!
 
 On 26. januar 2015 at 2:02 PM, parv p...@pair.com wrote:
 
 Is procmail actually installed, for locate database could be old 
 and thus whereis would be lying? What is the output of ...
 
   # whereis procmail | xargs ls -l
 
 Awesome man! Looks like locate is clueless:
 
 # whereis procmail | xargs ls -l
 ls: procmail:: No such file or directory
 -rwsr-sr-x  1 root  mail   98224 Oct  3 04:19 /usr/local/bin/procmail
 -rw-r--r--  1 root  wheel  10793 Oct  3 04:19 
 /usr/local/man/man1/procmail.1.gz
 
 Just ran:
 
 # /usr/libexec/locate.updatedb
  WARNING
  Executing updatedb as root.  This WILL reveal all filenames
  on your machine to all login users, which is a security risk.
 
 But I'm still getting `ls: procmail:: No such file or directory`. Ideas?

To understand why you get this error run:

% whereis procmail | xargs -t ls -l

or 

% whereis procmail | xargs -t -n1 ls -l

Do you have a .forward file in $HOME with the content |procmail?

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found

2015-01-26 Thread opendaddy
Hello,

On 26. januar 2015 at 8:18 PM, Herbert J. Skuhra herb...@oslo.ath.cx wrote:

To understand why you get this error run:

% whereis procmail | xargs -t ls -l

Indeed, similar to the command parv gave me earlier:

# whereis procmail | xargs -t -n1 ls -l
ls -l procmail:
ls: procmail:: No such file or directory
ls -l /usr/local/bin/procmail
-rwsr-sr-x  1 root  mail  98224 Oct  3 04:19 /usr/local/bin/procmail
ls -l /usr/local/man/man1/procmail.1.gz
-rw-r--r--  1 root  wheel  10793 Oct  3 04:19 /usr/local/man/man1/procmail.1 .gz

Do you have a .forward file in $HOME with the content |procmail?

No, I do not. I just copied my smtpd.conf from OpenBSD where it was all working 
fine.

I have no idea what's going on here. Why is procmail acting up?

Thanks.

O.D.


-- 
Herbert


-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org