Paul Webb wrote:
> Hi,
>
> I've been running exim and spam assassin and encounter this error every
> so often. The mail server processes approximately 1000 messages per hour
> without trouble but once it hits about the 2000+ messages per hour
> messages start to bounce to sender. I've attached my router and
> transport sections and the bounce message with debugging turned on.
Not mentioned, but necessary information in this sort of case:
- "horsepower" of your platform (CPU, speed, memory, disk space)
- Upstream bandwidth, and whether it is throttled.
- What connections or message-size limits (if any) you are configured for
- What sort of resource load is SpamAssassin showing?
Bugs that might strike at 2,000 /hr should have already surfaced at
1000/hr, so
one suspects a simple shortage of resources (external to Exim, probably).
BIll
>
> Ideally if possible I'd like NOT to have the message bounce back to
> sender but keep the message and continually try and pass the message to
> spamassasin when and if it is available.
>
> Any help with the error or non bouncing would be greatly appreciated!
>
>
> Paul
>
>
>
> ERROR MSG:
>
> 2005-02-23 18:04:37 1D3qUj-0008X4-J6 ** xxx@??? R=spamcheck
> T=spamassassincheck: Child process of spamassassincheck transport
> returned 2 from command: /usr/local/sbin/exim
>
>
> ROUTER:
>
> spamcheck:
> no_verify
> condition = ${if and{{ !def:h_X-Spam-Flag: } \
> { !eq{$received_protocol}{spam-scanned} }} \
> {${lookup {$domain} \
> lsearch {/etc/mail/domains.dat} \
> {yes} {no} }} \
> {no} }
> driver = accept
> transport = spamassassincheck
>
>
> TRANSPORT:
>
> spamassassincheck:
> debug_print = "T: spamassassin for $local_part@$domain"
> driver = pipe
> command = /usr/local/sbin/exim -oMr spam-scanned -bS
> use_bsmtp
> transport_filter = /usr/local/bin/spamc -u $local_part@$domain
> home_directory = "/tmp"
> current_directory = "/tmp"
> user = mailnull
> group = mail
> return_fail_output
> headers_remove = "X-Spam-Checker-Version"
> message_prefix =
> message_suffix =
>
>
> BOUNCE MSG:
>
>>From MAILER-DAEMON Wed Feb 23 18:08:54 2005
> Return-path: <>
> Envelope-to: root@???
> Delivery-date: Wed, 23 Feb 2005 18:08:54 +1100
> Received: from mailnull by xxx.net.au with local (Exim 4.44 (FreeBSD))
> id 1D3qdi-000B7e-Up
> for root@???; Wed, 23 Feb 2005 18:08:54 +1100
> X-Failed-Recipients: xxxxxx.net.au
> Auto-Submitted: auto-generated
> From: Mail Delivery System <Mailer-Daemon@???>
> To: root@???
> Subject: Mail delivery failed: returning message to sender
> Message-Id: <E1D3qdi-000B7e-Up@???>
> Date: Wed, 23 Feb 2005 18:08:54 +1100
>
> This message was created automatically by mail delivery software.
>
> A message that you sent could not be delivered to one or more of its
> recipients. This is a permanent error. The following address(es) failed:
>
> xxx@???
> local delivery failed
>
> The following text was generated during the delivery attempt:
>
> ------ xxx@??? ------
>
> Exim version 4.44 (FreeBSD 5.2.1) uid=26 gid=6 pid=37554 D=fbb95cfd
> Probably Berkeley DB version 1.8x (native mode)
> Support for: iconv() IPv6 PAM Perl OpenSSL
> Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb
> dsearch nis nis0 passwd
> Authenticators: cram_md5 plaintext spa
> Routers: accept dnslookup ipliteral manualroute queryprogram redirect
> Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
> Fixed never_users: 0
> changed uid/gid: forcing real = effective
> uid=0 gid=6 pid=37554
> auxiliary group list: 6
> finduser used cached passwd data for mailnull
> configuration file is /usr/local/etc/exim/configure
> log selectors = 00000ffc 00010400
> trusted user
> admin user
> changed uid/gid: privilege not needed
> uid=26 gid=6 pid=37554
> auxiliary group list: 6
> finduser used cached passwd data for mailnull
> finduser used cached passwd data for mailnull
> originator: uid=26 gid=6 login=mailnull name=Exim User
> sender address = NULL
> in hosts_connection_nolog? no (option unset)
> LOG: smtp_connection MAIN
> SMTP connection from mailnull
> smtp_setup_msg entered
> SMTP<< MAIL FROM:<root@???>
> SMTP<< RCPT TO:<xxx@???>
> SMTP<< DATA
> search_tidyup called
> LOG: lost_incoming_connection smtp_connection MAIN
> SMTP connection from mailnull lost while reading message data (header)
> Handling error in batched SMTP input
> An error was detected while processing a file of BSMTP input.
> The error message was:
>
> 421 Lost incoming connection
>
> The SMTP transaction started in line 0.
> The error was detected in line 3.
> 0 previous messages were successfully processed.
> The rest of the batch was abandoned.
> search_tidyup called
>
>>>>>>>>>>>>>>>>>Exim pid=37554 terminating with rc=2 >>>>>>>>>>>>>>>>
>
> 421 Lost incoming connection
> Transaction started in line 0
> Error detected in line 3
>
> ------ This is a copy of the message, including all the headers. ------
>
> Return-path: <root@???>
> Received: from root by xxx.net.au with local (Exim 4.44 (FreeBSD))
> id 1D3qYs-0009lf-Sv
> for xxx@???; Wed, 23 Feb 2005 18:03:54 +1100
> To: xxx@???
> Subject: TEST
> Message-Id: <E1D3qYs-0009lf-Sv@???>
> From: Charlie Root <root@???>
> Date: Wed, 23 Feb 2005 18:03:54 +1100
>