Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

i need to debug a python script which is used in the exim transport pipe command. i already tried log_output but it logs only first line of the output returned by the python script which is a traceback error.

my_transport:
driver = pipe
command = /usr/bin/python /path/to/myscript.py
log_fail_output
group = mail
user = mail

i want to see full trackback error in mainlog in order to debug it. how to do that?

share|improve this question

1 Answer 1

You could try the return_output directive

return_output (pipe)

Type: boolean Default: false

If this option is true, and the command produced any output, the delivery is deemed to have failed whatever the return code from the command, and the output is returned in the delivery error message. Otherwise, the output is just discarded. However, if the message has a null sender (that is, it is a delivery error message), output from the command is always discarded, whatever the setting of this option.

share|improve this answer
    
i was looking for output to be logged in logfile. but i got command output in the bounce mail(undelivered mail returned to sender).its enough.thankyou –  hebrew878 Feb 12 at 8:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.