postfix aliases doesn't work

stazcek0

Joined
Jan 21, 2010
Messages
12
Likes
0
Points
0
#1
Hello,

i download the Elastix Distro 1.6 Stable (32 bits) and install it. It is very simple and very complete !!! it's a great product.

But after tuning it for my needs, i add a cron and realized that mail for root are sended to root@notthegooddomain.com.
(for the example let's say that i set the host in network parameters to myelastix.notthegooddomain.com)

I check the /etc/postfix/main.cf, and see elastix set these two lines :
mydomain = notthegooddomain.com
myhostname = myelastix.notthegooddomain.com
I edit /etc/aliases and add at the bottom of the file the following line :

Code:
root:		elastixmails@myotherdomain.tld
i do a newaliases command, do a postfix reload and do the following test :

Code:
echo test | mail root; sleep 1; tail /var/log/maillog
and in the maillog file i found :

elastix postfix/smtp[4788]: D45CC834A7A: to=<root@notthegooddomain.com>, orig_to=<root>, (...)
Postfix send the mail to root@notthegooddomain.com rather than elastixmails@myotherdomain.tld (the destination i want). :(
So why postfix doesn't use the aliases file ?????

Is there something wrong in my procedure ? or another way to set this alias for root ?

Thanks in advance
 

stazcek0

Joined
Jan 21, 2010
Messages
12
Likes
0
Points
0
#2
found this solution :

in the /etc/postfix/main.cf file, replace :

Code:
mydestination = example.com, $mydomain2
with

Code:
mydestination = $mydomain, $mydomain2
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,900
Messages
130,884
Members
17,561
Latest member
marouen
Top