[rt-users] RT 3.6.1 configure out going address used by smtp
Kevin Falcone
falcone at bestpractical.com
Tue Nov 22 15:57:03 EST 2011
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=<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
> >
> >
> --------
> RT Training Sessions (http://bestpractical.com/services/training.html)
> * Barcelona, Spain November 28 & 29, 2011
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20111122/c77f5518/attachment.sig>
More information about the rt-users
mailing list