Package: getmail4
Version: 4.8.4-1
Severity: normal
Tags: patch
On my company setup, I often get a mail which results in:
Delivery error (command sendmail 4144 error (75, sendmail: fatal: Recipient
addresses must be specified on the command line or via the -t option))
I'm using this configuration for delivery:
[destination]
type = MDA_external
path = /usr/sbin/sendmail
arguments = ("-i", "-f%(sender)", "[email protected]")
After debugging, it appears that %(sender) is empty, so I end up with a command
with "-f [email protected]" and [email protected] is not seen as recipient.
If we look deeper, in destinations.py, we have this in
MDA_external._deliver_message:
msginfo['sender'] = msg.sender
I can see there that msg.sender is empty.
This comes from message.py, Message._init_, where we have:
self.sender = address_no_brackets(self.__msg['return-path'] or 'unknown')
This is the broken part: the broken mail I have contains 'Return-Path: <>' and
it's not handled by this code. It should read:
self.sender = address_no_brackets(self.__msg['return-path'] or 'unknown') or
'unknown'
(it's important to keep the first "or 'unknown'" since
self.__msg['return-path'] may be none)
Thanks,
Vincent
-- System Information:
Debian Release: 5.0
APT prefers testing
APT policy: (991, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages getmail4 depends on:
ii python 2.5.2-3 An interactive high-level object-o
ii python-support 0.8.7 automated rebuilding support for P
getmail4 recommends no packages.
getmail4 suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]