RT 3.6.1 configure out going address used by smtp

Hi.
I have moved our RT from a legacy server to a new one. I would like to
define the from: address used.

At present all outgoing email is relayed via Postfix at localhost, the
emails going out from RT are doing out using
www-data@newserver.mydom.com (Apache user www-data), which causes
issues as this sever is internal so the domain newserver.mydom.com is
not valid on the Internet. To get around this I have configured a
temporary address rewrite.

What I want it the emails from RT to go out as rt@mydom.com and not as
teh Apache user. How do I configure this ?

My email config so far for emails :

Set ($SMTPServer, ‘localhost’);
Set($CorrespondAddress , ‘rt@mydom.com’);
Set($CommentAddress , ‘rt-comment@mydom.com’);

Thanks
G

We use additional rules in the RT_SiteConfig.pm to ensure that it uses the
correct e-mail address for all queue’s.

Here’s a sample:

Default Correspond en Comment adres

Set($CorrespondAddress , ‘rt@example.com’);
Set($CommentAddress , ‘rtc@example.com’);

Set($SetOutgoingMailFrom, 1);

Set($OverrideOutgoingMailFrom, {
‘Default’ => ‘rt@example.com’,
‘RT Queue 2’ => ‘rtqueue2@example.com’,
‘RT Queue 3’ => ‘rtqueue3@example.com’
});

Hope this helps.

– Bart

Op 22 november 2011 05:08 schreef Gregory Machin
gregory.machin@gmail.comhet volgende:

Thanks for responding. I tried as advise and it didn’t work.

Here is the mail log

Nov 23 09:16:23 nzhmlapp04 postfix/pickup[30846]: 21F822200A1: uid=33
from=
Nov 23 09:16:23 nzhmlapp04 postfix/cleanup[1222]: 21F822200A1:
message-id=rt-3.6.1-1173-1321992982-461.10043-6-0@mydom.com
Nov 23 09:16:23 nzhmlapp04 postfix/qmgr[16904]: 21F822200A1:
from=sysadmin@mydom.com, size=982, nrcpt=2 (queue active)

I have www-data mapped to sysadmin@mydom.com using
sender_canonical_maps = hash:/etc/postfix/sender_canonical. I did this
as a work around so that I could buy time to get RT’s smtp working.

I don’t want the rt application to use the Apache user www-data to
send emails but to use smtp and us rt@mydom.com.

I hope this is a bit clearer.

Thanks

GOn Tue, Nov 22, 2011 at 9:20 PM, Bart bart@pleh.info wrote:

We use additional rules in the RT_SiteConfig.pm to ensure that it uses the
correct e-mail address for all queue’s.
Here’s a sample:

Default Correspond en Comment adres

Set($CorrespondAddress , ‘rt@example.com’);
Set($CommentAddress , ‘rtc@example.com’);
Set($SetOutgoingMailFrom, 1);
Set($OverrideOutgoingMailFrom, {
‘Default’ => ‘rt@example.com’,
‘RT Queue 2’ => ‘rtqueue2@example.com’,
‘RT Queue 3’ => ‘rtqueue3@example.com’
});
Hope this helps.
– Bart

Op 22 november 2011 05:08 schreef Gregory Machin gregory.machin@gmail.com
het volgende:

Hi.
I have moved our RT from a legacy server to a new one. I would like to
define the from: address used.

At present all outgoing email is relayed via Postfix at localhost, the
emails going out from RT are doing out using
www-data@newserver.mydom.com (Apache user www-data), which causes
issues as this sever is internal so the domain newserver.mydom.com is
not valid on the Internet. To get around this I have configured a
temporary address rewrite.

What I want it the emails from RT to go out as rt@mydom.com and not as
teh Apache user. How do I configure this ?

My email config so far for emails :

Set ($SMTPServer, ‘localhost’);
Set($CorrespondAddress , ‘rt@mydom.com’);
Set($CommentAddress , ‘rt-comment@mydom.com’);

Thanks
G

RT Training Sessions (http://bestpractical.com/services/training.html)

  • Barcelona, Spain November 28 & 29, 2011

Thanks for responding. I tried as advise and it didn’t work.

Unfortunately, the config options quoted are only for 3.8 or 4.0.

You don’t want to use RT’s built in SMTP support. If anything is ever
wrong with your SMTP server, RT will never retry and the mail will be
lost.

You likely want to use the -f command to the SendmailCommand option,
but be aware of the limitations in that. 3.8 and 4.0 provide more
flexible ways to do what you want, until then you’ll want to use the
command line syntax supported by your MTA to force the Sender.

-kevin