2009/5/5 Rocco Scappatura <[email protected]>: > Basically, I need to translate "[email protected]" in > "[email protected]" and deliver "[email protected]" from my mail > gateway directly to the mail server responsible for "extdomain.tld". > > Is it possible? I've tried to accomplish this inserting on /etc/aliases > file of mail gateway the entry: > > [email protected]: [email protected] > > But I get: > > # newaliases > postalias: warning: /etc/aliases, line 85: name must be local
/etc/aliases is only used for local delivery, which means the left-hand-side must be a local system account name. As mentioned, you probably want virtual_alias_maps, which I wouldn't be surprised if you're already using them. If domain.tld isn't already in virtual_alias_domains then you need to add it, as well as the mapping to extdomain.tld You mentioned you "don't want it to go through your post office". If your mail routing is setup sanely, no mail would ever be relayed through your post office. If this does happen, you can add a transport map entry to have it delivered directly (either by IP if it's static, or by MX lookup if you don't control it). Eg. virtual_alias_maps file: (virtual_alias_domains uses the same by default) domain.tld OK [email protected] [email protected] transport_maps file: [email protected] smtp:mail.extdomain.tld # or, to do an A-lookup instead of an MX lookup [email protected] smtp:[mx01.extdomain.tld]
