View Single Post

  #1 (permalink)  
Old 04-18-2008
andrew_fysh@yahoo.com.au
 
Posts: n/a
Default Change envelope address to aliases address

Hi,

I am new to postfix and I am having problems with address
translations, both internal and external. The server is a BMS /
database system and only ever sends mail out. It never needs to
receive mail. A lot of ditribution lists are set up in the aliases
file, and I have run postalias /etc/aliases

In main.cf I have:

mydomain = companydomain.com.au

I have an alias as follows:

mylocalusername: firstname.lastname@companydomain.com.au
mygroup: mylocalusername, my.privateaddress@privatedomain.com.au

If I "mailx mygroup" syslog show that it tried to send it to
mygroup@companydomain.com.au which does not exist. It has not
translated it to firstname.lastname@companydomain.com.au, so it is not
received at either address

If I "mailx mylocalusername@localhost I receive the message, but the
envelope recipient address is mylocalusername@companydomain.com.au

If I "mailx my.privateaddress@privatedomain.com.au" the message is
received and the envelope recipient is correct, however the sender
address is mylocalusername@companydomain.com.au

Can someone please point me in the right direction as to how to get
the correct recipient address and envelope address when using aliases?
We also use aliases that consist of multiple external addresses (for
customer invoices etc).

Regards,
Andrew
Reply With Quote