Le 18/08/2010 19:14, Alfred Tuinman a écrit :
On Wednesday 18 August 2010 03:01 AM, mouss wrote:
 Le 17/08/2010 07:35, Alfred Tuinman a écrit :
Hi,

If we specify mydestination to be $mydomain all mail is considered
local. This is fine for most of us but there are a few roaming users.
Only for those users we would like all mail to be sent outside.

How do I handle this?

http://www.postfix.org/postconf.5.html#relay_domains
http://www.postfix.org/BASIC_CONFIGURATION_README.html
http://www.postfix.org/STANDARD_CONFIGURATION_README.html

for per recipient routing, read:
http://www.postfix.org/postconf.5.html#transport_maps

ok I have added the transport maps:

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
transport_maps = hash:/etc/postfix/transport

postmapped the corresponding transport file which contains:

my_em...@company.com smtp:[mail.company.com]

However, my mail remains local while I would like it to go to the remote web server from where the local server fetches the mail with a keep option.

Am I overlooking something?

maybe:)

- make sure the adress isn't rewritten (virtual_alias_maps for example). use postmap -q to check this. - make sure your transport map is taken into account. use postconf to check this - make sure the address is in your transport maps. use postmap -q to test the address.

and don't forget: typos are around the corner!

if you can't find the problem and want other eyes, then please follow the list welcome message and post:
- output of 'postconf -n'
- relevant logs (please do not send verbose logs. no -v nor debug_peer...)
- output of relevant postmap -q (you're free here. show those ou think will help. otherwise, we'll ask you)


Reply via email to