Hello,

first of all thank you for providing OpenSMTPD. It rocks.

I have encountered one issue with smtpd and procmail. When passing the received mail through procmail (via .forward) and just a cat recipe, the
mails don't get separated by a "From " line in the mbox.

Maybe my assumption that this should work is wrong. Maybe it is a procmail issue. But it did work with sendmail.

Is this the correct behaviour?

The details:

OpenSMTPD 5.3 on OpenBSD 5.3 (i386, GENERIC)
procmail 3.22p4 from packages

default smtpd.conf:
        listen on lo0
        table aliases db:/etc/mail/aliases.db
        accept for local alias <aliases> deliver to mbox
        accept for any relay

user's .forward:
        | /usr/local/bin/procmail

user's .procmailrc:
        :0
        | /bin/cat

This is how a test mail ends up in user's mbox:
        ... [previous mail] ...
        Subject: foo
        
        bar
        
        Return-Path: t...@test.my.domain
        Delivered-To: t...@test.my.domain
        Received: from localhost (1000@localhost [local]);
                by test.my.domain (OpenSMTPD) with ESMTP id 22d20b6d;
                for <t...@test.my.domain>;
                Thu, 8 Aug 2013 21:23:08 +0200 (CEST)
        From: John Tester <t...@test.my.domain>
        Date: Thu, 8 Aug 2013 21:23:07 +0200 (CEST)
        Message-Id: <1278803147.enqu...@test.my.domain>
        User-Agent: OpenSMTPD enqueuer (Demoosh)
        To: test
        Subject: with cat
        
        sdkjfskld

The corresponding log entries:
        Aug  8 21:51:47 test smtpd[17077]: smtp-in: New session
        000000026b5a72da from host 1000@localhost [local]
        Aug  8 21:51:48 test smtpd[17077]: smtp-in: Accepted message
        92616ceb on session 000000026b5a72da:
        from=<t...@test.my.domain>, size=207, nrcpts=1, proto=ESMTP
        Aug  8 21:51:48 test smtpd[17077]: smtp-in: Closing session
        000000026b5a72da
        Aug  8 21:51:50 test smtpd[27079]: delivery: Ok for
        92616cebc6672f9c: from=<t...@test.my.domain>,
        to=<t...@test.my.domain>, user=test, method=mda, delay=2s,
        stat=Delivered


Regards,

Michael

--
You received this email because you are subscribed to the "misc@opensmtpd.org" 
list
To unsubscribe, send mail with subject: [misc@opensmtpd.org] unregister

Reply via email to