bug-mailutils
[Top][All Lists]
Advanced

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

Re: [bug-mailutils] Configuring debug in imap4d.rc


From: Chris Hall
Subject: Re: [bug-mailutils] Configuring debug in imap4d.rc
Date: Sat, 09 Jun 2012 01:08:15 -1000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Hi, Sergey,

I found how to get debug messages sent to syslog.  The problem seems to
be that if one changes the 'homedir', imap4d cannot find mailboxes:
mu_mailbox_open tried to open directory instead of file.  Also, there
seems to be no way to specify what a name is, i.e., in Dovecot you say
'files called mBoX-mEsSaGeS are mbox files'.  I don't care really, but I
*would* like to know what file name imap4d expects.  Is it 'mbox'?

Jun  9 10:52:11 kaikala imap4d[16297]: imap4d (GNU Mailutils 2.99.97)
started
Jun  9 10:52:19 kaikala imap4d[16298]: user `chris' logged in (source:
system)
Jun  9 10:52:20 kaikala imap4d[16298]: mbox_init (/var/mail/chris)
Jun  9 10:52:20 kaikala imap4d[16298]: Reading user ticket file
/root/.mu-tickets
Jun  9 10:52:20 kaikala imap4d[16298]: Retrieved and set ticket: 0
Jun  9 10:52:20 kaikala imap4d[16298]: mbox_open (/var/mail/chris, 0x13)
Jun  9 10:52:20 kaikala imap4d[16298]: mbox_get_message (/var/mail/chris, 1)
Jun  9 10:52:26 kaikala imap4d[16299]: user `chris' logged in (source:
system)
Jun  9 10:52:26 kaikala imap4d[16299]: mbox_init
(/home/chris/mail/mailboxes/Trash)
Jun  9 10:52:26 kaikala imap4d[16299]: Reading user ticket file
/root/.mu-tickets
Jun  9 10:52:26 kaikala imap4d[16299]: Retrieved and set ticket: 0
Jun  9 10:52:26 kaikala imap4d[16299]:
mu_mailbox_open(/home/chris/mail/mailboxes/Trash) failed: Is a directory
Jun  9 10:52:26 kaikala imap4d[16299]: mbox_destroy
(/home/chris/mail/mailboxes/Trash)
Jun  9 10:52:37 kaikala imap4d[16299]: mbox_init
(/home/chris/mail/mailboxes/RSS/Ars Technica)
Jun  9 10:52:37 kaikala imap4d[16299]: Reading user ticket file
/root/.mu-tickets
Jun  9 10:52:37 kaikala imap4d[16299]: Retrieved and set ticket: 0
Jun  9 10:52:37 kaikala imap4d[16299]:
mu_mailbox_open(/home/chris/mail/mailboxes/RSS/Ars Technica) failed: Is
a directory
Jun  9 10:52:37 kaikala imap4d[16299]: mbox_destroy
(/home/chris/mail/mailboxes/RSS/Ars Technica)


I probably should have included my imap4d.rc, so here it is:

# Configuration file structure for imap4d utility.
# For use in global configuration file (/usr/local/etc/mailutils.rc),
enclose
# it in `program imap4d { ... };
# For more information, use `info imap4d'.

tls {
  # Enable TLS support.
  enable 1;
  # Specify SSL certificate file.
  ssl-cert /usr/local/etc/imap.crt;
  # Specify SSL certificate key file.
  ssl-key /usr/local/etc/imap.key;
};

gsasl {
  # Enable GSASL (default)
  enable 1;
  # Name of GSASL password file.
  cram-passwd /usr/local/etc/cram-md5.pwd;
  # SASL service name.
  service "Kaikala IMAP";
  # SASL realm name.
  realm "workingdroid.com";
  # SASL host name.
  hostname "kaikala";
  # Anonymous user name.
  #anonymous-user <name: string>;
};

# auth {
#   # Set a list of modules for authentication. Modlist is a
colon-separated list
#   # of module names or a word `clear' to clear the previously set up
values.
#   #authentication <modlist: string>;
#   # Set a list of modules for authorization. Modlist is a
colon-separated list
#   # of module names or a word `clear' to clear the previously set up
values.
#   #authorization <modlist: string>;
# };

# debug {
#   # Set Mailutils debugging level.  Argument is a colon-separated list of
#   # debugging specifications in the form:
#   #    <object: string>[[:]=<level: number>].
#     mailbox=trace1:folder=trace1;
#   # Prefix debug messages with Mailutils source locations.
#   #line-info <arg: boolean>;
# };

mailbox {
  # Use specified URL as a mailspool directory.
  #mail-spool <url: string>;
  # Create mailbox URL using <pattern>.
  mailbox-pattern "/var/mail/${user}";
  # Default mailbox type.
  mailbox-type "mbox";
  # Default user mail folder
  folder "mail/mailboxes/";
};

# locking {
#   # Default locker flags (E=external, R=retry, T=time, P=pid).
#   #flags <arg: string>;
#   # Set timeout for acquiring the lock.
#   #retry-timeout <arg: number>;
#   # Set the maximum number of times to retry acquiring the lock.
#   #retry-count <arg: number>;
#   # Expire locks older than this amount of time.
#   #expire-timeout <arg: number>;
#   # Use external locker program.
#   #external-locker <prog: string>;
# };

logging {
  # Send diagnostics to syslog.
  syslog 1;
  # Print message severity levels.
  #print-severity <arg: boolean>;
  # Output only messages with a severity equal to or greater than this one.
  #severity <arg: string>;
  # Set syslog facility. Arg is one of the following: user, daemon, auth,
  # authpriv, mail, cron, local0 through local7 (case-insensitive), or a
  # facility number.
  #facility <arg: string>;
  # Log session ID
  #session-id <arg: boolean>;
  # Tag syslog messages with this string.
  #tag <arg: string>;
};

# Include contents of the given file.  If a directory is given, include
# contents of the file <file>/<program>, where <program> is the name of the
# program.  This latter form is allowed only in the site-wide configuration
# file.
#include <file-or-directory: string>;

# Modify home directory.
homedir "/home/${user}/mail/mailboxes/";

# # Set personal namespace.
# personal-namespace <arg: list of string>;
# # Set other users' namespace.
# other-namespace <arg: list of string>;
# # Set shared namespace.
# shared-namespace <arg: list of string>;
# # File mode for mailboxes in other namespace.
# other-mailbox-mode <arg: string>;
# # File mode for mailboxes in shared namespace.
# shared-mailbox-mode <arg: string>;
# # Disable LOGIN command.
# login-disabled <arg: boolean>;
# # If true, create non-existing user home directories.
create-home-dir 0;
# # File mode for creating user home directories (octal).
home-dir-mode "750";

# Always require STARTTLS before entering authentication phase.
tls-required 1;

# # Configure PREAUTH mode.  MODE is one of:
# #   prog:///<full-program-name: string>
# #   ident[://:<port: string-or-number>]
# #   stdio
# preauth <mode: string>;
# # Use only preauth mode.  If unable to setup it, disconnect immediately.
# preauth-only <arg: boolean>;
# # Name of DES keyfile for decoding ecrypted ident responses.
# ident-keyfile <arg: string>;
# # Use only encrypted ident responses.
# ident-encrypt-only <arg: boolean>;
# # List of fields to return in response to ID command.
# id-fields <arg: list of string>;

# mandatory-locking {
#   # Enable mandatory locking.
#   #enable <arg: boolean>;
#   # Set directory for mandatory lock files.
#   #lock-directory <arg: string>;
# };

# Maximum number of children processes to run simultaneously.
max-children 10;
# Set daemon mode (either inetd (or interactive) or daemon).
mode daemon;

# # Run in foreground.
# foreground <arg: boolean>;
# # Store PID of the master process in this file.
# pidfile <file: string>;
# # Default port number.
# port <arg: string>;
# # Set idle timeout.
# timeout <arg: time>;

# server ipaddr[:port] {
#   # Run this server in foreground.
#   single-process <arg: boolean>;
#   # Log the session transcript.
#   transcript <arg: boolean>;
#   # Set idle timeout.
#   timeout <arg: time>;
#   acl {
#     # Allow connections from this IP address. Optional word `from' is
allowed
#     # between it and its argument. The same holds true for other
actions below.
#     allow <addr: IP>;
#     # Deny connections from this IP address.
#     deny <addr: IP>;
#     # Log connections from this IP address.
#     log <addr: IP>;
#     # Execute supplied program if a connection from this IP address is
#     # requested. Arguments are:
#     #   <addr: IP> <program: string>
#     # Following macros are expanded in <program> before executing:
#     #   address  -  Source IP address
#     #   port     -  Source port number
#     exec <arg: string>;
#     # If a connection from this IP address is requested, execute supplied
#     # program and allow or deny the connection depending on its exit
code. See
#     # `exec' for a description of its arguments.
#     ifexec <arg: string>;
#   };

#   # Use TLS encryption for this server
#   tls <arg: boolean>;
# };

# acl {
#   # Allow connections from this IP address. Optional word `from' is
allowed
#   # between it and its argument. The same holds true for other actions
below.
#   allow <addr: IP>;
#   # Deny connections from this IP address.
#   deny <addr: IP>;
#   # Log connections from this IP address.
#   log <addr: IP>;
#   # Execute supplied program if a connection from this IP address is
requested.
#   # Arguments are:
#   #   <addr: IP> <program: string>
#   # Following macros are expanded in <program> before executing:
#   #   address  -  Source IP address
#   #   port     -  Source port number
#   exec <arg: string>;
#   # If a connection from this IP address is requested, execute
supplied program
#   # and allow or deny the connection depending on its exit code. See
`exec' for
#   # a description of its arguments.
#   ifexec <arg: string>;
# };

# Set global transcript mode.
transcript 1;






reply via email to

[Prev in Thread] Current Thread [Next in Thread]