Hi,
some mailservers don’t accept emails from our RT. This is caused by
sender address in outgoing mail envelope, which is
“apache@equinox.eccenet.sk” (apache is web server and equinox.eccenet.sk
is server hostname). This mail address is not valid - there is no
address apache@ recipient on this server, and also, equinox.eccenet.sk
is machine in corporate LAN, which has no publicly available MX record
(there is another mailserver to communicate with the world, and relaying
mail to and from equinox).
So I want RT to put another address in the envelope, or to rewrite
envelope to something else, for example somerealaddress@ecce.sk or so. I
cannot find the way how to do it. Any ideas? Thanks a lot…
Michal Rybarik
ecce, s.r.o.
Just add From: whoever whoever@mailserver in your scrips.
Should be the first line-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Michal
Rybarik
Sent: Wednesday, January 16, 2008 2:42 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] How to change mail sender address in envelope
Hi,
some mailservers don’t accept emails from our RT. This is caused by
sender address in outgoing mail envelope, which is
“apache@equinox.eccenet.sk” (apache is web server and equinox.eccenet.sk
is server hostname). This mail address is not valid - there is no
address apache@ recipient on this server, and also, equinox.eccenet.sk
is machine in corporate LAN, which has no publicly available MX record
(there is another mailserver to communicate with the world, and relaying
mail to and from equinox).
So I want RT to put another address in the envelope, or to rewrite
envelope to something else, for example somerealaddress@ecce.sk or so. I
cannot find the way how to do it. Any ideas? Thanks a lot…
Michal Rybarik
ecce, s.r.o.
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com
Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com
Hi,
some mailservers don’t accept emails from our RT. This is caused by
sender address in outgoing mail envelope, which is
“apache@equinox.eccenet.sk” (apache is web server and equinox.eccenet.sk
is server hostname). This mail address is not valid - there is no
address apache@ recipient on this server, and also, equinox.eccenet.sk
is machine in corporate LAN, which has no publicly available MX record
(there is another mailserver to communicate with the world, and relaying
mail to and from equinox).
So I want RT to put another address in the envelope, or to rewrite
envelope to something else, for example somerealaddress@ecce.sk or so. I
cannot find the way how to do it. Any ideas? Thanks a lot…
Depending of your smtp (here postfix), you can add something like this
to your RT_SiteConfig.pm:
Set($SendmailArguments , ‘-oi -t -f"youre_wanted@from.address"’);
Just add From: whoever whoever@mailserver in your scrips.
Should be the first line
That doesn’t change the envelope sender.
You need to add the -f flag to the sendmail command line when using
the sendmail program to inject messages. Not sure how to do it if
you’re using SMTP to inject messages.