[rt-users] no To: field leads to RFC compliant TO required mail server error
Hello everyone. I have upgraded RT system, with following changes: FreeBSD 6.2 - 10.1 RT 3.8.8 - 4.2.11 Postfix 2.4.6 - Exim 4.85 On the new system i'm having error in mail system RFC compliant TO required when RT tries to send mails about my comments on mine ticket. As far as i understand the logic behind, RT compose email with ticket's author email in To: header, and all other queue's followers in Cc: header, then see that it's me, the comment's author, is in To: header, and configured for not sending me email about my own comment, strips my email and effectively entire To: header from email. Then there is a difference between old and new system: on the old system everything was exactly the same as on the new system (according to email headers in rt.log), but emails without To: header somehow were delivered to all Cc: addresses, but on the new system i get this error. Logs from the old system: http://pastebin.com/mUJzFg2m (there is To: v...@zato.ru header in the beginning, and then it's gone) Logs from the new system: http://pastebin.com/2PykYK71 (same with To: l...@zato.ru) Emails from the old system have To: header with undisclosed-recipients:; in it. Emails from the new system, according to Mailer-Daemon messages, have not. I think that maybe the old system's Postfix mail server inserting To: undisclosed-recipients:; header. I've tried to install and use new version of Postfix 2.11.6 with no changes - emails still doesn't delivered. To overcome this situation i have configured Exim with the following ACL: acl_check_data: warn condition = ${if !def:h_To: {1}} add_header = To: Undisclosed-Recipients:; But i wonder, if there is a better for populating To: header with undisclosed-recipients:;? Or maybe there is something i missed in upgrade? I did run rt-setup-database after moving DB to new host, if that's matter. -- best regards
Re: [rt-users] callback for Search/Simple.html not working on freebsd
08.12.2010 16:58, Kenneth Marshall пишет: I _need_ to search resolved tickets, and in simple search they're not searching. Besides, this is my first try to make callbacks work, and i'm planning to further customize RT for my needs, and i want to understand why it is not working at all? All that you should need to do is include the word resolved in the Simple Search window to search resolved tickets. For example: turkey open resolved would search all open or resolved tickets with the word turkey in the subject. Thank you for this valuable advice, although i already know how to search all tickets by including words like resolved or deleted. The question is WHY CALLBACK DOESN'T WORK? -- best regards
Re: [rt-users] callback for Search/Simple.html not working on freebsd
07.12.2010 17:51, Kenneth Marshall пишет: Not to discourage you, but it is really better to not default to search resolved tickets. That number will grow without bound and eventually kill your performance. Also, how will you NOT search the resolved tickets? My two cents. I _need_ to search resolved tickets, and in simple search they're not searching. Besides, this is my first try to make callbacks work, and i'm planning to further customize RT for my needs, and i want to understand why it is not working at all? Cheers, Ken On Tue, Dec 07, 2010 at 05:47:06PM +0300, alexander lunev wrote: Hello. It's FreeBSD 6.2-R, apache-2.2.14, rt-3.8.8 I'm trying to make simple search broader so it will search all tickets including resolved, and did as it says in http://requesttracker.wikia.com/wiki/CustomizingWithCallbacks apache configuration: VirtualHost *:80 ServerName support.domain.ru DocumentRoot /usr/local/share/rt38/html AddDefaultCharset UTF-8 PerlRequire /usr/local/bin/webmux.pl Directory /usr/local/share/rt38/html Options Indexes FollowSymlinks /Directory Location /NoAuth/images SetHandler default /Location Location / SetHandler perl-script PerlResponseHandler RT::Mason /Location /VirtualHost FreeBSD port installs RT files under /usr/local/share: # ls /usr/local/share/rt38 etc fonts htmllib local plugins po I created file with callback: /usr/local/share/rt38/local/html/Callbacks/MyCallbacks/Search/Simple.html/ModifyQuery: %init $$query = $$query . new open resolved stalled rejected deleted; /%init %args $query = undef /%args But the magic did not work, search finds only new and open tickets. I've tried to put $RT::Logger call in ModifyQuery (though i don't know should it work in callback files or not) to test does it even go into this file, and nothing appears in logs. I also tried to put whole path with callback file local/html/Callbacks/MyCallbacks/Search/Simple.html/ModifyQuery to /var/run/rt38 (where mason_data and session_data resides) with no outcome. How can i debug this callback to find where the problem is? I've set RT to send debug logs to file, and i see nothing suspicious there. Help please. -- best regards alexander lunev -- С уважением Александр Лунев ОАО РТК