[rt-users] Problems with rt-mailgate (postfix + ldap + aliases)

Toni de la Fuente afuente at intecna.es
Tue Jul 31 15:03:23 EDT 2007


It does work. But it doesn't work with:

testuser:   "|/usr/bin/rt-mailgate --queue 'My queue' --action correspond --url http://www.domain.com/tickets/"

I can see this error in /var/log/mail.log 

Jul 31 20:51:26 padme postfix/pickup[27965]: 43280B3400B: uid=0
from=<root>
Jul 31 20:51:26 padme postfix/cleanup[29135]: 43280B3400B:
message-id=<20070731185126.43280B3400B at mail.domain.com>
Jul 31 20:51:26 padme postfix/qmgr[14271]: 43280B3400B:
from=<root at domain.com>, size=316, nrcpt=1 (queue active)
Jul 31 20:51:27 padme amavis[28959]: (28959-06) Not-Delivered,
<root at intecna.es> -> <|/usr/bin/rt-mailgate --queue 'My queue' --action
correspond --url http://www.domain.com/tickets/@domain.com>, Message-ID:
<20070731185126.43280B3400B at mail.domain.com>, Hits: -3.66
Jul 31 20:51:27 padme postfix/smtp[29137]: 43280B3400B:
to=<|/usr/bin/rt-mailgate --queue 'My queue' --action correspond --url
http://www.domain.com/tickets/@domain.com>, orig_to=<testuser>,
relay=localhost[127.0.0.1], delay=1, status=bounced (host
localhost[127.0.0.1] said: 550 5.1.0 <|/usr/bin/rt-mailgate --queue 'My
queue' --action correspond --url
http://www.domain.com/tickets/@domain.com>: Recipient address rejected:
User unknown in virtual mailbox table (in reply to end of DATA command))
Jul 31 20:51:27 padme postfix/qmgr[14271]: 43280B3400B: removed

Additionally i I try to exec this command from my mail server:
# echo "Hello world" | /usr/bin/rt-mailgate --queue 'My queue' --action
correspond --url http://www.domain.com/tickets/

I see next errors in my RT server (/var/log/messages)

Jul 31 20:50:39 rainbow RT: Encode::Guess failed: ; fallback to
iso-8859-1 (/usr/lib/perl5/vendor_perl/5.8.8/RT/I18N.pm:415)
Jul 31 20:50:39 rainbow RT: Encode::Guess failed: ; fallback to
iso-8859-1 (/usr/lib/perl5/vendor_perl/5.8.8/RT/I18N.pm:415)
Jul 31 20:50:39 rainbow RT: Could not record email: Could not load a
valid user (/usr/share/rt3/html/REST/1.0/NoAuth/mail-gateway:73)

My RT server is Fedora Core 6 with rt3-3.6.3 (yum installed) and SELinux
disabled.

Thanks for your help.

El mar, 31-07-2007 a las 11:09 -0700, Robert Long escribió:
> Toni de la Fuente wrote:
> > When I try to exec this command from my mail server:
> >
> > Note http://www.domain.com/tickets/@domain.com <-- postfix or aliases
> > add @domain.com 
> >
> >   
> I see that, do you still have virtual aliases setup for those users? 
> What happens when you try to send something to another alias listed in
> /etc/aliases?  Maybe create one yourself..
> 
> 
> testuser:   afuente at intecna.es
> 
> then run newaliases and 'echo "hello world" | mail -s testing testuser'
> on that system..
> 
-- 
Toni de la Fuente Diaz

Responsable de Sistemas y Soporte
Intecna Soluciones
Fundación I+D del Software Libre

Parque Tecnológico de Ciencias de la Salud 
BIC Granada-CEEI 
Avda. de la Innovación, 1  
18100 Armilla (Granada) 
Tlf. 902003626 
afuente at intecna.es 
www.intecna.es




More information about the rt-users mailing list