2009/5/5 Rocco Scappatura <rocco.scappat...@infracom.it>: > Basically, I need to translate "re...@domain.tld" in > "re...@extdomain.tld" and deliver "re...@extdomain.tld" 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: > > re...@domain.tld: re...@extdomain.tld > > 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 re...@domain.tld re...@extdomain.tld transport_maps file: re...@extdomain.tld smtp:mail.extdomain.tld # or, to do an A-lookup instead of an MX lookup re...@extdomain.tld smtp:[mx01.extdomain.tld]