[debian/mailserver] amavisd wil niet opstarten

Pagina: 1
Acties:
  • 278 views sinds 30-01-2008
  • Reageer

Acties:
  • 0 Henk 'm!

  • sturkel
  • Registratie: Oktober 2001
  • Laatst online: 13:18
Ik heb als virusscanner op mijn server altijd antivir mailgate gebruikt.
nu dat de automatische updates niet meer werken ben ik overgestapt naar de volgende setup:
Postfix, Amavis, ClamAV, en Spamassassin
postfix werkt goed, maar ik krijg amavis niet werkend, dus weet (nog) niet of de andere onderdelen wel goed zijn.
Wanneer ik amavis wil opstarten in debug mode(amavisd-new debug) krijg ik de volgende fout:
code:
1
Error in config file /etc/amavis/amavisd.conf: Can't open file  for reading: Onbekend bestand of map at /usr/sbin/amavisd-new line 1092.

om uit te sluiten dat mijn config niet goed is heb ik het hele config file leeg gelaten en amavis opnieuw gedraaid in debug mode wat de volgende fout oplevert:
code:
1
Failed to open log file : Onbekend bestand of map at /usr/sbin/amavisd-new line 741.

amavis.log heb ik de rechten 775 gegeven en als user:group amavis:amavis.
ik heb al verschillende perl bibliotheken etc geinstalleerd wat ik al op andere fora had gevonden maar ik krijg de hele zaak niet werkend.
Wat kan ik nog proberen om dit werkend te krijgen, want er zijn genoeg voorbeelden te vinden waarbij het toch wel zou moeten werken.
de volgende sites heb ik geraadpleegd voor de installatie/configuratie:
http://flakshack.com/anti-spam/wiki/index.php?page=Debian
http://www200.pair.com/mecham/spam/spamfilter20041003.html
http://www.securitysage.com/antispam/amavis.html
got en google leverden ook nog het een en ander op, maar dus niet het gewenste
mijn mailserver werkt voor de rest wel, dus met postfix is niets mis(lijkt mij)

[AMD 64 X2 3800] [Asus a8n-e] [2048mb Kingston] [nvidia 7300GS] [2*Seagate160GB s-ata] [WD 120GB 8MB] [Plextor px-708a] [nec 4550]


Acties:
  • 0 Henk 'm!

  • PowerSp00n
  • Registratie: Februari 2002
  • Laatst online: 11:02

PowerSp00n

There is no spoon

Open dan eens /usr/sbin/amavisd-new (is gewoon een perl scriptje). En kijk wat het probeert te openen/benaderen op de genoemde regels. Kan zijn dat er daar ergens terug verwezen wordt naar iets wat je in je configuratie instelt.

Acties:
  • 0 Henk 'm!

  • sturkel
  • Registratie: Oktober 2001
  • Laatst online: 13:18
De fout zat in een read_hash voor de relay_domains, want die bestond niet.
Maar toch krijg ik de hele boel nog niet werkend.
ik kan niet vinden waar het probleem zit, maar ik heb het idee dat de mail wel binnenkomt, maar nadat postfix deze binnentrekt de mail verloren gaat.
Ook de spamfilter werkt niet of iig niet goed genoeg.
Heeft er iemand een tutorial of punten waar ik op moet letten in de config, want nu draait dus alleen postfix zonder spam en virusscanner

[AMD 64 X2 3800] [Asus a8n-e] [2048mb Kingston] [nvidia 7300GS] [2*Seagate160GB s-ata] [WD 120GB 8MB] [Plextor px-708a] [nec 4550]


Acties:
  • 0 Henk 'm!

  • Zwerver
  • Registratie: Februari 2001
  • Niet online
Gooi je amavis-new eens even hier neer binnen [code][/code] tags? Daar kunnen we wat meer mee.

Woonachtig Down Under. Ik negeer je insults niet, maar tegen de tijd dat ik ze lees zijn ze meestal niet relevant meer


Acties:
  • 0 Henk 'm!

  • JaWi
  • Registratie: Maart 2003
  • Laatst online: 28-03 15:36

JaWi

maak het maar stuk hoor...

sturkel schreef op donderdag 16 juni 2005 @ 11:52:
...
Heeft er iemand een tutorial of punten waar ik op moet letten in de config, want nu draait dus alleen postfix zonder spam en virusscanner
Shameless plug (nog niet helemaal af trouwens, maar bevat wel de meest relevante zaken...

Statistics are like bikinis. What they reveal is suggestive, but what they hide is vital.


Acties:
  • 0 Henk 'm!

  • sturkel
  • Registratie: Oktober 2001
  • Laatst online: 13:18
de inhoud van amavisd-new is te groot, maar hieronder main.cf, master.cf amavisd.conf
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
soft_bounce=yes
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = sturkel.homeip.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = sturkel.homeip.net, amd900, localhost.localdomain, localhost
relayhost = 
mynetworks = 127.0.0.0/8, 10.0.0.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

#transport_maps = hash:/etc/postfix/transport
#relay_domains = hash:/etc/postfix/relay_domains
maximal_queue_lifetime = 30d
message_size_limit = 20480000

# AntiVir MailGate
#content_filter = smtp:127.0.0.1:10024
smtpd_helo_required = yes


code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#
# Postfix master process configuration file.  Each logical line 
# describes how a Postfix daemon program should be run. 
#
# A logical line starts with non-whitespace, non-comment text.
# Empty lines and whitespace-only lines are ignored, as are comment 
# lines whose first non-whitespace character is a `#'.  
# A line that starts with whitespace continues a logical line.
#
# The fields that make up each line are described below. A "-" field
# value requests that a default value be used for that field.
#
# Service: any name that is valid for the specified transport type
# (the next field).  With INET transports, a service is specified as
# host:port.  The host part (and colon) may be omitted. Either host
# or port may be given in symbolic form or in numeric form. Examples
# for the SMTP server:  localhost:smtp receives mail via the loopback
# interface only; 10025 receives mail on port 10025.
#
# Transport type: "inet" for Internet sockets, "unix" for UNIX-domain
# sockets, "fifo" for named pipes.
#
# Private: whether or not access is restricted to the mail system.
# Default is private service.  Internet (inet) sockets can't be private.
#
# Unprivileged: whether the service runs with root privileges or as
# the owner of the Postfix system (the owner name is controlled by the
# mail_owner configuration variable in the main.cf file). Only the
# pipe, virtual and local delivery daemons require privileges.
#
# Chroot: whether or not the service runs chrooted to the mail queue
# directory (pathname is controlled by the queue_directory configuration
# variable in the main.cf file). Presently, all Postfix daemons can run
# chrooted, except for the pipe, virtual and local delivery daemons.
# The proxymap server can run chrooted, but doing so defeats most of
# the purpose of having that service in the first place.
# The files in the examples/chroot-setup subdirectory describe how
# to set up a Postfix chroot environment for your type of machine.
#
# Wakeup time: automatically wake up the named service after the
# specified number of seconds. A ? at the end of the wakeup time
# field requests that wake up events be sent only to services that
# are actually being used.  Specify 0 for no wakeup. Presently, only
# the pickup, queue manager and flush daemons need a wakeup timer.
#
# Max procs: the maximum number of processes that may execute this
# service simultaneously. Default is to use a globally configurable
# limit (the default_process_limit configuration parameter in main.cf).
# Specify 0 for no process count limit.
#
# Command + args: the command to be executed. The command name is
# relative to the Postfix program directory (pathname is controlled by
# the daemon_directory configuration variable). Adding one or more
# -v options turns on verbose logging for that service; adding a -D
# option enables symbolic debugging (see the debugger_command variable
# in the main.cf configuration file). See individual command man pages
# for specific command-line options, if any.
#
# General main.cf options can be overridden for specific services.
# To override one or more main.cf options, specify them as arguments
# below, preceding each option by "-o".  There must be no whitespace
# in the option itself (separate multiple values for an option by
# commas).
#
# In order to use the "uucp" message tranport below, set up entries
# in the transport table.
#
# In order to use the "cyrus" message transport below, configure it
# in main.cf as the mailbox_transport.
#
# SPECIFY ONLY PROGRAMS THAT ARE WRITTEN TO RUN AS POSTFIX DAEMONS.
# ALL DAEMONS SPECIFIED HERE MUST SPEAK A POSTFIX-INTERNAL PROTOCOL.
#
# DO NOT SHARE THE POSTFIX QUEUE BETWEEN MULTIPLE POSTFIX INSTANCES.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#smtp      inet  n       -       n       -       4       smtpd
#   -o content_filter = smtp-amavis:[127.0.0.1]:10024
#   -o smtpd_client_connection_count_limit=4
#This is the after-filter smtpd, it receives mail from amavisd to port 10025
127.0.0.1:10025    inet  n       -       n       -       -       smtpd
        -o smtpd_authorized_xforward_hosts=127.0.0.0/8
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o smtpd_data_restrictions=
        -o receive_override_options=no_unknown_recipient_checks
#submission inet n      -       -       -       -       smtpd
#   -o smtpd_etrn_restrictions=reject
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       -       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce

trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
scalemail-backend unix  -   n   n   -   2   pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}

# only used by postfix-tls
#tlsmgr   fifo  -   -   n   300 1   tlsmgr
#smtps    inet  n   -   n   -   -   smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587      inet  n   -   n   -   -   smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes

#localhost:smtp-backdoor inet n - n - - smtpd -o content_filter=
#tlsmgr    unix  -       -       -       1000?   1       tlsmgr
#scache    unix  -       -       -       -       1       scache
#discard   unix  -       -       -       -       -       discard

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
use strict;

#Sections:
# Section I    - Essential daemon and MTA settings
# Section II   - MTA specific
# Section III  - Logging
# Section IV   - Notifications/DSN, BOUNCE/REJECT/DROP/PASS destiny, quarantine
# Section V    - Per-recipient and per-sender handling, whitelisting, etc.
# Section VI   - Resource limits
# Section VII  - External programs, virus scanners, SpamAssassin
# Section VIII - Debugging

#
# Section I - Essential daemon and MTA settings
#
$MYHOME = '/var/lib/amavis';   # (default is '/var/amavis')
$mydomain = 'sturkel.homeip.net';      # (no useful default)
$daemon_user  = 'amavis';   # (no default (undef))
$daemon_group = 'amavis';   # (no default (undef))
$TEMPBASE = "$MYHOME/tmp";     # prefer to keep home dir /var/amavis clean?
$pid_file  = "/var/run/amavis/amavisd.pid";  # (default: "$MYHOME/amavisd.pid")
$lock_file = "/var/run/amavis/amavisd.lock"; # (default: "$MYHOME/amavisd.lock")
$ENV{TMPDIR} = $TEMPBASE;       # wise to set TMPDIR, but not obligatory
$forward_method = 'smtp:127.0.0.1:10025';  # where to forward checked mail
$notify_method = $forward_method;          # where to submit notifications
$max_servers  =  4;   # This should match the smtp/maxproc in the postfix master.cf
$max_requests = 10;   # retire a child after that many accepts (default 10)
$child_timeout=20*60;  # abort child if it does not complete each task in n sec
@local_domains_acl = ( ".$mydomain" );  # $mydomain and its subdomains

#
# Section II - MTA specific (defaults should be ok)
#
$relayhost_is_client = 0;         # (defaults to false)
$insert_received_line = 1;        # behave like MTA: insert 'Received:' header
                      # (does not apply to sendmail/milter)
                      # (default is true (1) )
$unix_socketname = undef;         # disable listening on a unix socket
$inet_socket_port = 10024;        # accept SMTP on this local TCP port
                                  # (default is undef, i.e. disabled)
$inet_socket_bind = '127.0.0.1';  # limit socket bind to loopback interface
                                  # (default is '127.0.0.1')
@inet_acl = qw( 127.0.0.1 );      # allow SMTP access only from localhost IP
                                  # (default is qw( 127.0.0.1 ) )
$DO_SYSLOG = 1;                 # (defaults to false)
$LOGFILE = '/var/log/amavis.log';  # (defaults to empty, no log)
$log_level = 5;     # (defaults to 0)
# log both infected and noninfected messages (default):
$log_templ = '[? %#V |[? %#F |[?%#D|Not-Delivered|Passed]|BANNED name/type (%F)]|INFECTED (%V)], #
[?%o|(?)|<%o>] -> [<%R>|,][? %i ||, quarantine %i], Message-ID: %m, Hits: %c';
read_l10n_templates('en_US', '/etc/amavis');
$final_virus_destiny      = D_DISCARD; # (defaults to D_BOUNCE)
$final_banned_destiny     = D_DISCARD;  # (defaults to D_BOUNCE)
$final_spam_destiny       = D_BOUNCE;  # (defaults to D_REJECT)
$final_bad_header_destiny = D_PASS;  # (defaults to D_PASS), D_BOUNCE suggested
$viruses_that_fake_sender_re = new_RE(
  qr'nimda|hybris|klez|bugbear|yaha|braid|sobig|fizzer|palyh|peido|holar'i,
  qr'tanatos|lentin|bridex|mimail|trojan\.dropper|dumaru|parite|spaces'i,
  qr'dloader|galil|gibe|swen|netwatch|bics|sbrowse|sober|rox|val(hal)?la'i,
  qr'frethem|sircam|be?agle|tanx|mydoom|novarg|shimg|netsky|somefool|moodown'i,
  qr'@mm|@MM',    # mass mailing viruses as labeled by f-prot and uvscan
  qr'Worm'i,      # worms as labeled by ClamAV, Kaspersky, etc
  [qr'^(EICAR|Joke\.|Junk\.)'i         => 0],
  [qr'^(WM97|OF97|W95/CIH-|JS/Fort)'i  => 0],
  [qr/.*/ => 1],  # true by default  (remove or comment-out if undesired)
);
$virus_admin = undef;   # do not send virus admin notifications (default)
$mailfrom_to_quarantine = '';   # override sender address with null return path
$QUARANTINEDIR = '/var/lib/amavis/virusmails';
$virus_quarantine_to  = 'virus-quarantine';    # traditional local quarantine
$spam_quarantine_to = 'spam-quarantine';
# Add X-Virus-Scanned header field to mail?
$X_HEADER_TAG = 'X-Virus-Scanned';  # (default: undef)
# Leave empty to add no header      # (default: undef)
$X_HEADER_LINE = "by $myversion (Debian) at $mydomain";
$undecipherable_subject_tag = '***UNCHECKED*** ';  # undef disables it
$remove_existing_x_scanned_headers = 0; # leave existing X-Virus-Scanned alone
$remove_existing_spam_headers  = 1;     # remove existing spam headers if
                    # spam scanning is enabled (default)
$keep_decoded_original_re = new_RE(
  qr'^MAIL-UNDECIPHERABLE$',  # retain full mail if it contains undecipherables
  qr'^(ASCII(?! cpio)|text|uuencoded|xxencoded|binhex)'i,
);

$banned_filename_re = new_RE(

   qr'\.[^.]*\.(exe|vbs|pif|scr|bat|cmd|com|dll)$'i, # some double extensions
   qr'[{}]',     # curly braces in names (serve as Class ID extensions - CLSID)
   qr'^message/partial$'i,  # rfc2046. this one is deadly for Outcrook
);

#
# Section V - Per-recipient and per-sender handling, whitelisting, etc.
#
#read_hash(\%local_domains, '/etc/postfix/relay_domains');
#read_hash(\%local_domains);
$sql_select_white_black_list = undef;  # undef disables SQL white/blacklisting
$recipient_delimiter = '+';     # (default is '+')
$replace_existing_extension = 1;    # (default is false)
$localpart_is_case_sensitive = 0;   # (default is false)
$blacklist_sender_re = new_RE(
    qr'^(bulkmail|offers|cheapbenefits|earnmoney|foryou|greatcasino)@'i,
    qr'^(investments|lose_weight_today|market\.alert|money2you|MyGreenCard)@'i,
    qr'^(new\.tld\.registry|opt-out|opt-in|optin|saveonl|smoking2002k)@'i,
    qr'^(specialoffer|specialoffers|stockalert|stopsnoring|wantsome)@'i,
    qr'^(workathome|yesitsfree|your_friend|greatoffers)@'i,
    qr'^(inkjetplanet|marketopt|MakeMoney)\d*@'i,
);
read_hash(\%whitelist_sender, '/var/lib/amavis/whitelist');
read_hash(\%blacklist_sender, '/var/lib/amavis/blacklist');
read_hash(\%spam_lovers, '/var/lib/amavis/spam_lovers');
map { $whitelist_sender{lc($_)}=1 } (qw(
  nobody@cert.org
  owner-alert@iss.net
  slashdot@slashdot.org
  bugtraq@securityfocus.com
  NTBUGTRAQ@LISTSERV.NTBUGTRAQ.COM
  security-alerts@linuxsecurity.com
  amavis-user-admin@lists.sourceforge.net
  razor-users-admin@lists.sourceforge.net
  notification-return@lists.sophos.com
  mailman-announce-admin@python.org
  zope-announce-admin@zope.org
  owner-postfix-users@postfix.org
  owner-postfix-announce@postfix.org
  owner-sendmail-announce@lists.sendmail.org
  sendmail-announce-request@lists.sendmail.org
  ca+envelope@sendmail.org
  owner-technews@postel.ACM.ORG
  lvs-users-admin@LinuxVirtualServer.org
  ietf-123-owner@loki.ietf.org
  cvs-commits-list-admin@gnome.org
  rt-users-admin@lists.fsck.com
  owner-announce@mnogosearch.org
  owner-hackers@ntp.org
  owner-bugs@ntp.org
  clp-request@comp.nus.edu.sg
  surveys-errors@lists.nua.ie
  emailNews@genomeweb.com
  owner-textbreakingnews@CNNIMAIL12.CNN.COM
  yahoo-dev-null@yahoo-inc.com
));



#
# Section VI - Resource limits
#

$MAXLEVELS = 14;        # (default is undef, no limit)
$MAXFILES = 1500;       # (default is undef, no limit)
$MIN_EXPANSION_QUOTA =      100*1024;  # bytes  (default undef, not enforced)
$MAX_EXPANSION_QUOTA = 300*1024*1024;  # bytes  (default undef, not enforced)
$MIN_EXPANSION_FACTOR =   5;  # times original mail size  (must be specified)
$MAX_EXPANSION_FACTOR = 500;  # times original mail size  (must be specified)


#
# Section VII - External programs, virus scanners
#
$path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin';
$file   = 'file';   # file(1) utility; use 3.41 or later to avoid vulnerability
$gzip   = 'gzip';
$bzip2  = 'bzip2';
$lzop   = 'lzop';
$uncompress = ['uncompress', 'gzip -d', 'zcat'];
$unfreeze   = ['unfreeze', 'freeze -d', 'melt', 'fcat'];
$arc        = ['nomarch', 'arc'];
$unarj      = ['arj', 'unarj'];  # both can extract, arj is recommended
$unrar      = ['rar', 'unrar'];  # both can extract, same options
$zoo    = 'zoo';
$lha    = 'lha';
$cpio   = 'cpio';   # comment out if cpio does not support GNU options

# SpamAssassin settings
$sa_local_tests_only = 0;   # (default: false)
$sa_auto_whitelist = 1;    # turn on AWL (default: false)
$sa_timeout = 30;           # timeout in seconds for a call to SpamAssassin
                            # (default is 30 seconds, undef disables it)
$sa_mail_body_size_limit = 200*1024;  # don't waste time on SA is mail is larger
                # (less than 1% of spam is > 64k)
                # default: undef, no limitations
$sa_tag_level_deflt  = 2.0; # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 6.31; # add 'spam detected' headers at that level
$sa_kill_level_deflt = $sa_tag2_level_deflt; # triggers spam evasive actions
$sa_dsn_cutoff_level = 9;  # spam level beyond which a DSN is not sent,
                            # effectively turning D_BOUNCE into D_DISCARD;
                            # undef disables this feature and is a default;
#$sa_quarantine_cutoff_level = 20;  # spam level beyond which quarantine is off
                    # Doesn't work in 20030616p10
$sa_spam_subject_tag = '***SPAM*** ';   # (defaults to undef, disabled)
                 # (only seen when spam is not to be rejected
                 # and recipient is in local_domains*)
$first_infected_stops_scan = 1;  # default is false, all scanners are called
@av_scanners = (
### http://www.clamav.net/
['Clam Antivirus-clamd',
  \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.ctl"],
  qr/\bOK$/, qr/\bFOUND$/,
  qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
# NOTE: run clamd under the same user as amavisd;  match the socket
# name (LocalSocket) in clamav.conf to the socket name in this entry
# When running chrooted one may prefer: ["CONTSCAN {}\n","$MYHOME/clamd"],

);

@av_scanners_backup = (

### http://www.clamav.net/
['Clam Antivirus - clamscan', 'clamscan',
  "--stdout --no-summary -r --tempdir=$TEMPBASE {}", [0], [1],
  qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],

);

#
# Section VIII - Debugging
#

# Turn on SpamAssassin debugging (output to STDERR, use with 'amavisd debug')
$sa_debug = 1;            # defaults to false

1;  # insure a defined return

[AMD 64 X2 3800] [Asus a8n-e] [2048mb Kingston] [nvidia 7300GS] [2*Seagate160GB s-ata] [WD 120GB 8MB] [Plextor px-708a] [nec 4550]


Acties:
  • 0 Henk 'm!

Anoniem: 73447

Probeer je amavis als gewone user te starten?
Dan zou het kunnen dat je /etc/amavis/amavisd.conf niet mag lezen...
Probeer eens als root...

Acties:
  • 0 Henk 'm!

  • sturkel
  • Registratie: Oktober 2001
  • Laatst online: 13:18
amavis kan gestart worden als user en als root, dus daarin zit volgens mij het probleem niet.
maar als ik een mail stuur komt deze gewoonweg niet aan wanneer ik in master.cf het volgende verander:
zonder contentfilter, dus werkend
code:
1
smtp      inet  n       -       -       -       -       smtpd
met content filter:
code:
1
2
3
smtp      inet  n       -       n       -       4       smtpd
    -o content_filter = smtp-amavis:[127.0.0.1]:10024
    -o smtpd_client_connection_count_limit=4

[AMD 64 X2 3800] [Asus a8n-e] [2048mb Kingston] [nvidia 7300GS] [2*Seagate160GB s-ata] [WD 120GB 8MB] [Plextor px-708a] [nec 4550]


Acties:
  • 0 Henk 'm!

  • imdos
  • Registratie: Maart 2000
  • Laatst online: 11:35

imdos

I use FreeNAS and Ubuntu

Ik heb die content filter alleen aanstaan in main.cf en dit in mijn master.cf
code:
1
2
3
smtp-amavis unix -      -        n      -       2  smtp
    -o smtp_data_done_timeout=1200
    -o disable_dns_lookups=yes

Met dat werkt mijn postfix en amavis

pvoutput. Waarom makkelijk doen, als het ook moeilijk kan! Every solution has a new problem


Acties:
  • 0 Henk 'm!

  • sturkel
  • Registratie: Oktober 2001
  • Laatst online: 13:18
imdos schreef op donderdag 23 juni 2005 @ 22:23:
Ik heb die content filter alleen aanstaan in main.cf en dit in mijn master.cf
code:
1
2
3
smtp-amavis unix -      -        n      -       2  smtp
    -o smtp_data_done_timeout=1200
    -o disable_dns_lookups=yes

Met dat werkt mijn postfix en amavis
zou je jou versie van main.cf master.cf en amavisd.conf dan eens willen posten.
en heb je ook nog /etc/services gewijzigd voor smtp-amavisd?

[AMD 64 X2 3800] [Asus a8n-e] [2048mb Kingston] [nvidia 7300GS] [2*Seagate160GB s-ata] [WD 120GB 8MB] [Plextor px-708a] [nec 4550]

Pagina: 1