Le 19/11/2010 19:09, Andrew Hall a écrit :
On 19 November 2010 17:40, Victor Duchovni <[email protected] <mailto:[email protected]>> 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$/ [email protected] <mailto:[email protected]> ...it would instead read something line... /^...@.*localdomain$/ %[email protected] <mailto:[email protected]> 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$/ [email protected] but then you're not solving the problem the easy way...
