Very true. I had -D on the smtpd process. When I add -D to the filter
I sent in my previous email I don't get any log output that is
relevant to the pipe process. Note that I'm looking in /var/log/maillog.
Here is the session for an inbound email. Note that "newswire" is
aliased to some_user, who has a .forward in this home directory that
points to e...@readmedia.com. The mail is forwarded correctly, but the
filter is never handed to pipe.
Mar 3 10:32:03 my_host postfix/smtpd[2856]: connect from yx-
out-2324.google.com[74.125.44.28]
Mar 3 10:32:03 my_host postfix/smtpd[2856]: A2629A967B: client=yx-
out-2324.google.com[74.125.44.28]
Mar 3 10:32:03 my_host postfix/cleanup[2860]: A2629A967B: message-id=<221b7bd2-026a-4278-93e8-8e13e1a50...@gmail.com
>
Mar 3 10:32:03 my_host postfix/qmgr[2861]: A2629A967B: from=<my_n...@gmail.com
>, size=2006, nrcpt=1 (queue active)
Mar 3 10:32:03 my_host postfix/cleanup[2860]: B0274A969F: message-id=<221b7bd2-026a-4278-93e8-8e13e1a50...@gmail.com
>
Mar 3 10:32:03 my_host postfix/qmgr[2861]: B0274A969F: from=< my_n...@gmail.com
>, size=2139, nrcpt=1 (queue active)
Mar 3 10:32:03 my_host postfix/local[2862]: A2629A967B: to=<newsw...@myhostname.com
>, relay=local, delay=0.09, delays=0.07/0.01/0/0.01, dsn=2.0.0,
status=sent (forwarded as B0274A969F)
Mar 3 10:32:03 my_host postfix/qmgr[2861]: A2629A967B: removed
Mar 3 10:32:04 my_host postfix/smtp[2863]: B0274A969F: to=<e...@readmedia.com
>, orig_to=<newsw...@myhostname.com>, relay=my_relay_ip[my_relay_ip]:
587, delay=0.33, delays=0/0.01/0.16/0.16, dsn=2.0.0, status=sent (250
2.0.0 n23AcrHO026291 Message accepted for delivery)
Mar 3 10:32:04 my_host postfix/qmgr[2861]: B0274A969F: removed
Mar 3 10:32:33 my_host postfix/smtpd[2856]: disconnect from yx-
out-2324.google.com[74.125.44.28]
My debug command is:
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin;(strace -p
$process_id 2>&1 | logger -p mail.info) & sleep 5
Many thanks again for the help.
Erik
On Mar 3, 2009, at 10:27 AM, Victor Duchovni wrote:
On Tue, Mar 03, 2009 at 10:19:50AM -0500, Erik Morton wrote:
Thanks. I am running with -D (strace) and -v enabled and I'm not
seeing
anything fatal or related to a pipe process.
i've defined my filter in master.cf like so:
filter unix - n n - 10 pipe -v
flags=Rq
user=my_user argv=/usr/bin/receiver -f ${sender} -- ${recipient}
The receiver script is based on the example from the content filter
readme.
It basically just curls the email to a web service.
Is it strange that I'm not seeing any debugging information for the
pipe
process?
No, there's no "-D" in this master.cf entry, and you have not shown
the
"debugger_command" setting from main.cf.
--
Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.
Erik Morton
readMedia
518.429.2832
www.readmedia.com