OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: [LONG] content_filter doesn't work

From: Alexander Fortin (mean_streettin.it)
Date: Tue Apr 06 2004 - 09:53:50 CDT


Victor.Duchovnimorganstanley.com wrote:
> On Mon, 5 Apr 2004, Alexander Fortin wrote:
>
>>Reading the Victor Duchovni's mail I (think I) understand I can't filter
>>my mails locally. If it's true it's a problem for me : I've only to take
>>up the filtering locally for now, I'm doing this in a stage for my
>>school so I'm in a lan behind a firewall.
>>Really can't I do this locally?
>>
>
> "local" means command-line submission via sendmail(1). It does not mean
> SMTP submission on a LAN. You can filter SMTP from the LAN and Internet
> if/when applicable. You original main.cf smtpd related settings were a
> mess, you will need to fix these.

Yes, now I'm getting the spam-test mails from an external account with
fetchmail and they are filtered ok with the script.
I've looked to the postfix main.cf options but I couldn't find what
option let me treat the local SMTP filtering.
Let me understand: postfix understand if the mail il delivered with
sendmail from the local system and so doesn't call the smtp daemon?

Thank you for your patience!

This is my main.cf:

command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
sample_directory = /usr/share/doc/postfix/examples
readme_directory = /usr/share/doc/postfix
manpage_directory = /usr/share/man
setgid_group = postdrop
append_dot_mydomain = no
smtpd_banner = $myhostname ESMTP test server (Debian/GNU)
biff = no
myhostname = klingon
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = klingon, localhost.localdomain, localhost
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
mail_owner = postfix
EOF

--
http://wecanstopspam.org - http://openoffice.org
--
Alex