Ich habe mir einen mailserver mit postfix amavis procmail cyrus gebaut. der funktioniert soweit einwandfrei. amavis habe ich nach folgender anleitung installiert http://www.marlow.dk/tech/postfix.php
allerdings habe probleme spamassassin zu installieren.
datei "/etc/postfix/main.cf"
Code: Alles auswählen
# see /usr/share/postfix/main.cf.dist for a commented, fuller
# version of this file.
# Do not change these directory settings - they are critical to Postfix
# operation.
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
setgid_group = postdrop
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
myhostname = mailserver.meinedomain.de
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mailserver.meinedomain.de, localhost.meinedomain.de, , localhost
relayhost =
# lokales netz hinzugefuegt
mynetworks = 192.168.100.0/8, 127.0.0.0/8
# mailbox_command = procmail -a "$EXTENSION"
# procmail in master.cf angelegt
mailbox_transport = procmail
mailbox_size_limit = 0
recipient_delimiter = +
# amavis virenscanner
content_filter = smtp-amavis:[127.0.0.1]:10024
Code: Alles auswählen
smtp inet n - - - - smtpd
-o content_filter=smtp-amavis:[127.0.0.1]:10024
#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 nqmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
flush unix n - - 1000? 0 flush
smtp unix - - - - - smtp
showq unix n - - - - showq
error unix - - - - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
# The Cyrus deliver program has changed incompatibly.
#
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}
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}
# procmail hinzugefuegt
procmail unix - n n - - pipe
flags=R user=cyrus argv=/usr/bin/procmail -t -m USER=${user} SENDER=${sender} EXT=${extension} SENDER=${sender} /etc/procmailrc
# only used by postfix-tls
#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
# amavis virenscanner hinzugefuegt
smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200s
-o smtp_never_send_ehlo=yes
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
Code: Alles auswählen
VERBOSE="off"
:0fw
#* < 256000
| /usr/bin/spamc
#INCLUDERC=/home/$USER/.procmail
:0 w
|/usr/sbin/cyrdeliver -F R -a $USER -m "$EXT" $USER
Code: Alles auswählen
# /etc/default/spamd.conf
# Duncan Findlay
# November 2001
# WARNING read README.spamd before using. THERE ARE SECURITY RISKS!
# Change to one to enable spamd
ENABLED=1
# Options
# See man spamd for possible options. The -d option is automatically added.
OPTIONS="-a -c -m 6"
Code: Alles auswählen
/etc/init.d/spamassassin start
Code: Alles auswählen
Starting SpamAssassin Mail Filter Daemon: Cannot create tmp lockfile /root/.spamassassin/auto-whitelist.lock : No such file or directory.
die möglichkeit spamassassin nicht als deamon laufen zu lassen hat auch nicht funktioniert. spamassassin macht einfach das spam-flag nicht in die mails, egal was ich in der procmailrc aufrufe (ob spamd oder spamc oder spamassassin).
vielleicht kann mir ja jemand weiterhelfen oder hat ein ähnliches problem.
wenn das mal gelöst wäre, wäre es auch ein prima howto, um nen neuen mailserver mit diesen tools zu installieren.
viele gruesse,
andi
[/url]