[Pkg-exim4-users] Re : main option bounce_message_file doesn't work with Exim4 in Debian

Bruno CAPELETO bruno.capeleto at free.fr
Tue Jul 31 17:07:31 UTC 2007


Dear Marc,

Here the details of what is happening :

Scheme :
- I send an email from myname1 at free.fr to relayatfree at free.fr
- fetchmail retrieves relayatfree at free.fr and forwards localy to
myname2 at mycompany.com
- note : I do a backup of every outgoing mail (R=LocalBackup_router
T=LocalBackup_transport), this is the way I really see what the bounce
mail looks like (Mail delivery failure...)

--------------------- First with a normal mail ---------------------------

/var/log/syslog

Jul 27 22:03:09 mycompany fetchmail[4594]: démarrage de fetchmail 6.3.6
en tâche de fond
Jul 27 22:03:10 mycompany fetchmail[4594]: 1 message pour relayatfree
dans imap.free.fr.
Jul 27 22:03:10 mycompany spamd[3099]: spamd: connection from
mycompany.com [127.0.0.1] at port 48620
Jul 27 22:03:10 mycompany spamd[3099]: spamd: setuid to Debian-exim
succeeded
Jul 27 22:03:10 mycompany spamd[3099]: spamd: processing message
<46AA40A3.6020302 at free.fr> for Debian-exim:102
Jul 27 22:03:13 mycompany spamd[3099]: spamd: clean message (0.8/5.0)
for Debian-exim:102 in 2.9 seconds, 1601 bytes.
Jul 27 22:03:13 mycompany spamd[3099]: spamd: result: . 0 - AWL
scantime=2.9,size=1601,user=Debian-exim,uid=102,required_score=5.0,rhost=mycompany.com,raddr=127.0.0.1,rport=48620,mid=<46AA40A3.6020302 at free.fr>,autolearn=ham
Jul 27 22:03:13 mycompany spamd[2536]: prefork: child states: II
Jul 27 22:03:13 mycompany fetchmail[4594]: lecture du message
relayatfree at imap.free.fr:1 parmi 1 (1323 octets dans l'en-tête) (10
octets dans le corps) éliminé
Jul 27 22:03:13 mycompany fetchmail[4594]: mise en sommeil à ven 27 jui
2007 22:03:13 CEST pour 60 secondes

/var/log/exim4/mainlog

2007-07-27 22:03:10 1IEW1m-0001CB-9k SA: Debug: SAEximRunCond expand
returned: 'true'
2007-07-27 22:03:10 1IEW1m-0001CB-9k SA: Debug: check succeeded, running
spamc
2007-07-27 22:03:13 1IEW1m-0001CB-9k SA: Action: scanned but message
isn't spam: score=0.8 required=5.0 (scanned in 3/3 secs | Message-Id:
46AA40A3.6020302 at free.fr). From <myname1 at free.fr> (host=localhost
[127.0.0.1]) for myname2 at mycompany.com
2007-07-27 22:03:13 1IEW1m-0001CB-9k <= myname1 at free.fr H=localhost
(mycompany.com) [127.0.0.1] P=esmtp S=1882 id=46AA40A3.6020302 at free.fr
2007-07-27 22:03:13 1IEW1m-0001CB-9k => capeleb <myname2 at mycompany.com>
R=local_user T=maildir_home
2007-07-27 22:03:13 1IEW1m-0001CB-9k Completed

--------------------------- Now with a spam mail ---------------------------

/var/log/syslog

Jul 27 22:06:34 mycompany fetchmail[4633]: démarrage de fetchmail 6.3.6
en tâche de fond
Jul 27 22:06:36 mycompany fetchmail[4633]: 1 message pour relayatfree
dans imap.free.fr.
Jul 27 22:06:37 mycompany spamd[3099]: spamd: connection from
mycompany.com [127.0.0.1] at port 36279
Jul 27 22:06:37 mycompany spamd[3099]: spamd: setuid to Debian-exim
succeeded
Jul 27 22:06:37 mycompany spamd[3099]: spamd: processing message
<46AA4183.4000708 at free.fr> for Debian-exim:102
Jul 27 22:06:41 mycompany spamd[3099]: spamd: identified spam
(1002.0/5.0) for Debian-exim:102 in 4.6 seconds, 1684 bytes.
Jul 27 22:06:41 mycompany spamd[3099]: spamd: result: Y 1002 -
AWL,GTUBE,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E4_51_100,RAZOR2_CHECK
scantime=4.6,size=1684,user=Debian-exim,uid=102,required_score=5.0,rhost=mycompany.com,raddr=127.0.0.1,rport=36279,mid=<46AA4183.4000708 at free.fr>,autolearn=no
Jul 27 22:06:41 mycompany spamd[2536]: prefork: child states: II
Jul 27 22:06:41 mycompany fetchmail[4633]: lecture du message
relayatfree at imap.free.fr:1 parmi 1 (1345 octets dans l'en-tête) (72
octets dans le corps) (message de trace incomplet)
Jul 27 22:06:41 mycompany fetchmail[4633]: Erreur SMTP: 550 Rejected
Jul 27 22:06:41 mycompany fetchmail[4633]: message depuis
MAILER-DAEMON at mycompany.com ayant rebondi sur myname1 at free.fr
Jul 27 22:06:42 mycompany spamd[3099]: spamd: connection from
mycompany.com [127.0.0.1] at port 36285
Jul 27 22:06:42 mycompany spamd[3099]: spamd: setuid to Debian-exim
succeeded
Jul 27 22:06:42 mycompany spamd[3099]: spamd: processing message
<E1IEW5B-0001Ct-R1 at mycompany.com> for Debian-exim:102
Jul 27 22:06:45 mycompany spamd[3099]: spamd: clean message (-1.4/5.0)
for Debian-exim:102 in 3.2 seconds, 2593 bytes.
Jul 27 22:06:45 mycompany spamd[3099]: spamd: result: . -1 - ALL_TRUSTED
scantime=3.2,size=2593,user=Debian-exim,uid=102,required_score=5.0,rhost=mycompany.com,raddr=127.0.0.1,rport=36285,mid=<E1IEW5B-0001Ct-R1 at mycompany.com>,autolearn=ham
Jul 27 22:06:45 mycompany spamd[2536]: prefork: child states: II
Jul 27 22:06:45 mycompany fetchmail[4633]: Le serveur SMTP a refusé de
délivrer le courrier
Jul 27 22:06:45 mycompany fetchmail[4633]: éliminé
Jul 27 22:06:45 mycompany fetchmail[4633]: mise en sommeil à ven 27 jui
2007 22:06:45 CEST pour 60 secondes

/var/log/exim4/mainlog

2007-07-27 22:06:37 1IEW57-0001Co-49 SA: Debug: SAEximRunCond expand
returned: 'true'
2007-07-27 22:06:37 1IEW57-0001Co-49 SA: Debug: check succeeded, running
spamc
2007-07-27 22:06:41 1IEW57-0001Co-49 SA: Debug: Writing message to
/var/spool/sa-exim/SApermreject/new/1185566801_46AA4183.4000708 at free.fr
2007-07-27 22:06:41 1IEW57-0001Co-49 SA: Action: permanently rejected
message: score=1002.0 required=5.0 trigger=12.0 (scanned in 4/4 secs |
Message-Id: 46AA4183.4000708 at free.fr). From <myname1 at free.fr>
(host=localhost [127.0.0.1]) for myname2 at mycompany.com
2007-07-27 22:06:41 1IEW57-0001Co-49 F=myname1 at free.fr H=localhost
(mycompany.com) [127.0.0.1] P=esmtp rejected by local_scan(): Rejected
2007-07-27 22:06:41 1IEW5B-0001Ct-R1 SA: Debug: SAEximRunCond expand
returned: 'true'
2007-07-27 22:06:41 1IEW5B-0001Ct-R1 SA: Debug: check succeeded, running
spamc
2007-07-27 22:06:45 1IEW5B-0001Ct-R1 SA: Action: scanned but message
isn't spam: score=-1.4 required=5.0 (scanned in 4/4 secs | Message-Id:
E1IEW5B-0001Ct-R1 at mycompany.com). From <> (host=localhost [127.0.0.1])
for myname1 at free.fr
2007-07-27 22:06:45 1IEW5B-0001Ct-R1 <= <> H=localhost (mycompany.com)
[127.0.0.1] P=smtp S=2883
2007-07-27 22:06:45 1IEW5B-0001Ct-R1 => myname1 <myname1 at free.fr>
R=LocalBackup_router T=LocalBackup_transport
2007-07-27 22:06:45 1IEW5B-0001Ct-R1 => myname1 at free.fr R=smarthost
T=remote_smtp_smarthost H=smtp.free.fr [212.27.48.4]
2007-07-27 22:06:45 1IEW5B-0001Ct-R1 Completed

-------------------------- output of exim -bP ---------------------------

no_accept_8bitmime
acl_not_smtp =
acl_not_smtp_mime =
acl_not_smtp_start =
acl_smtp_auth =
acl_smtp_connect =
acl_smtp_data = acl_check_data
acl_smtp_etrn =
acl_smtp_expn =
acl_smtp_helo =
acl_smtp_mail = acl_check_mail
acl_smtp_mailauth =
acl_smtp_mime =
acl_smtp_predata =
acl_smtp_quit =
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_starttls =
acl_smtp_vrfy =
admin_groups =
no_allow_domain_literals
no_allow_mx_to_ip
no_allow_utf8_domains
auth_advertise_hosts = *
auto_thaw = 0s
av_scanner = clamd:/var/run/clamav/clamd.ctl
bi_command =
bounce_message_file = /etc/exim4/bouncemessage
bounce_message_text =
bounce_return_body
bounce_return_message
bounce_return_size_limit = 100K
bounce_sender_authentication =
callout_domain_negative_expire = 3h
callout_domain_positive_expire = 1w
callout_negative_expire = 2h
callout_positive_expire = 1d
callout_random_local_part = $primary_hostname-$tod_epoch-testing
check_log_inodes = 0
check_log_space = 0
check_rfc2047_length
check_spool_inodes = 0
check_spool_space = 0
daemon_smtp_ports = smtp
daemon_startup_retries = 9
daemon_startup_sleep = 30s
delay_warning = 1d
delay_warning_condition = ${if or {{
!eq{$h_list-id:$h_list-post:$h_list-subscribe:}{} }{
match{$h_precedence:}{(?i)bulk|list|junk} }{
match{$h_auto-submitted:}{(?i)auto-generated|auto-replied} }} {no}{yes}}
no_deliver_drop_privilege
deliver_queue_load_max =
delivery_date_remove
no_disable_ipv6
dns_again_means_nonexist =
dns_check_names_pattern = (?i)^(?>(?(1)\.|())[^\W_](?>[a-z0-9/-]*[^\W_])?)+$
dns_csa_search_limit = 5
dns_csa_use_reverse
dns_ipv4_lookup =
dns_retrans = 0s
dns_retry = 0
no_drop_cr
envelope_to_remove
errors_copy =
errors_reply_to =
exim_group = Debian-exim
exim_path = /usr/sbin/exim4
exim_user = Debian-exim
extra_local_interfaces =
extract_addresses_remove_arguments
finduser_retries = 0
freeze_tell = postmaster
gecos_name = $1
gecos_pattern = ^([^,:]*)
header_line_maxsize = 0
header_maxsize = 1048576
headers_charset = UTF-8
helo_accept_junk_hosts =
helo_allow_chars =
helo_lookup_domains = @ : @[]
helo_try_verify_hosts =
helo_verify_hosts =
hold_domains =
host_lookup = *
host_lookup_order = bydns:byaddr
host_reject_connection =
hosts_connection_nolog =
hosts_treat_as_local =
ignore_bounce_errors_after = 2d
ignore_fromline_hosts =
no_ignore_fromline_local
keep_malformed = 4d
ldap_default_servers =
ldap_version = -1
no_local_from_check
local_from_prefix =
local_from_suffix =
local_interfaces = 127.0.0.1:192.168.0.10
local_scan_path = /usr/lib/exim4/local_scan/sa-exim.so
local_scan_timeout = 5m
local_sender_retain
localhost_number =
log_file_path = /var/log/exim4/%slog
log_selector = +tls_peerdn
no_log_timezone
lookup_open_max = 25
max_username_length = 0
message_body_visible = 500
message_id_header_domain =
message_id_header_text =
message_logs
message_size_limit = 50M
no_move_frozen_messages
no_mua_wrapper
mysql_servers =
never_users =
percent_hack_domains =
no_perl_at_start
perl_startup =
pgsql_servers =
pid_file_path = /var/run/exim4/exim.pid
pipelining_advertise_hosts = *
no_preserve_message_logs
primary_hostname = mycompany.com
no_print_topbitchars
process_log_path =
prod_requires_admin
qualify_domain = mycompany.com
qualify_recipient = mycompany.com
queue_domains =
queue_list_requires_admin
no_queue_only
queue_only_file =
queue_only_load =
queue_only_override
no_queue_run_in_order
queue_run_max = 5
queue_smtp_domains =
receive_timeout = 0s
received_header_text = Received: ${if def:sender_rcvhost {from
$sender_rcvhost\n\t}{${if def:sender_ident {from
${quote_local_part:$sender_ident} }}${if def:sender_helo_name
{(helo=$sender_helo_name)\n\t}}}}by $primary_hostname ${if
def:received_protocol {with $received_protocol}} ${if def:tls_cipher
{($tls_cipher)\n\t}}(Exim $version_number)\n\t${if def:sender_address
{(envelope-from <$sender_address>)\n\t}}id $message_exim_id${if
def:received_for {\n\tfor $received_for}}
received_headers_max = 30
recipient_unqualified_hosts =
recipients_max = 0
no_recipients_max_reject
remote_max_parallel = 2
remote_sort_domains =
retry_data_expire = 1w
retry_interval_max = 1d
return_path_remove
rfc1413_hosts = *
rfc1413_query_timeout = 5s
sender_unqualified_hosts =
smtp_accept_keepalive
smtp_accept_max = 20
smtp_accept_max_nonmail = 10
smtp_accept_max_nonmail_hosts = *
smtp_accept_max_per_connection = 1000
smtp_accept_max_per_host =
smtp_accept_queue = 0
smtp_accept_queue_per_connection = 10
smtp_accept_reserve = 0
smtp_active_hostname =
smtp_banner = $smtp_active_hostname ESMTP Exim $version_number $tod_full
smtp_check_spool_space
smtp_connect_backlog = 20
smtp_enforce_sync
smtp_etrn_command =
smtp_etrn_serialize
smtp_load_reserve =
smtp_max_synprot_errors = 3
smtp_max_unknown_commands = 3
smtp_ratelimit_hosts =
smtp_ratelimit_mail =
smtp_ratelimit_rcpt =
smtp_receive_timeout = 5m
smtp_reserve_hosts =
no_smtp_return_error_details
spamd_address = 127.0.0.1 783
no_split_spool_directory
spool_directory = /var/spool/exim4
sqlite_lock_timeout = 5
no_strip_excess_angle_brackets
no_strip_trailing_dot
syslog_duplication
syslog_facility =
syslog_processname = exim
syslog_timestamp
system_filter =
system_filter_directory_transport =
system_filter_file_transport =
system_filter_group =
system_filter_pipe_transport =
system_filter_reply_transport =
system_filter_user =
tcp_nodelay
timeout_frozen_after = 1w
timezone =
tls_advertise_hosts =
tls_certificate =
tls_crl =
tls_dhparam =
tls_on_connect_ports =
tls_privatekey =
no_tls_remember_esmtp
tls_require_ciphers =
tls_try_verify_hosts =
tls_verify_certificates =
tls_verify_hosts =
trusted_groups =
trusted_users = uucp
unknown_login =
unknown_username =
untrusted_set_sender = *
uucp_from_pattern =
^From\s+(\S+)\s+(?:[a-zA-Z]{3},?\s+)?(?:[a-zA-Z]{3}\s+\d?\d|\d?\d\s+[a-zA-Z]{3}\s+\d\d(?:\d\d)?)\s+\d\d?:\d\d?
uucp_from_sender = $1
warn_message_file =
write_rejectlog

----------------------------------------------------------------------

I hope this can help you,
Bruno




More information about the Pkg-exim4-users mailing list