Change envelope address to aliases address

This is a discussion on Change envelope address to aliases address within the mailing.postfix.users forums, part of the Mail Servers and Related category; Hi, I am new to postfix and I am having problems with address translations, both internal and external. The server ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 3 Weeks Ago
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
  #2 (permalink)  
Old 3 Weeks Ago
Cydrome Leader
 
Posts: n/a
Default Re: Change envelope address to aliases address

andrew_fysh@yahoo.com.au wrote:
> 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


Aliases do not change where you message came from, and they don't rewrite
botched or incomplete headers. They only direct the message elsewhere.
This especially applies to when you just run "mailx mygroup". Unless you
have some sort of rewriting setup, messages sent from a shell command will
default to your login username@ either the hostname (not even always a
FQDN) or any special default set in the mailserver.

Check out this section of the postfix docs

http://www.postfix.org/ADDRESS_REWRITING_README.html

It covers what I suspect is the behavior you want.


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:59 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0