Re: smtpd alias entries: delivery trouble

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: MERIGHI Marcus
Date: Monday, December 20, 2010 - 7:44 am

Hello Gilles, all,

gilles@openbsd.org (Gilles Chehade), 2010.01.31 (Sun) 22:29 (CET):

I am after setting up mail/mlmmj to work with smtpd(8). 

$ grep mlmmj-test /etc/mail/aliases
mlmmj-test: "|/usr/local/bin/mlmmj-recieve -F -L \
    /var/spool/mlmmj/mlmmj-test"

newaliases(8) was run.

$ echo test | mail -s test mlmmj-test

Dec 20 15:22:32 zzz smtpd[24942]: smtp_new: incoming client on
    listener: 0x3c009aa0
Dec 20 15:22:32 zzz smtpd[24942]: session_pickup: greeting client
Dec 20 15:22:32 zzz smtpd[24942]: command: EHLO      args: localhost
Dec 20 15:22:32 zzz smtpd[24942]: command: MAIL FROM args:
    <xxx@yyy.at>
Dec 20 15:22:32 zzz smtpd[24942]: session_rfc5321_mail_handler:
    sending notification to mfa
Dec 20 15:22:32 zzz smtpd[24942]: smtp: got imsg_mfa_mail/rcpt
Dec 20 15:22:32 zzz smtpd[24942]: smtp: imsg_queue_create_message
    returned
Dec 20 15:22:32 zzz smtpd[24942]: command: RCPT TO   args:
    <mlmmj-test@yyy.at>
Dec 20 15:22:32 zzz smtpd[7265]: aliases_exist: 'mlmmj-test' exists
    with 1 expansion nodes
Dec 20 15:22:32 zzz smtpd[7265]: aliases_get: returned 1 aliases
Dec 20 15:22:32 zzz smtpd[7265]: lka_resolve_node: node is filter:
    "|/usr/local/bin/mlmmj-recieve -F -L /var/spool/mlmmj/mlmmj-test"
Dec 20 15:22:32 zzz smtpd[24942]: smtp: got imsg_mfa_mail/rcpt
Dec 20 15:22:32 zzz smtpd[24942]: 1292854952.DjTfI6XCJSuAU2ED:
    from=<xxx@yyy.at>, relay=1000@localhost [IPv6:::1],
    stat=LocalError (530 5.0.0 Recipient rejected:
    mlmmj-test@yyy.at)
Dec 20 15:22:32 zzz smtpd[24942]: session_destroy: killing client:
    0x82823000

To see whether I was messing things up myself I did tests on my local
notebook and a server-to-be, each with pipe to mlmmj-recieve(1) and
procmail(1), with local delivery, remote forward, via /etc/mail/aliases
and ~/.forward. Everything apart from piping works.

$ pwd
/usr/local/bin
$ ls -la procmail
-r-xr-xr-x  1 root  bin  76480 Oct 31 02:39 procmail
$ ls -la mlmmj-recieve
-r-xr-xr-x  1 root  bin  15948 Dec 12 08:06 mlmmj-recieve

Both boxes are:
OpenBSD 4.8-current (GENERIC) #513: Tue Dec 14 04:47:12 MST 2010

Is this expected behaviour as of now?

Bye, 

Marcus

P.S.: Apart from the above, thanks for all the work on smtpd(8), running
it on my notebook for outbound mail for quite some time and very glad
about it!

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
smtpd alias entries: delivery trouble, Jacob Yocom-Piatt, (Sat Jan 30, 9:04 pm)
Re: smtpd alias entries: delivery trouble, Gilles Chehade, (Sun Jan 31, 2:29 pm)
Re: smtpd alias entries: delivery trouble, MERIGHI Marcus, (Mon Dec 20, 7:44 am)
Re: smtpd alias entries: delivery trouble, Gilles Chehade, (Mon Dec 20, 3:26 pm)