Le 19/11/2010 19:09, Andrew Hall a écrit :
On 19 November 2010 17:40, Victor Duchovni
<victor.ducho...@morganstanley.com
<mailto:victor.ducho...@morganstanley.com>> wrote:
Probably using "hash:/etc/postfix/generic" in main.cf
<http://main.cf>, when "regexp:"
is what you tested.
Thanks for the prompt reply Victor. You raise perfectly valid points and
I do apologise for my naivety in parts (I'm a bit new to all this) but I
assure you there are reasonable answers to the majority of your questions !
However it is the answer you provide above which has got it working -
which I am most grateful for.
If you're happy to continue this chat I wonder if you could advise how I
would set the result in the regexp table to choose the correct sender -
as opposed to always being root. that way regardless of the sender it
will always map to the correct one. perhaps some kind of user variable
can be used ?
so instead of the map reading...
/^...@.*localdomain$/ r...@domain.com <mailto:r...@domain.com>
...it would instead read something line...
/^...@.*localdomain$/ %u...@domain.com <mailto:r...@domain.com>
would you know if this is possible ?
ou missed the part where Viktor said
"If they are running Postfix, you definitely can, or else why come here
to ask for help?
Why not set "$myorigin" to a real domain?
"
if the hosts are running postfix, then simply use
myorigin=example.com
why look for complex things when it is that simple?
sure, pcre will do it
/(.*)@.*\.localdomain$/ $...@example.org
but then you're not solving the problem the easy way...