Which doesn't quite answer my question:

If /logger.sh shows no errors in the outgoing email where are those double headers being introduced? Is [EMAIL PROTECTED] on a separate dbmail machine?

I suspect there maybe a problem with the homebrew lf->crlf conversion taking place in forward.c.

Perhaps you could add an alias: [EMAIL PROTECTED] -> [EMAIL PROTECTED] That way I can send an email to that address, and see for myself how/where things go wrong.

thanks,

Anton Nekhoroshikh wrote:
Добрый день Paul,

Monday, October 18, 2004, 6:49:24 PM, you wrote:

Paul J Stevens> Anton,

Paul J Stevens> I don't quite understand where things
Paul J Stevens> go wrong, which makes it hard for my to Paul J Stevens> reproduce this problem.

Paul J Stevens> [EMAIL PROTECTED] is externally forwarded
Paul J Stevens> to [EMAIL PROTECTED] using your Paul J Stevens> /usr/sbin/sendmail, correct?

in table dbmail_aliases:
alias_idnr = 1
alias = [EMAIL PROTECTED]
deliver_to = [EMAIL PROTECTED]
client_idnr = 1

in dbmail.conf section [SMTP]:
SENDMAIL=/usr/sbin/sendmail     # sendmail executable for forwarding mail
#SENDMAIL=/logger.sh
AUTO_NOTIFY=no
AUTO_REPLY=no
TRACE_LEVEL=5

Paul J Stevens> is this [EMAIL PROTECTED] also on a
Paul J Stevens> dbmail machine, but a different one, and is Paul J Stevens> that where the problem occurs?

Paul J Stevens> Anton Nekhoroshikh wrote:

Hi Paul,

Monday, October 18, 2004, 6:06:34 PM, you wrote:

in /tmp/log.txt all right
but after fetch via pop or imap i have double headers

if send mail via old version dbmail-smtp - all right
error in new version only

Paul J Stevens> Anton,

Paul J Stevens> Could you try replacing the SENDMAIL
Paul J Stevens> entry in dbmail.conf with something like

Paul J Stevens> SENDMAIL=/bin/logger.sh

Paul J Stevens> where logger.sh reads like:

Paul J Stevens> #!/bin/sh
Paul J Stevens> LOGFILE=/tmp/log.txt
Paul J Stevens> hr() {
Paul J Stevens>          echo --------------------------- >> $LOGFILE
Paul J Stevens> }
Paul J Stevens> br() {
Paul J Stevens>          echo >> $LOGFILE
Paul J Stevens> }

Paul J Stevens> hr
date >>> $LOGFILE
Paul J Stevens> br
echo "$@" >>> $LOGFILE
Paul J Stevens> br
cat - >>> $LOGFILE
Paul J Stevens> br


Paul J Stevens> and see if the /tmp/log.txt already
Paul J Stevens> contains the double headers. I've setup an Paul J Stevens> external forwarder like you did, but
Paul J Stevens> I still don't get duplicates.





Paul J Stevens> Anton Nekhoroshikh wrote:


Hi,

Additional info:

i send example.txt.dbg from server via command:
mail -s debug [EMAIL PROTECTED] < maillog.debug
and delivered message with double headers

if send via command:
mail -s debug [EMAIL PROTECTED] < maillog.debug

[EMAIL PROTECTED] is alias for [EMAIL PROTECTED] mailbox

The problem means arises only at forward messages !

Anton Nekhoroshikh> Добрый день Paul,

Anton Nekhoroshikh> Saturday, October 16, 2004, 2:29:03 AM, you wrote:

Anton Nekhoroshikh> I have dbmail from cvs.

Anton Nekhoroshikh> Message delivered via
Anton Nekhoroshikh> dbmail-smtp with double message header.

Anton Nekhoroshikh> In attache message with
Anton Nekhoroshikh> double header and debug info from maillog.














--
  ________________________________________________________________
  Paul Stevens                                         [EMAIL PROTECTED]
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands_______________________________________www.nfg.nl

Reply via email to