xv4_de

Mailserver Config

/etc/rc.conf

sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

postfix_enable="YES"
postfix_pidfile="/var/spool/postfix/pid/master.pid"
postfix_procname="/usr/local/libexec/postfix/master"
postfix_flags=""

courier_imap_imapd_enable="YES"
courier_imap_pop3d_enable="YES"
courier_imap_pop3d_ssl_enable="YES"
courier_imap_imapd_ssl_enable="YES"
courier_authdaemond_enable="YES"

amavisd_enable="YES"
spamd_enable="YES"

clamav_clamd_enable="YES"
clamav_freshclam_enable="YES"

postgrey_enable="YES"

Benutzer/Gruppe vmail anlegen

# vipw

vmail:*:5001:5001::0:0:User &:/dev/null:/sbin/nologin

/etc/group

der user clamav muss zur gruppe vscan gehören, die Gruppe vscan soll so aussehen

# ee /etc/group

vscan:*:110:clamav

und auch die gruppe vmail anlegen

vmail:*:5001:

Maildir anlegen

# mkdir /usr/local/virtual
# mkdir /usr/local/virtual-trash

# chown -R vmail:vmail /usr/local/virtual
# chown -R vmail:vmail /usr/local/virtual-trash