Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mailbox_command
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
GeoffOs
n00b
n00b


Joined: 13 Dec 2003
Posts: 56
Location: Cheshire

PostPosted: Wed Feb 25, 2004 11:03 pm    Post subject: mailbox_command Reply with quote

I have been attempting to get spamassasin working via postfix / procmail.
It seems that the main requirement to get this running site wide is to amend the postfix main.cf mailbox_command
What I cannot work out is why when I use:
Code:

/usr/bin/procmail

The mail gets checked but then not delivered, but when I use:
Code:

/usr/bin/procmail -f -a- $USER $@

It gets delivered but not scanned.
The same again with
Code:

/usr/bin/procmail -Y -a $DOMAIN

I using the standard example from spamassain in /etc/procmailrc
with all users having there own recipes in $HOME/.procmailrc files, so they can either move to a spam folder or delete the spam.
Log entries from example 1:
Code:

Feb 25 19:45:14 L10 postfix/smtpd[10251]: connect from localhost[127.0.0.1]
Feb 25 19:45:14 L10 postfix/smtpd[10251]: E2C833ECC6B: client=localhost[127.0.0.1]
Feb 25 19:45:14 L10 postfix/cleanup[10252]: E2C833ECC6B: message-id=<3$aj5-lu-$96vqc29@spylz5w>
Feb 25 19:45:14 L10 postfix/qmgr[10195]: E2C833ECC6B: from=<cordiepreer@doweb.every1.net>, size=5404, nrcpt=1 (queue active)
Feb 25 19:45:15 L10 spamd[4090]: connection from localhost [127.0.0.1] at port 33376
Feb 25 19:45:15 L10 spamd[10258]: info: setuid to geoff succeeded
Feb 25 19:45:15 L10 spamd[10258]: processing message <3$aj5-lu-$96vqc29@spylz5w> for geoff:1000.
Feb 25 19:45:15 L10 postfix/smtpd[10251]: disconnect from localhost[127.0.0.1]

Log entries from example 2:
Code:

Feb 25 19:43:24 L10 postfix/smtpd[10038]: 69B553ECC6B: client=localhost[127.0.0.1]
Feb 25 19:43:24 L10 postfix/cleanup[10039]: 69B553ECC6B: message-id=<8-$54h468g4gwf-9w5$9q@saz1w>
Feb 25 19:43:24 L10 postfix/qmgr[9973]: 69B553ECC6B: from=<klaq27ss@sseedch.com>, size=3028, nrcpt=1 (queue active)
Feb 25 19:43:24 L10 postfix/local[10041]: 69B553ECC6B: to=<geoff@localhost.osbaldestin.net>, orig_to=<geoff@localhost>, relay=local, delay=0, status=sent ("|/usr/bin/procmail -f -a- $USER $@")
Feb 25 19:43:24 L10 postfix/smtpd[10038]: disconnect from localhost[127.0.0.1]

Log entries from example 3:
Code:

Feb 25 19:53:02 L10 postfix/smtpd[10608]: connect from localhost[127.0.0.1]
Feb 25 19:53:02 L10 postfix/smtpd[10608]: 51B973ECC6B: client=localhost[127.0.0.1]
Feb 25 19:53:02 L10 postfix/cleanup[10609]: 51B973ECC6B: message-id=<ULDVZRFWYQOFICQKDBBO@hinet.net>
Feb 25 19:53:02 L10 postfix/qmgr[10517]: 51B973ECC6B: from=<g.dipietro@telesp.net.br>, size=2799, nrcpt=1 (queue active)
Feb 25 19:53:02 L10 spamd[4090]: connection from localhost [127.0.0.1] at port 33388
Feb 25 19:53:02 L10 spamd[10615]: info: setuid to geoff succeeded
Feb 25 19:53:02 L10 spamd[10615]: processing message <ULDVZRFWYQOFICQKDBBO@hinet.net> for geoff:1000.
Feb 25 19:53:02 L10 postfix/smtpd[10608]: disconnect from localhost[127.0.0.1]
Feb 25 19:53:03 L10 spamd[10615]: clean message (0.5/5.0) for geoff:1000 in 1.2 seconds, 2902 bytes.
Feb 25 19:53:03 L10 postfix/local[10611]: 51B973ECC6B: to=<geoff@localhost.osbaldestin.net>, orig_to=<geoff@localhost>, relay=local, delay=1, status=sent ("|/usr/bin/procmail -Y -a $DOMAIN")

What am I doing wrong?
I have attempting to read and understand the man pages for the mailbox_command / procmail, but .....
_________________
Beyond a critical point within a finite space, freedom diminishes as numbers increase. ...
The human question is not how many can possibly survive within the system, but what kind of existence is possible for those who do survive."
Back to top
View user's profile Send private message
Ijon Tichy
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2004
Posts: 80
Location: Seattle, WA

PostPosted: Thu Feb 26, 2004 3:40 am    Post subject: Reply with quote

Well, I've got this as my mailbox_command in postfix:

Code:
mailbox_command = /usr/bin/procmail -a "$EXTENSION"


I've got spamd starting in the default runlevel and this in the .procmailrc in my home dir:

Code:
:0fw
| /usr/bin/spamc


And it seems to work just fine. I've got the default installs of spamassassin and procmail, but I did make some adjustments to Postfix's main.cf to customize things like mynetworks, mydestination, etc.

In case this helps, these are the versions of what I've got installed and working:

Code:

*  net-mail/postfix
      Latest version available: 2.0.16-r1
      Latest version installed: 2.0.16-r1
      Size of downloaded files: 1,873 kB
      Homepage:    http://www.postfix.org/
      Description: A fast and secure drop-in replacement for sendmail.
      License:     IPL-1

*  net-mail/procmail
      Latest version available: 3.22-r6
      Latest version installed: 3.22-r6
      Size of downloaded files: 221 kB
      Homepage:    http://www.procmail.org/
      Description: Mail delivery agent/filter
      License:     Artistic | GPL-2

*  dev-perl/Mail-SpamAssassin
      Latest version available: 2.63
      Latest version installed: 2.63
      Size of downloaded files: 721 kB
      Homepage:    http://spamassassin.org/
      Description: Perl Mail::SpamAssassin - A program to filter spam
      License:     GPL-2 | Artistic
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum