[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Still having mail problems [New Thread] - logs, etc.



On Thu, Nov 29, 2001 at 03:22:52PM -0400, cmasters wrote:
> Greetings,

Hi

[snip]
> I'd appreciate it greatly if someone matching (or closely matching) the
> following conditions would post a sanitized versions of their relevent
> config files:
> 
> 1.  Mail is collected at your ISP. You currently use fetchmail to retrieve
> it and have it stored locally.
> 2.  You are using exim as an MTA (I could never get sendmail to configure
> properly).
> 3.  Procmail pre-sorts your email for you
> 4.  You use mutt to view the pre-sorted email

I'm in exactly this situation ('cept it's split over 2 boxes, not all done on one - shouldn't make a jot of difference)
This setup is only for one person.
You'll need a fresh/different ~/.procmailrc and ~/.fetchmailrc
for each user that wants to use this method.
Not ideal, I know, but I haven't worked out how to just run one fetchmail instance for all users yet.
Would probably require registering the server and l/p details with some central place so that a centralised cron job could get everyone's mail.  Not what I'm want, at the moment :-)

HTH
jc

Here're the files:

# ~/.fetchmailrc
# my options
set no bouncemail
set logfile /home/jaycee/fetchmail.log

# defaults
# NOTE: my user name there and here are the same.
# Check the fetchmail man page for syntax to map
# remote and local user names
defaults
	proto pop3
	user "<user>" ssl
	password "<pass>"

# uklinux.net
poll mail.uklinux.net
# end .fetchmailrc

# /etc/exim.conf
# comments and blank lines stripped.
qualify_domain = therock
local_domains = localhost:therock
local_domains_include_host = true
local_domains_include_host_literals = true
never_users = root
host_lookup = *
host_accept_relay = localhost
trusted_users = mail
smtp_verify = false
gecos_pattern = ^([^,:]*)
gecos_name = $1
smtp_accept_queue_per_connection = 1000
freeze_tell_mailmaster = true
received_header_text = "Received: \
         ${if def:sender_rcvhost {from ${sender_rcvhost}\n\t}\
         {${if def:sender_ident {from ${sender_ident} }}\
         ${if def:sender_helo_name {(helo=${sender_helo_name})\n\t}}}}\
         by ${primary_hostname} \
         ${if def:received_protocol {with ${received_protocol}}} \
         (Exim ${version_number} #${compile_number} (Debian))\n\t\
         id ${message_id}\
         ${if def:received_for {\n\tfor <$received_for>}}"
end
local_delivery:
  driver = appendfile
  group = mail
  mode = 0660
  mode_fail_narrower = false
  envelope_to_add = true
  file = /var/spool/mail/${local_part}
address_pipe:
  driver = pipe
  return_output
address_file:
  driver = appendfile
address_directory:
  driver = appendfile
  no_from_hack
  prefix = ""
  suffix = ""
address_reply:
  driver = autoreply
procmail_pipe:
  driver = pipe
  command = "/usr/bin/procmail -d ${local_part}"
  return_path_add
  delivery_date_add
  envelope_to_add
  check_string = "From "
  escape_string = ">From "
  user = $local_part
  group = mail
remote_smtp:
  driver = smtp
end
real_local:
  prefix = real-
  driver = localuser
  transport = local_delivery
system_aliases:
  driver = aliasfile
  file_transport = address_file
  pipe_transport = address_pipe
  file = /etc/aliases
  search_type = lsearch
procmail:
  driver = localuser
  transport = procmail_pipe
  require_files = ${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail
  no_verify
    
userforward:
  driver = forwardfile
  file_transport = address_file
  pipe_transport = address_pipe
  reply_transport = address_reply
  no_verify
  check_ancestor
  file = .forward
  modemask = 002
  filter
localuser:
  driver = localuser
  transport = local_delivery
end
smarthost:
  driver = domainlist
  transport = remote_smtp
  route_list = "* kanyon bydns_a"
end
*                      *           F,2h,15m; G,16h,2h,1.5; F,4d,8h
end
*@therock    ${lookup{$1}lsearch{/etc/email-addresses}\
						{$value}fail} bcfrF
# end exim.conf

# ~/.procmailrc
LOGFILE=/home/jaycee/procmail.log
VERBOSE=off

HOME=/home/jaycee
MAILDIR=$HOME/Mail
DEFAULT=$MAILDIR/inbox

# backup of everything
:0 c
archive/current

# debian
:0:
*^X-Mailing-List.*debian-news@lists.debian.org
debian-news
:0:
*^X-Mailing-List.*debian-user@lists.debian.org
debian-user
:0:
*^X-Mailing-List.*debian-isp@lists.debian.org
debian-isp
:0:
*^X-Mailing-List.*debian-security-announce@lists.debian.org
debian-security-announce
:0:
*^X-Mailing-List.*debian-security@lists.debian.org
debian-security
:0:
*^X-Mailing-List.*debian-firewall@lists.debian.org
debian-firewall
:0:
*^X-Mailing-List.*debian-java@lists.debian.org
debian-java
:0:
*^X-Mailing-List.*debian-vote@lists.debian.org
debian-vote

# linux-kernel
:0
*^X-Mailing-List.*linux-kernel@vger.kernel.org
|/dev/null # HOW MUCH TRAFFIC? AAARGGH!
# end .procmailrc

# .forward
|/usr/bin/procmail
# end .forward



Reply to: