On Wed, Nov 23, 2011 at 09:29:27AM +1300, Gregory Machin wrote: > 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 > 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=<[email protected]> > Nov 23 09:16:23 nzhmlapp04 postfix/qmgr[16904]: 21F822200A1: > from=<[email protected]>, size=982, nrcpt=2 (queue active) > > I have www-data mapped to [email protected] 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 [email protected]. > > I hope this is a bit clearer. > > Thanks > > G > > > On Tue, Nov 22, 2011 at 9:20 PM, Bart <[email protected]> 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 , '[email protected]'); > > Set($CommentAddress , '[email protected]'); > > Set($SetOutgoingMailFrom, 1); > > Set($OverrideOutgoingMailFrom, { > > 'Default' => '[email protected]', > > 'RT Queue 2' => '[email protected]', > > 'RT Queue 3' => '[email protected]' > > }); > > Hope this helps. > > -- Bart > > > > > > Op 22 november 2011 05:08 schreef Gregory Machin <[email protected]> > > 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 > >> [email protected] (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 [email protected] and not as > >> teh Apache user. How do I configure this ? > >> > >> My email config so far for emails : > >> > >> Set ($SMTPServer, 'localhost'); > >> Set($CorrespondAddress , '[email protected]'); > >> Set($CommentAddress , '[email protected]'); > >> > >> > >> Thanks > >> G > >> -------- > >> RT Training Sessions (http://bestpractical.com/services/training.html) > >> * Barcelona, Spain November 28 & 29, 2011 > > > > > -------- > RT Training Sessions (http://bestpractical.com/services/training.html) > * Barcelona, Spain November 28 & 29, 2011
pgpiPUDAGexdN.pgp
Description: PGP signature
-------- RT Training Sessions (http://bestpractical.com/services/training.html) * Barcelona, Spain November 28 & 29, 2011
