i've got a machine that is running RT from packages and am having trouble getting smtpd to pass mail to RT. this is usually done with sendmail but i figured it should be no huge leap to use smtpd here.

the config that works with sendmail has local aliases like so

rt_queuename: "|/usr/local/bin/rt-mailgate --queue 'Queue Name' --action correspond --url https://rt.domain.com/";

where there is an alias like this for each queue. let me know if this sort of thing is not supported.

what i do see from running smtpd -vd is

...
command: RCPT TO        args: <[email protected]>
lka_resolve_node: node is filter: "|/usr/local/bin/rt-mailgate --queue 'Queue Name' --action correspond --url https://rt.domain.com/";
smtp_dispatch_queue: queue acknowledged message submission
command: DATA   args: (null)
smtp_dispatch_queue: queue handled message creation
smtp_dispatch_queue: queue acknowledged message submission
1264909788.hB74N4PO6lKzS8MR: from=<[email protected]>, size=1080, nrcpts=1, proto=ESMTP, relay=<unknown> [10.137.0.10]
command: QUIT   args: (null)
session_destroy: killing client: 0x204aa0000
in batch dispatch
1264909788.hB74N4PO6lKzS8MR: getpwnam: : user does not exist
1264909788.hB74N4PO6lKzS8MR: to=<@>, delay=1, stat=MdaPermError
in batch dispatch
smtp_new: incoming client on listener: 0x83fec0
session_pickup: greeting client
...

at which point i get a DSN message stating

Hi !

This is the MAILER-DAEMON, please DO NOT REPLY to this e-mail.
An error has occurred while attempting to deliver a message.

Recipient: @
Reason:

so afaict smtpd is not grokking the alias line. clues as to what is going on 
here are welcome.

cheers,
jake

Reply via email to