[rt-users] RT Queue mails with errors on Postfix

2011-01-05 Thread Gregory Greafers
Hi RT Community,
I have an issue I want to troubleshoot and resolve. I have 
- CentOS 5.5, 
- RT 3.8.8,
- postfix as an MTA running on [myrtdomain.com] sending and responding
to mails internal to [mycompanydomain.com]. mycompanydomain.com is on
MDaemon mail server
- apache2 server

I keep seeing this error in my postfix logs (tail -f /var/log/maillog)

Jan  5 14:08:10 noc postfix/cleanup[6000]: warning:
database /etc/postfix/virtual.db is older than source
file /etc/postfix/virtual
...
Jan  5 14:51:14 noc postfix/local[6094]: C11C85F696D:
to=n...@myrtdomain.com, relay=local, delay=11811,
delays=11811/0.01/0/0.2, dsn=4.3.0, status=deferred (temporary failure.
Command output: RT server error.  The RT server which handled your email
did not behave as expected. It said:  temporary failure - RT couldn't
find the queue: CoreNetwork )

My /etc/aliases has the queue specified, matching the CoreNetwork queue
I created on RT webinterface with my root account:

core:   |/opt/rt3/bin/rt-mailgate --queue CoreNetwork --action
correspond --url http://myrtdomain.com;
core-response:   |/opt/rt3/bin/rt-mailgate --queue CoreNetwork --action
comment --url http://myrtdomain.com;

Any ideas on how I can resolve this? I have tried these steps in
sequence
newaliases
postfix reload 
service postfix restart [ok]
service httpd restart   [ok]


-- 
Regards,

Gregory Okoth
NOC Engineer

Email:n...@accesskenya.com 
Tel:  (254 20) 360 0908
Fax: (254 20)(254 20) 360 0001






Re: [rt-users] RT Queue mails with errors on Postfix

2011-01-05 Thread Joe Harris
The command newaliases I was led to believe was only for sendmail. What you 
need is:
postalias /etc/aliases

Unless you have newaliases somehow linked to the above, postfix won't read the 
aliases file. 

At least I hope that is it. :)


Sent from blackberry

-Original Message-
From: Gregory Greafers greg...@accesskenya.com
Sender: rt-users-boun...@lists.bestpractical.com
Date: Wed, 05 Jan 2011 15:34:21 
To: rt usersrt-users@lists.bestpractical.com
Reply-To: greg...@accesskenya.com
Subject: [rt-users]   RT Queue mails with errors on Postfix

Hi RT Community,
I have an issue I want to troubleshoot and resolve. I have 
- CentOS 5.5, 
- RT 3.8.8,
- postfix as an MTA running on [myrtdomain.com] sending and responding
to mails internal to [mycompanydomain.com]. mycompanydomain.com is on
MDaemon mail server
- apache2 server

I keep seeing this error in my postfix logs (tail -f /var/log/maillog)

Jan  5 14:08:10 noc postfix/cleanup[6000]: warning:
database /etc/postfix/virtual.db is older than source
file /etc/postfix/virtual
...
Jan  5 14:51:14 noc postfix/local[6094]: C11C85F696D:
to=n...@myrtdomain.com, relay=local, delay=11811,
delays=11811/0.01/0/0.2, dsn=4.3.0, status=deferred (temporary failure.
Command output: RT server error.  The RT server which handled your email
did not behave as expected. It said:  temporary failure - RT couldn't
find the queue: CoreNetwork )

My /etc/aliases has the queue specified, matching the CoreNetwork queue
I created on RT webinterface with my root account:

core:   |/opt/rt3/bin/rt-mailgate --queue CoreNetwork --action
correspond --url http://myrtdomain.com;
core-response:   |/opt/rt3/bin/rt-mailgate --queue CoreNetwork --action
comment --url http://myrtdomain.com;

Any ideas on how I can resolve this? I have tried these steps in
sequence
newaliases
postfix reload 
service postfix restart [ok]
service httpd restart   [ok]


-- 
Regards,

Gregory Okoth
NOC Engineer

Email:n...@accesskenya.com 
Tel:  (254 20) 360 0908
Fax: (254 20)(254 20) 360 0001







Re: [rt-users] RT Queue mails with errors on Postfix

2011-01-05 Thread Emmanuel Lacour
On Wed, Jan 05, 2011 at 03:34:21PM +0300, Gregory Greafers wrote:
 
Jan  5 14:08:10 noc postfix/cleanup[6000]: warning: database
/etc/postfix/virtual.db is older than source file /etc/postfix/virtual
...

you should probably run postmap /etc/postfix/virtual

Jan  5 14:51:14 noc postfix/local[6094]: C11C85F696D:
to=n...@myrtdomain.com, relay=local, delay=11811,
delays=11811/0.01/0/0.2, dsn=4.3.0, status=deferred (temporary failure.
Command output: RT server error.  The RT server which handled your email
did not behave as expected. It said:  temporary failure - RT couldn't find
the queue: CoreNetwork )
 

if rt-mailgate tell you that he could not find a queue named
CoreNetwork, that's certainly true. Maybe there is some typo in the
queue name or maybe you're not working on the same RT?



Re: [rt-users] RT Queue mails with errors on Postfix

2011-01-05 Thread Emmanuel Lacour
On Wed, Jan 05, 2011 at 03:43:49PM +, Joe Harris wrote:
The command newaliases I was led to believe was only for sendmail. What
you need is:


that's off topic for this list, but no, newaliases exists and works also
with postfix if you set variable alias_database correctly in your
postfix main.cf. For example:

# Where postfix local find aliases
alias_maps = hash:/etc/aliases
# What format:files should be updated when running newaliases
alias_database = hash:/etc/aliases