<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello Sirs!<br><br>I’ve got some trouble with sending Emails out of my rt4 installation.<o:p></o:p></p><p class=MsoNormal><br>It’s installed on the latest ubuntu version, everything works quite well, except of sending emails.<o:p></o:p></p><p class=MsoNormal>I collect my emails with fetchmail.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Emails sending is done with postfix and mailx, if i type „mailx –s „asdf“ <a href="mailto:my@email.com">my@email.com</a> <o:p></o:p></p><p class=MsoNormal>It works perfectly. Postfix is configured as a smart host.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b>If I want to send email over RT, it says the following in syslog:</b><br><br>Aug 8 11:20:01 rt CRON[2462]: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp)<o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:02 rt postfix/pickup[1475]: BED152896E: uid=114 from=<smmsp><o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:02 rt postfix/cleanup[2482]: BED152896E: message-id=<20110808092002.BED152896E@rt.ad.kittel><o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:03 rt postfix/qmgr[1476]: BED152896E: from=<smmsp@binder-group.de>, size=654, nrcpt=1 (queue active)<o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:03 rt postfix/smtp[2484]: BED152896E: to=<root@binder-group.de>, orig_to=<root>, relay=192.168.201.13[192.168.201.13]:25, delay=0.96, delays=0.54/0.1/0.23/0.1, dsn=5.0.0, status=bounced (host 192.168.201.13[192.168.201.13] said: 550 No such recipient (in reply to RCPT TO command))<o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:03 rt postfix/cleanup[2482]: 79B1D2896F: message-id=<20110808092003.79B1D2896F@rt.ad.kittel><o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:03 rt postfix/qmgr[1476]: 79B1D2896F: from=<>, size=2517, nrcpt=1 (queue active)<o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:03 rt postfix/bounce[2485]: BED152896E: sender non-delivery notification: 79B1D2896F<o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:03 rt postfix/qmgr[1476]: BED152896E: removed<o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:03 rt postfix/smtp[2484]: 79B1D2896F: to=<smmsp@binder-group.de>, relay=192.168.201.13[192.168.201.13]:25, delay=0.31, delays=0/0/0.26/0.04, dsn=5.0.0, status=bounced (host 192.168.201.13[192.168.201.13] said: 550 No such recipient (in reply to RCPT TO command))<o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:03 rt postfix/qmgr[1476]: 79B1D2896F: removed<o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:13 rt RT: <rt-4.0.1-1994-1312795213-1618.7-5-0@binder-group.de> #7/130 - Scrip 5 On Correspond Notify AdminCcs (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:301)<o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:13 rt RT: <rt-4.0.1-1994-1312795213-1618.7-5-0@binder-group.de> No recipients found. Not sending. (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:352)<o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:13 rt RT: <rt-4.0.1-1994-1312795213-92.7-7-0@binder-group.de> #7/130 - Scrip 7 On Correspond Notify Other Recipients (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:301)<o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:13 rt RT: <rt-4.0.1-1994-1312795213-92.7-7-0@binder-group.de> No recipients found. Not sending. (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:352)<o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:13 rt RT: <rt-4.0.1-1994-1312795213-1102.7-6-0@binder-group.de> #7/130 - Scrip 6 On Correspond Notify Requestors and Ccs (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:301)<o:p></o:p></p><p class=MsoNormal>Aug 8 11:20:13 rt RT: <rt-4.0.1-1994-1312795213-1102.7-6-0@binder-group.de> No recipients found. Not sending. (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:352)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b>This is my RT_SiteConfig.pm<o:p></o:p></b></p><p class=MsoNormal>Set( $DatabaseUser, 'rt_user' );<o:p></o:p></p><p class=MsoNormal>Set( $CorrespondAddress, 'support@binder-group.de' );<o:p></o:p></p><p class=MsoNormal>Set( $rtname, 'binder-group.de' );<o:p></o:p></p><p class=MsoNormal>Set( $DatabaseRequireSSL, '0' );<o:p></o:p></p><p class=MsoNormal>Set( $WebPort, '80' );<o:p></o:p></p><p class=MsoNormal>Set( $Organization, 'binder-group.de' );<o:p></o:p></p><p class=MsoNormal>Set( $DatabaseType, 'Pg' );<o:p></o:p></p><p class=MsoNormal>Set( $DatabasePort, '' );<o:p></o:p></p><p class=MsoNormal>Set( $DatabasePassword, 'rt' );<o:p></o:p></p><p class=MsoNormal>Set( $DatabaseAdmin, 'postgres' );<o:p></o:p></p><p class=MsoNormal>Set( $WebDomain, '172.16.200.91'); <o:p></o:p></p><p class=MsoNormal>Set( $DatabaseAdminPassword, 'post' );<o:p></o:p></p><p class=MsoNormal>Set( $CommentAddress, 'support-kommentar@binder-group.de' );<o:p></o:p></p><p class=MsoNormal>Set( $DatabaseHost, 'localhost' );<o:p></o:p></p><p class=MsoNormal>Set( $DatabaseName, 'rt4' );<o:p></o:p></p><p class=MsoNormal>Set( $OwnerEmail, 'christian.bauer@binder-group.de' );<o:p></o:p></p><p class=MsoNormal>Set( $MailCommand , 'sendmailpipe');<o:p></o:p></p><p class=MsoNormal>Set( $SendmailArguments , "-t");<o:p></o:p></p><p class=MsoNormal>Set( $SendmailPath , "/usr/bin/mailx-wrapper");<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Set($LogToSyslog , 'info');<o:p></o:p></p><p class=MsoNormal>Set($LogToFile , 'debug'); #debug is very noisy<o:p></o:p></p><p class=MsoNormal>Set($LogDir, '/opt/rt4/var/log');<o:p></o:p></p><p class=MsoNormal>Set($LogToFileNamed , "rt.log"); #log to rt.log 1;<o:p></o:p></p><p class=MsoNormal>Set($RTAddressRegexp , '^support(-kommentar)?\@(binder-group\.de)$');<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b>My mailx-wrapper looks like this<o:p></o:p></b></p><p class=MsoNormal>#!/bin/bash<o:p></o:p></p><p class=MsoNormal> # do not query a resource file<o:p></o:p></p><p class=MsoNormal> export MAILRC=/dev/null<o:p></o:p></p><p class=MsoNormal> # send email directly to a remote smtp smarthost<o:p></o:p></p><p class=MsoNormal> export smtp=192.168.201.13<o:p></o:p></p><p class=MsoNormal> # make mailx accept 8-bit content - in this case for German umlauts etc.<o:p></o:p></p><p class=MsoNormal> export LC_CTYPE=de_DE.iso88591<o:p></o:p></p><p class=MsoNormal> # send the email (since this is the first real command executed in the script, it will receive the email content from STDIN)<o:p></o:p></p><p class=MsoNormal> /usr/bin/mailx -n -t<o:p></o:p></p><p class=MsoNormal> # log a line to syslog for debugging purposes<o:p></o:p></p><p class=MsoNormal> /usr/bin/logger -t RTmailer -p syslog.info -- CALL /usr/bin/mailx -n -t "$@" RETURNED $?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you in advance!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>