[rt-users] Problem with mailx and no Recipients found

Christian Bauer iphone at rise-against.eu
Mon Aug 8 05:24:47 EDT 2011


Hello Sirs!

I've got some trouble with sending Emails out of my rt4 installation.


It's installed on the latest ubuntu version, everything works quite well,
except of sending emails.

I collect my emails with fetchmail.

 

Emails sending is done with postfix and mailx, if i type "mailx -s "asdf"
my at email.com 

It works perfectly. Postfix is configured as a smart host.

 

If I want to send email over RT, it says the following in syslog:

Aug  8 11:20:01 rt CRON[2462]: (smmsp) CMD (test -x /etc/init.d/sendmail &&
/usr/share/sendmail/sendmail cron-msp)

Aug  8 11:20:02 rt postfix/pickup[1475]: BED152896E: uid=114 from=<smmsp>

Aug  8 11:20:02 rt postfix/cleanup[2482]: BED152896E:
message-id=<20110808092002.BED152896E at rt.ad.kittel>

Aug  8 11:20:03 rt postfix/qmgr[1476]: BED152896E:
from=<smmsp at binder-group.de>, size=654, nrcpt=1 (queue active)

Aug  8 11:20:03 rt postfix/smtp[2484]: BED152896E:
to=<root at 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))

Aug  8 11:20:03 rt postfix/cleanup[2482]: 79B1D2896F:
message-id=<20110808092003.79B1D2896F at rt.ad.kittel>

Aug  8 11:20:03 rt postfix/qmgr[1476]: 79B1D2896F: from=<>, size=2517,
nrcpt=1 (queue active)

Aug  8 11:20:03 rt postfix/bounce[2485]: BED152896E: sender non-delivery
notification: 79B1D2896F

Aug  8 11:20:03 rt postfix/qmgr[1476]: BED152896E: removed

Aug  8 11:20:03 rt postfix/smtp[2484]: 79B1D2896F:
to=<smmsp at 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))

Aug  8 11:20:03 rt postfix/qmgr[1476]: 79B1D2896F: removed

Aug  8 11:20:13 rt RT: <rt-4.0.1-1994-1312795213-1618.7-5-0 at binder-group.de>
#7/130 - Scrip 5 On Correspond Notify AdminCcs
(/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:301)

Aug  8 11:20:13 rt RT: <rt-4.0.1-1994-1312795213-1618.7-5-0 at binder-group.de>
No recipients found. Not sending.
(/opt/rt4/sbin/../lib/RT/Interface/Email.pm:352)

Aug  8 11:20:13 rt RT: <rt-4.0.1-1994-1312795213-92.7-7-0 at binder-group.de>
#7/130 - Scrip 7 On Correspond Notify Other Recipients
(/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:301)

Aug  8 11:20:13 rt RT: <rt-4.0.1-1994-1312795213-92.7-7-0 at binder-group.de>
No recipients found. Not sending.
(/opt/rt4/sbin/../lib/RT/Interface/Email.pm:352)

Aug  8 11:20:13 rt RT: <rt-4.0.1-1994-1312795213-1102.7-6-0 at binder-group.de>
#7/130 - Scrip 6 On Correspond Notify Requestors and Ccs
(/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:301)

Aug  8 11:20:13 rt RT: <rt-4.0.1-1994-1312795213-1102.7-6-0 at binder-group.de>
No recipients found. Not sending.
(/opt/rt4/sbin/../lib/RT/Interface/Email.pm:352)

 

 

This is my RT_SiteConfig.pm

Set( $DatabaseUser, 'rt_user' );

Set( $CorrespondAddress, 'support at binder-group.de' );

Set( $rtname, 'binder-group.de' );

Set( $DatabaseRequireSSL, '0' );

Set( $WebPort, '80' );

Set( $Organization, 'binder-group.de' );

Set( $DatabaseType, 'Pg' );

Set( $DatabasePort, '' );

Set( $DatabasePassword, 'rt' );

Set( $DatabaseAdmin, 'postgres' );

Set( $WebDomain, '172.16.200.91'); 

Set( $DatabaseAdminPassword, 'post' );

Set( $CommentAddress, 'support-kommentar at binder-group.de' );

Set( $DatabaseHost, 'localhost' );

Set( $DatabaseName, 'rt4' );

Set( $OwnerEmail, 'christian.bauer at binder-group.de' );

Set( $MailCommand , 'sendmailpipe');

Set( $SendmailArguments , "-t");

Set( $SendmailPath , "/usr/bin/mailx-wrapper");

 

Set($LogToSyslog    , 'info');

Set($LogToFile , 'debug'); #debug is very noisy

Set($LogDir, '/opt/rt4/var/log');

Set($LogToFileNamed , "rt.log");    #log to rt.log 1;

Set($RTAddressRegexp , '^support(-kommentar)?\@(binder-group\.de)$');

 

 

My mailx-wrapper looks like this

#!/bin/bash

# do not query a resource file

export MAILRC=/dev/null

# send email directly to a remote smtp smarthost

export smtp=192.168.201.13

# make mailx accept 8-bit content - in this case for German umlauts etc.

export LC_CTYPE=de_DE.iso88591

# send the email (since this is the first real command executed in the
script, it will receive the email content from STDIN)

/usr/bin/mailx -n -t

# log a line to syslog for debugging purposes

/usr/bin/logger -t RTmailer -p syslog.info -- CALL /usr/bin/mailx -n -t "$@"
RETURNED $?

 

 

Thank you in advance!

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110808/8cd8bdec/attachment.htm>


More information about the rt-users mailing list