[rt-users] RT 3.6.1 configure out going address used by smtp

Gregory Machin gregory.machin at gmail.com
Tue Nov 22 15:29:27 EST 2011


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=<www-data>
Nov 23 09:16:23 nzhmlapp04 postfix/cleanup[1222]: 21F822200A1:
message-id=<rt-3.6.1-1173-1321992982-461.10043-6-0 at mydom.com>
Nov 23 09:16:23 nzhmlapp04 postfix/qmgr[16904]: 21F822200A1:
from=<sysadmin at mydom.com>, size=982, nrcpt=2 (queue active)

I have www-data mapped to sysadmin at 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 at mydom.com.

I hope this is a bit clearer.

Thanks

G


On Tue, Nov 22, 2011 at 9:20 PM, Bart <bart at 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 at example.com');
> Set($CommentAddress , 'rtc at example.com');
> Set($SetOutgoingMailFrom, 1);
> Set($OverrideOutgoingMailFrom, {
>     'Default' => 'rt at example.com',
>     'RT Queue 2' => 'rtqueue2 at example.com',
>     'RT Queue 3' => 'rtqueue3 at example.com'
> });
> Hope this helps.
> -- Bart
>
>
> Op 22 november 2011 05:08 schreef Gregory Machin <gregory.machin at 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 at 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 at 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 at mydom.com');
>> Set($CommentAddress , 'rt-comment at mydom.com');
>>
>>
>> Thanks
>> G
>> --------
>> RT Training Sessions (http://bestpractical.com/services/training.html)
>> *  Barcelona, Spain  November 28 & 29, 2011
>
>



More information about the rt-users mailing list