On Tue, Oct 12, 2010 at 11:32 AM, Gary Smith <gary.sm...@holdstead.com>wrote:

>
> >The spam-assassin filter is still on testing period so some messages are
> marked as SPAM only but are not blocked. Could that be the reason of
> duplicated emails?
>
> Possibly a problem with SA.  If you remove it does the problem go away?
>
> Also think about how spam assassin is configured.  If you are like most
> people it goes MTA -> postqueue (SA) -> MTA. So, if you are running the
> basic run of the mill SA you are re-injecting the email into the system on
> local, which is why you are seeing the entries twice.
>
> I assume there is more to the log file that you aren't including (like the
> MTA connection?  If you look at it, you are probably getting an external
> connection, accepting it, processing it, handing it to SA, then you will see
> a connection from localhost, accepting it, processing it, forwarding it on
> (or delivering local).  Are you seeing this in your logs?
>
>
> Also think about how spam assassin is configured.  If you are like most
people it goes MTA -> postqueue (SA) -> MTA. So, if you are running the
basic run of > the mill SA you are re-injecting the email into the system on
local, which is why you are seeing the entries twice.

Yes, that seems to be the reason of the duplicated logs.

I have done several sending tests with other accounts in the same mail
server and no duplicated-messages problem exists. However none of the mails
I have send for testing are marked as SPAM.

@Dave. This is main.cf: (domain name is not the real one)

biff = no
append_dot_mydomain = no
readme_directory = no
relayhost =
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
content_filter = scan:127.0.0.1:10024
receive_override_options = no_address_mappings
mydomain = mailserver.co.jp
myhostname = mail.mailserver.co.jp
myorigin = $myhostname
mydestination = $myhostname
mynetworks = $myhostname 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
192.168.0.0/24
smtpd_banner = $myhostname ESMTP
mailbox_size_limit = 50480000
mailbox_command =
home_mailbox = /
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
virtual_alias_domains = /etc/postfix/vhosts
virtual_alias_maps = hash:/etc/postfix/vusers
smtpd_use_tls = yes
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/sasl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/sasl/smtpd.key
smtpd_tls_CAfile = /etc/postfix/sasl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_tls_note_starttls_offer = yes
tls_random_source = dev:/dev/urandom
#SASL Authorization
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_authenticated_header = no
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
#support for some old clients:
broken_sasl_auth_clients = yes
smtpd_delay_reject = yes
smtpd_helo_required = yes
disable_vrfy_command = yes
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_recipient_restrictions =
     reject_unlisted_sender,
     permit_mynetworks,
     permit_sasl_authenticated,
     reject_unauth_destination,
     reject_unknown_recipient_domain,
     reject_unverified_recipient,
     reject_non_fqdn_recipient,
     reject_unlisted_recipient,
     reject_invalid_helo_hostname,
     reject_invalid_hostname,
     reject_non_fqdn_sender,
     reject_unknown_sender_domain,
     reject_rbl_client zen.spamhaus.org,
     reject_rbl_client dnsbl.njabl.org,
     reject_rbl_client bl.spamcop.net,
    permit


and master.cf:

smtp      inet  n       -       n       -       -       smtpd
scan      unix  -       -       -       -       2       smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes
        -o disable_dns_lookups=yes
        -o max_use=20

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_delay_reject=no
        -o smtpd_helo_restrictions=
        -o smtpd_end_of_data_restrictions=
        -o smtpd_error_sleep_time=0
        -o smtpd_soft_error_limit=1001
        -o smtpd_hard_error_limit=1000
        -o smtpd_client_connection_count_limit=0
        -o smtpd_client_connection_rate_limit=0
        -o
receive_override_options=no_header_body_checks,no_unknown_recipient_checks
submission inet n       -       -       -       -       smtpd
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  -o milter_macro_daemon_name=ORIGINATING
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
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
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
    -o smtp_fallback_relay=
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     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
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/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 -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}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}
587       inet  n       -       -       -       -       smtpd

Reply via email to