[AMaViS-user] amavis/spamassassin

This is a discussion on [AMaViS-user] amavis/spamassassin within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Greetings, I'm a newbie. I have SLES 10 sp1, Postfix 2.2.9, cyrus-imap v2.2.12 and ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-29-2007
Jim McIver
 
Posts: n/a
Default [AMaViS-user] amavis/spamassassin

Greetings,

I'm a newbie.

I have SLES 10 sp1, Postfix 2.2.9, cyrus-imap v2.2.12 and I also
installed squirrelmail, perl, v5.8.8. The setup was working, but I
wanted to add spamassassin and thought amavisd-new-2.3.3 was a good
fit.

I went though one of the how to's.
(http://www.freespamfilter.org/FC4.html#_Toc110999194) and things
seemed to install correctly.

I added the below to the master.cf file:

smtp inet n - n - - smtpd
-o content_filter=smtp-amavis:[127.0.0.1]:10024
smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - n - - smtpd
-o local_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o strict_rfc821_envelopes=yes

and put content_filter = smtp-amavis:[127.0.0.1]:10024 in the main.cf

postconf -n output
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
biff = no
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = no
disable_mime_output_conversion = no
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains = xxxxx.com, xxxxx.com
masquerade_exceptions = root
message_size_limit = 10240000
mydestination = $myhostname, $mydomain, localhost.$mydomain
myhostname = xxxxx.com
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_generic_maps = hash:/etc/postfix/generic
smtp_sasl_auth_enable = no
smtp_use_tls = no
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions =
permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual

I can telnet to the server on port 25, but not on port 10024 or
10025.

I can't find any mention of adding "smtp-amavis tcp 10024" to the
/etc/services file, but figured it must not have to be there???

output from amavisd debug give a quite a bit of info, so I haven't
included.

I have the log_level in amavis.conf set to 5.

Messages just pile up in directories named amavis-20070829T111652-
09357 in the /var/spool/amavis/tmp. I don't see any hints in the
messages as to what could be wrong.

errors in /var/log/mail are:
Aug 29 11:16:52 mailtest amavis[9418]: (09357-01) run_command: child
process [9418]: Error closing main::stdin: Bad file descriptor at
/usr/sbin/amavisd line 1872.\n
Aug 29 11:16:52 mailtest amavis[9357]: (09357-01) TROUBLE in
check_mail: parts_decode_ext FAILED: parsing file(1) results -
missing last 1 results at (eval 68) line 154.
Aug 29 11:16:52 mailtest amavis[9357]: (09357-01) sending SMTP
response: "451 4.5.0 Error in processing, id=09357-01,
parts_decode_ext FAILED: parsing file(1) results - missing last 1
results at (eval 68) line 154."
Aug 29 11:16:52 mailtest amavis[9357]: (09357-01) timer stopped after
DATA end
Aug 29 11:16:52 mailtest amavis[9357]: (09357-01) PRESERVING EVIDENCE
in /var/spool/amavis/tmp/amavis-20070829T111652-09357
Aug 29 11:16:52 mailtest amavis[9357]: (09357-01) TIMING [total 80
ms] - SMTP EHLO: 8 (11%)11, SMTP pre-MAIL: 3 (4%)14, mkdir tempdir: 1
(1%)15, create email.txt: 1 (1%)16, SMTP pre-DATA-flush: 5 (7%)23,
SMTP DATA: 37 (46%)69, body_digest: 2 (2%)71, gen_mail_id: 1 (1%)72,
mkdir parts: 1 (1%)73, mime_decode: 13 (17%)90, rundown: 8 (10%)100
Aug 29 11:16:52 mailtest amavis[9357]: (09357-01) ESMTP> 451 4.5.0
Error in processing, id=09357-01, parts_decode_ext FAILED: parsing
file(1) results - missing last 1 results at (eval 68) line 154.
Aug 29 11:16:52 mailtest amavis[9357]: (09357-01) idle_proc, 6: was
busy, 64.7 ms, total idle 0.002 s, busy 0.078 s
Aug 29 11:16:52 mailtest amavis[9357]: (09357-01) idle_proc, 5: was
idle, 0.1 ms, total idle 0.003 s, busy 0.078 s
Aug 29 11:16:52 mailtest amavis[9357]: (09357-01) prolong_timer after
reading SMTP command: remaining time = 0 s
Aug 29 11:16:52 mailtest amavis[9357]: (09357-01) ESMTP< QUIT\r\n
Aug 29 11:16:52 mailtest amavis[9357]: (09357-01) ESMTP> 221 2.0.0
[127.0.0.1] amavisd-new closing transmission channel
Aug 29 11:16:52 mailtest amavis[9357]: (09357-01)
post_process_request_hook: timer stopped

The postqueue -p shows:

1A58B8B5 422 Wed Aug 29 11:03:40 jmciver@lmtribune.com
(host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing,
id=09358-01, parts_decode_ext FAILED: parsing file(1) results -
missing last 1 results at (eval 68) line 154. (in reply to end of
DATA command))

I've read quite a bit on the web, but haven't found a solution yet.
There was one thing about the version of Net::Server 0.91, but I
didn't understand the downgrading routine.

Any help would be appreciated,




-Jim McIver


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:05 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0