I really want to thank you mr88talent because your "howto" is wonderfull !
Excepted that it seems like to not working for me
I've strictly followed your howto, but when it comes the time to test the eicar virus, it starts to show me that it's not well working --> the mail pass through the spam filter. ok it's not a virus filter but the eicar must be filtered by our machine ... By extension, the spam are not stoped : i've tried with the GFI's email tests (http://www.gfi.com/emailsecuritytest) and I received ALL the mails
So I can conclude that I've a problem...
I've triple checked every parameters, I've reinstalled from scratch, and I've checked once more every conf file, without any success.
would you please help me ?
------
here is my configuration :
spamfilter box (web02-gti) = 192.168.68.9
exchange server = 192.168.68.2
------
here is the mail.log extract concerning mail sending test (from GFI):
- Code: Select all
web02-gti:/usr/local/src# tail -f /var/log/mail.log
Feb 20 14:56:33 web02-gti amavis[2527]: Found decoder for .cab at /usr/bin/cabextract
Feb 20 14:56:33 web02-gti amavis[2527]: No decoder for .tnef tried: tnef
Feb 20 14:56:33 web02-gti amavis[2527]: Internal decoder for .tnef
Feb 20 14:56:33 web02-gti amavis[2527]: Found decoder for .exe at /usr/bin/unrar; /usr/bin/lha; /usr/bin/arj
Feb 20 14:56:33 web02-gti amavis[2527]: Using internal av scanner code for (primary) ClamAV-clamd
Feb 20 14:56:33 web02-gti amavis[2527]: Found primary av scanner BitDefender at /usr/bin/bdc
Feb 20 14:56:33 web02-gti amavis[2527]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Feb 20 14:56:33 web02-gti amavis[2527]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.26, libdb 4.3
Feb 20 14:56:36 web02-gti postfix/postfix-script: starting the Postfix mail system
Feb 20 14:56:36 web02-gti postfix/master[2600]: daemon started -- version 2.1.5
Feb 20 14:57:24 web02-gti postfix/smtpd[2507]: connect from localhost.localdomain[127.0.0.1]
Feb 20 14:57:24 web02-gti postfix/smtpd[2507]: 8042E56A79: client=localhost.localdomain[127.0.0.1]
Feb 20 14:57:24 web02-gti postfix/cleanup[2500]: 8042E56A79: message-id=<20060220195317.906C456A52@web02-gti.domain1.com>
Feb 20 14:57:24 web02-gti postfix/qmgr[2014]: 8042E56A79: from=<external_private_adress@other_domain.com>, size=2084, nrcpt=1 (queue active)
Feb 20 14:57:24 web02-gti postfix/smtpd[2507]: disconnect from localhost.localdomain[127.0.0.1]
Feb 20 14:57:24 web02-gti postfix/smtp[2501]: 906C456A52: to=<vmaillot@domain1.com>, relay=127.0.0.1[127.0.0.1], delay=7, status=sent (250 2.6.0 Ok, id=02496-01, from MTA([127.0.0.1]:10025): 250 Ok: queued as 8042E56A79)
Feb 20 14:57:24 web02-gti postfix/qmgr[2014]: 906C456A52: removed
Feb 20 14:57:24 web02-gti postfix/smtp[2508]: 8042E56A79: to=<vmaillot@domain1.com>, relay=192.168.68.2[192.168.68.2], delay=0, status=sent (250 2.6.0 <20060220195317.906C456A52@web02-gti.domain1.com> Queued mail for delivery)
Feb 20 14:57:24 web02-gti postfix/qmgr[2014]: 8042E56A79: removed
-----
master.cf
- Code: Select all
#
# Postfix master process configuration file. For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - - - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
-o content_filter=
-o receive_override_options=no_header_body_checks
cleanup unix n - - - 0 cleanup
qmgr fifo n - - 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
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
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
#
smtp-amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
#
127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o receive_override_options=no_header_body_checks,no_unknown_recipient_checks
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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}
-------
main.cf
- Code: Select all
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
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
alias_maps = hash:/etc/aliases
myorigin = domain1.com
myhostname = web02-gti.domain1.com
mynetworks = 127.0.0.0/8, 192.168.68.0/24
message_size_limit = 104857600
local_transport = error:no local mail delivery
mydestination =
local_recipient_maps =
virtual_alias_maps = hash:/etc/postfix/virtual
relayhost = [192.168.68.2]
relay_recipient_maps = hash:/etc/postfix/relay_recipients
transport_maps = hash:/etc/postfix/transport
relay_domains = domain1.com, domain2.ca, domain3.com, domain4.com
recipient_delimiter =
smtpd_helo_required = yes
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_access, reject_non_fqdn_sender, reject_unknown_sender_domain
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, reject_unauth_pipelining
smtpd_data_restrictions = reject_unauth_pipelining
header_checks = pcre:/etc/postfix/header_checks
body_checks = pcre:/etc/postfix/body_checks
content_filter = smtp-amavis:[127.0.0.1]:10024
-------
/etc/postfix/relay_recipients
- Code: Select all
@domain1.com 1
@domain2.com 1
@domain3.com 1
@domain4.com 1
------
/etc/postfix/transport
- Code: Select all
@domain1.com smtp:[192.168.68.2]
@domain2.com smtp:[192.168.68.2]
@domain3.com smtp:[192.168.68.2]
@domain4.com smtp:[192.168.68.2]
------
amavisd.conf is here : http://www.gtinnovatech.com/amavisd.txt
-----
edit = some orthography errors wiped out (sorry for my horrible english


