Hi again!

I'm trying to using the following technique with Exim and the XAMS virtual user environment, in order to avoid having to use tmda-ofmipd:

http://tmda.net/faq.cgi?req=all#7.6

Following the instructions from the above link, I have added and customized a outgoing_tmda router and a outgoing_tmda_pipe transport:

# Outgoing tmda router - sends all first run of outgoing mail for tmda users to tmda
outgoing_tmda:
driver = accept
address_data = ${lookup SQL_QUOTA_SITENAME}
senders = [EMAIL PROTECTED]
domains = !+xams_domains
condition = "${if !def:header_X-Delivery-Agent:{1}{0}}"
transport = outgoing_tmda_pipe


# Outgoing tmda transport - pipes email in batch to tmda-inject
outgoing_tmda_pipe:
driver = pipe
batch_max = 1000
command = /usr/bin/python2.2 /usr/bin/tmda-inject -c /var/mail/tmda/${extract{sitename}{$address_data}}/$sender_address_local_part/config $pipe_addresses
user = mail
group = mail


Sent mail is successfully caught by the outgoing_tmda router, but tmda-inject returns an error during the transport process. The Exim output looks like:

1158 outgoing_tmda_pipe transport returned FAIL for [EMAIL PROTECTED]
1158 post-process [EMAIL PROTECTED] (2)
1158 LOG: MAIN
1158 ** [EMAIL PROTECTED] <[EMAIL PROTECTED]> R=outgoing_tmda T=outgoing_tmda_pipe: Child process of outgoing_tmda_pipe transport returned 2 from command: /usr/bin/python2.2


What does (2) refer to? Is there some way to get more information about why tmda-inject is failing? I've checked the tmda-debug.log, but there's nothing logged there at all.

I suspect that the sitename is not being extracted correctly, and thus the -c option isn't passing the correct config file location to tmda-inject. But there's little way for me to know whether this is indeed the problem without more information from tmda-inject as to why it is failing.

Any and all suggestions would be greatly appreciated! ;)

Justin

_________________________________________________________________
Enter for your chance to IM with Bon Jovi, Seal, Bow Wow, or Mary J Blige using MSN Messenger http://entertainment.msn.com/imastar


_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to