Lebesgue Yu:
> Hi:
> ? ?As the subject says, I configure the postfix with the wrong smtp
> transport and try to send a email with that transport using command as
> following:
> ? ?postsuper -H ALL; postfix flush; sleep 1; postsuper -h ALL;

Don't do this. It triggers a bug with the "new" queue manager where
it loses a hash table entry when it opens a queue file that it
has already opened:

static QMGR_JOB *qmgr_job_create(QMGR_MESSAGE *message, QMGR_TRANSPORT *transpor
t)
{
    QMGR_JOB *job;

    job = (QMGR_JOB *) mymalloc(sizeof(QMGR_JOB));
    job->message = message;
    QMGR_LIST_APPEND(message->job_list, job, message_peers);
    htable_enter(transport->job_byname, message->queue_id, (char *) job);

To avoid a memory leak, the htable_enter() call should be guarded
with an htable_find() call, and if the entry already exists, then
the guard should defer the queue file.

        Wietse

Reply via email to