mark david mcCreary
2007-Apr-27 21:22 UTC
[Pkg-exim4-users] What''s generating this psuedo header >From ?
From mdm@internet-tools.com Fri Apr 27 16:02:17 2007>From Debian-exim Fri Apr 27 16:02:17 2007Received: from relay.internet-tools.com ([68.92.51.21]:2893) by carriage.mail-list.com with esmtp (Exim 4.63) (envelope-from <mdm@internet-tools.com>) id 1HhWdS-0001c5-TB The above snippet of email was delivered thru Procmail, and ends up with the >From header. I''ve got similar machines that do not do this, and I can''t figure out what the difference between the machines are. I''m not even sure if it''s Exim or Procmail that''s generating the header. It may be because I compiled my own Debian on this machine ? My configuration file looks like this This message is getting routed via system_aliases, and the transport is address_pipe. Thanks for any clues. mark # # Handle email for domains we control # # Email has already been accepted, and moved to this queue by MailScanner # # This version of Exim merely needs to deliver the email # domainlist local_domains = @ : @[] : mail-list.com accept_8bitmime allow_domain_literals allow_mx_to_ip bounce_return_message = true bounce_return_size_limit = 10k check_spool_inodes = 100 check_spool_space = 10M delay_warning = 0s disable_ipv6 = true queue_only_load = 4 deliver_queue_load_max = 5 delivery_date_remove no_envelope_to_remove errors_reply_to = postmaster@mail-list.com exim_path = /usr/sbin/exim4 freeze_tell = "mdm@internet-tools.com" host_lookup ignore_bounce_errors_after = 0s #ignore_fromline_hosts = 127.0.0.1 : @[] #ignore_fromline_local = true log_selector = +acl_warn_skipped \ +address_rewrite \ +all_parents \ +arguments \ +connection_reject \ +delay_delivery \ +delivery_size \ +deliver_time \ +dnslist_defer \ +host_lookup_failed \ -incoming_interface \ +incoming_port \ +lost_incoming_connection \ -queue_run \ +queue_time \ +received_recipients \ +received_sender \ +rejected_header \ +retry_defer \ +return_path_on_delivery \ +sender_on_delivery \ +sender_verify_fail \ +size_reject \ -skip_delivery \ +smtp_confirmation \ +smtp_connection \ +smtp_incomplete_transaction \ +smtp_protocol_error \ +smtp_syntax_error \ +subject \ +unknown_in_list lookup_open_max = 199 message_body_visible = 2500 message_id_header_text = "${tod_log}" #message_logs = false #preserve_message_logs = true message_size_limit = 25M never_users = root prod_requires_admin = false queue_list_requires_admin = false queue_only queue_run_max = 15 queue_smtp_domains = * rfc1413_hosts rfc1413_query_timeout = 0s receive_timeout = 60s received_header_text = Received: \ ${if def:sender_rcvhost {from $sender_rcvhost\n\t}\ {${if def:sender_helo_name {(helo=$sender_helo_name)\n\t}}}}\ by $primary_hostname \ ${if def:received_protocol {with $received_protocol}} \ (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 remote_max_parallel = 1 retry_interval_max = 1h retry_data_expire = 6h return_size_limit = 2000 no_smtp_check_spool_space smtp_accept_max = 80 smtp_accept_max_per_host = 15 smtp_accept_queue = 15 smtp_accept_queue_per_connection = 15 smtp_accept_reserve = 5 #smtp_banner = "ESMTP Exim ${version_number} #${compile_number} ${tod_full}" smtp_connect_backlog = 50 smtp_load_reserve = 5 smtp_receive_timeout = 2m spool_directory = /var/spool/exim4 strip_excess_angle_brackets strip_trailing_dot syslog_duplication = false syslog_facility = news trusted_users = "alllists:Debian-exim:greplist:liaison:listmast:mylists:somelists:spam-score" untrusted_set_sender = * begin acl begin routers # check for bounce messages older than 1 hour and delete #expire_undeliverable_bounces: # driver = redirect # allow_defer # allow_fail # senders = : # condition = ${if and {{> {$message_age}{3600}} {def:header_x-failed-recipients:}} {yes}{no}} # domains = ! +local_domains # data = :blackhole: # Drop bounce messages going back to the web page cgi machine cgi_machine: driver = redirect allow_defer allow_fail data = :blackhole: domains = "cgi.mail-list.com" local_parts = "www-data" retry_use_local_part build_confirmation_router: driver = redirect local_part_suffix = -optin-* headers_remove = to:subject headers_add = \ Subject: Re: Please reply - ${substr_7:$local_part_suffix}\n\ To: ${quote_local_part:$local_part}-request@$domain data= ${quote_local_part:$local_part}-request@$domain #dumpall: # driver = accept # transport = dump # unseen # Re-direct mail to mail-list.com to the correct host forward_aliases: driver = redirect allow_defer allow_fail domains = +local_domains data = ${lookup{$local_part}cdb{/etc/exim4/aliases.forward.cdb}} file_transport = address_file pipe_transport = address_pipe retry_use_local_part user = Debian-exim # Procmail has the following trusted users in Debian Etch binary # define TRUSTED_IDS {"root","daemon","uucp","mail","x400","network",\ # "list","slist","lists","news",0} # Therefore use mail as user to keep the dreaded From_ header from being attached. # Or changed TRUSTED_IDS to {0} # Basic system mail aliases system_aliases: driver = redirect allow_defer allow_fail domains = +local_domains data = ${lookup{$local_part}cdb{/etc/exim4/aliases.system.cdb}} file_transport = address_file pipe_transport = address_pipe retry_use_local_part user = Debian-exim # Re-direct mail for auto responders respond_aliases: driver = redirect allow_defer allow_fail domains = +local_domains data = ${lookup{$local_part}cdb{/etc/exim4/aliases.respond.cdb}} file_transport = address_file pipe_transport = address_pipe retry_use_local_part user = Debian-exim root: driver = redirect allow_defer allow_fail data = ce405mol domains = @ local_parts = root retry_use_local_part localuser: driver = accept domains = +local_domains check_local_user transport = local_delivery lookuphost: driver = dnslookup domains = ! +local_domains ignore_target_hosts = 0.0.0.0 : 10.0.0.0/8 : 127.0.0.0/8 :\ 172.16.0.0/12 : 192.168.0.0/16 self = defer transport = smtp literal: driver = ipliteral domains = ! +local_domains self = defer cannot_route_message = Wrong Email Address - Please remove from your list transport = smtp begin transports # This transport will delete whatever is sent dump: driver = appendfile file = /tmp/eximq-messages return_path_add delivery_date_add envelope_to_add trash: driver = appendfile file = /dev/null group = adm user = Debian-exim # This transport is used for handling pipe addresses generated by alias # or .forward files. It has a conventional name, since it is not actually # mentioned elsewhere in this configuration file. address_pipe: driver = pipe headers_remove = Subject headers_add = Subject: ${sg{$rh_Subject:}{\N\s*\n\s*\N}{ }} ignore_status address_file: driver = appendfile # This transport is used to pass an incoming message to procmail for delivery # maildrop_pipe: debug_print = "T: maildrop_pipe for $local_part@$domain" driver = pipe path = "/bin:/usr/bin:/usr/local/bin" command = "/usr/bin/maildrop" procmail_pipe: debug_print = "T: procmail_pipe for $local_part@$domain" driver = pipe headers_remove = Subject headers_add = Subject: ${sg{$rh_Subject:}{\N\s*\n\s*\N}{ }} path = "/bin:/usr/bin:/usr/local/bin" command = "/usr/bin/procmail" local_delivery: driver = appendfile group = mail file = /var/mail/${local_part}/Mailbox smtp: driver = smtp connection_max_messages = 500 hosts_max_try = 5 size_addition = -1 max_rcpt = 1 begin retry # End of Exim 4 configuration
Marc Haber
2007-Apr-28 07:51 UTC
[Pkg-exim4-users] What''s generating this psuedo header >From ?
On Fri, Apr 27, 2007 at 04:11:06PM -0500, mark david mcCreary wrote:> From mdm@internet-tools.com Fri Apr 27 16:02:17 2007 > >From Debian-exim Fri Apr 27 16:02:17 2007 > Received: from relay.internet-tools.com ([68.92.51.21]:2893) > by carriage.mail-list.com with esmtp (Exim 4.63) > (envelope-from <mdm@internet-tools.com>) > id 1HhWdS-0001c5-TB > > > > The above snippet of email was delivered thru Procmail, and ends up > with the >From header.The "From " line is a separator in an old-fashioned mbox to mark the border between two messages in the mbox file. To avoid confusion, any line starting with "From " in the message gets escaped with ">" when the file is wrriten. So what happens is that one From:-line is generated by one tool, and a second one by a second one. I suspect that the "From Debian-exim" is generated by procmail. I have not worked with mboxes in years, I cannot comment any more.> It may be because I compiled my own Debian on this machine ?Your own Debian? Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190